Zum Inhalt springen

Diagnostics for support

When something does not work, two commands give support — and you — most of what is needed: ./okyouin version and ./okyouin diagnose. Run them in the installation directory (/opt/okyouin on the appliance and the ISO install).

Terminal window
./okyouin version # bundle version, image tag in .env, and what every container runs
./okyouin ps # status and health of every service

version also tells you whether every container actually runs the installed version — after an interrupted update they can differ. Quote the version in every support request.

In ./okyouin ps, every service should be healthy. For one that is not, its log usually names the cause:

Terminal window
./okyouin logs --tail 100 <service> # api, web, radius, winbind, stun, postgres
SymptomFirst thing to check
A service is unhealthy right after install or updatethe api’s first start migrates the database and may take a minute
The api restarts in a loop after an update./okyouin logs --tail 200 api — a failed migration is there; see Updating
RADIUS rejects everything right after a startthe RADIUS service waits for its configuration from the api; check ./okyouin logs radius
Domain users fail over MS-CHAPv2the domain is not joined or a port is closed: the LDAP configuration’s Domain tab shows the join state and the reason
A sign-in is refusedLogging ▸ Access log shows the reason; the Policy Tester shows the rule-by-rule decision
Terminal window
./okyouin diagnose

It prints what it noticed (Findings) and writes one archive: diagnostics/okyouin-diag-<UTC>.tar.gz in the installation directory, mode 600. Send that file to support.

Run it on the server where the problem is, as soon after it as you can — the container logs cover the last 24 hours by default.

It is safe at any time: it only reads. It starts, stops, changes and pulls nothing, and it works even on a broken install without a .env.

Terminal window
./okyouin diagnose --since 2h # a shorter or longer log window (90m, 24h, 7d)
./okyouin diagnose --only logs,containers # only some sections
./okyouin diagnose --skip logs # all sections but some
./okyouin diagnose --list # the sections
./okyouin diagnose --out /var/tmp # write the archive elsewhere
SectionContents
hostoperating system, disk, memory, clock and time zone, Docker
containersevery container: state, health, restarts, image, software version, clock
config.env and the effective Compose file with every secret masked; the bundle’s files
logseach container’s log of the window, and the domain service’s log files
networkpublished ports and who holds them, Docker networks, routes, reachability
tlsthe console’s certificate as served (never its key), the outgoing CA
radiusthe rendered RADIUS configuration (secrets masked), its status and listeners
  • the master key, private keys, the containers’ environment variables, or database contents;
  • passwords, shared secrets, tokens, cookies, TOTP seeds or password hashes that appear in a log or configuration file — they read <MASKED>. A file in which a known secret would survive is left out, and the summary says which.

When a high-availability cluster misbehaves — a node will not start or join, a failover did not happen, an update stopped — run the cluster diagnosis on every machine: both database nodes and the witness, and send all archives together:

Terminal window
./okyouin diagnose --ha

Most cluster faults are disagreements between machines, which no single machine can see on its own. It prints a verdict (Healthy, Degraded, Isolated …), one next step and findings with their cure, and writes diagnostics/okyouin-diag-ha-<node>-<UTC>.tar.gz. Secrets that must match across nodes appear only as short fingerprints, so support can compare them without seeing them.