Operations and troubleshooting
This runbook applies to a qualified installation after release; deploy commands
(install, pull, start, bootstrap) require a qualified lock or an explicit
--candidate on a fully pinned lock. The starter is not production support
evidence.
python3 scripts/system.py status
python3 scripts/system.py smoke
python3 scripts/system.py stop
python3 scripts/system.py start
python3 scripts/system.py install --resume # partial first install; add --candidate for a pinned candidate
# Inspect logs privately, never paste unreviewed output in a public issue:
docker compose logs --tail 100 api
status, stop, smoke and db-backup skip the qualification gate: they work
without a qualified lock, readable TLS material or storage checks. status lists
containers by project label; stop renders Compose when pins are complete and
otherwise stops running project containers by label in dependency order. stop
retains containers, networks and data; start requests the normal stack.
/healthz is process liveness; /readyz requires DB and writable registered
storage. An exited, successful schema-check is expected; the CLI is not a daemon.
A readiness failure before Storage Volume registration is distinct from a dead API.
The smoke helper only checks HTTPS status and same-origin response locations; it
is not a browser, API contract, authorization or playback test.
| Symptom | Check first |
|---|---|
| Preflight says no qualified lock | Wait for an actual release or use a maintainer-approved fully pinned disposable candidate. status and stop still work for diagnosis. |
install refuses existing resources | Inspect the listed containers/volumes/networks. Use install --resume only for a partial install of the same project; do not rename the project to bypass the guard. |
| Upload returns 413 | The edge allows 1 MiB by default and 16 MiB provisionally on /api/. Confirm the exact route limit under D-06 before changing it. |
| Image pull fails | Correct immutable pins, GHCR visibility, registry authentication and host architecture. Never fall back to legacy tags. |
| Schema check exits nonzero | Verify DB identity and migration compatibility; do not force downgrade or delete the database. |
| HTTPS/TLS fails | DNS, correct bind address, firewall, fullchain, hostname SAN, time and client trust. |
| API works, UI fails | Confirm correct routes, UI image contract, asset base paths and browser CSP. |
/readyz fails | DB connection, actual mounted storage, API UID/GID, registered volume marker and write access. |
| CLI fails to store credential | Use the documented native CLI until container credential integration is qualified. |
| Failed install left a DB volume | Inspect and back up before any migration; the install helper intentionally refuses reuse. |
Check Docker host capacity and filesystem/NAS identity before ingestion. If the NAS fails, stop ingestion and keep the missing-volume evidence; never register a new empty mount under the same identity. Monitor queue depth, capacity, backup age and restore tests once operational checks exist. API logs are structured; proxy access logs are intentionally off to avoid URL credentials and share tokens. Treat error logs, traces, exports and diagnostic bundles as sensitive nonetheless.
Do not run multiple API replicas, change DB major versions, enable a public port, or switch to an external proxy without a separately qualified configuration.