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).
Version and health
Section titled “Version and health”./okyouin version # bundle version, image tag in .env, and what every container runs./okyouin ps # status and health of every serviceversion 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:
./okyouin logs --tail 100 <service> # api, web, radius, winbind, stun, postgres| Symptom | First thing to check |
|---|---|
A service is unhealthy right after install or update | the 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 start | the RADIUS service waits for its configuration from the api; check ./okyouin logs radius |
| Domain users fail over MS-CHAPv2 | the 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 refused | Logging ▸ Access log shows the reason; the Policy Tester shows the rule-by-rule decision |
The diagnostic archive
Section titled “The diagnostic archive”./okyouin diagnoseIt 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.
Options
Section titled “Options”./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| Section | Contents |
|---|---|
host | operating system, disk, memory, clock and time zone, Docker |
containers | every container: state, health, restarts, image, software version, clock |
config | .env and the effective Compose file with every secret masked; the bundle’s files |
logs | each container’s log of the window, and the domain service’s log files |
network | published ports and who holds them, Docker networks, routes, reachability |
tls | the console’s certificate as served (never its key), the outgoing CA |
radius | the rendered RADIUS configuration (secrets masked), its status and listeners |
What it never contains
Section titled “What it never contains”- 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.
On a cluster
Section titled “On a cluster”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:
./okyouin diagnose --haMost 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.