Diagnose a broken install
Diagnose a broken install
Section titled “Diagnose a broken install”Outcome: A reproducible diagnosis (one failing subsystem, one error string) you can paste into an issue or hand to a maintainer.
Prerequisites:
gormeson$PATH.
-
Run doctor with full provider check
Terminal window gormes doctorThis runs the offline checks and the provider health probe. The first
[FAIL]line names the failing subsystem. -
Compare with the offline subset
Terminal window gormes doctor --offlineIf offline passes but full
doctorfails, the issue is provider credentials, endpoint, or model selection — not the local runtime. -
Check first-run configuration state
Terminal window gormes doctor --offline --target terminal --jsonThe
targetblock reports readiness, missing setup pieces, andnext_command. Rungormes setup --quick --target terminalwhen the target is not ready. -
Inspect the gateway runtime (if you use channels)
Terminal window gormes gateway statusgormes logsgateway statusshows the persisted runtime state and per-channel lifecycle errors.logstails the most recent gateway log entries.
Verify
Section titled “Verify”gormes doctor --jsonExpected: a {build, failed, checks: [...]} JSON document. Every check has a name, a status of PASS, WARN, SKIP, or FAIL, and a summary. The summary of a failing check carries the error reason — copy that into your issue report.
Troubleshooting
Section titled “Troubleshooting”Auth: missing→ Rungormes auth add <provider>(see first turn).provider health: [FAIL]→ Wrong endpoint, wrong model id, or expired credentials. Try provider setup.- Gateway
lifecycle=failed→ The channel adapter failed to start. Theerrorfield ingateway statusnames the cause (token conflict, missing allowlist, etc.). stale_pidin gateway runtime → A previous gateway crashed without clearing state. Rungormes gateway stopor remove the pid file under~/.gormes.