Troubleshoot an instance
| Symptom | Check |
|---|---|
| The container never becomes ready | Check docker logs chibisafe, the required environment values, SQLite migration output, and mount permissions. /api/ready checks database access. |
| Login or passkeys fail behind a proxy | Check that the browser opens the configured HTTPS PUBLIC_ORIGIN. Verify upstream Host, TLS, and proxy hops. Passkeys are bound to the hostname. |
| Large uploads fail | Compare the instance file limit, available quota, extension rules, and proxy request limits. The dashboard sends chunks and requires the proxy to handle streamed requests. Check the upload dock for the failed stage. |
| Requests stall while an upload is processing | Check whether the proxy can stream server events and whether it closes long-lived connections. Chibisafe uses a dedicated backend connection pool for these events. |
| Thumbnails are missing | Confirm thumbnail generation is enabled. Retry regeneration for an eligible file. Quarantined or unsupported files may be skipped. |
| Thumbnails are slow | Compare time to first byte for a synthetic thumbnail at the API, frontend, and proxy. Compare cold requests and revalidation separately. |
| Storage usage looks different on disk | Library statistics count file metadata sizes. Backups, thumbnail files, partial uploads, and database files have separate disk usage. |
Read logs
Frontend logs include a request ID, method, route or server function, status, and duration. A matching parent ID connects a frontend request to its upstream call. Compare when headers arrive with when the body finishes. A long-lived event stream can remain open after headers.
Application logs mask sensitive route segments and query values, and avoid logging request bodies and session headers. Use synthetic filenames and redact tokens, share URLs, account details, and private hosts when sharing logs.
Understand the deployment boundary
The frontend checks browser origins, uses a trusted proxy chain, and applies content policies to proxied media. Active document types are sandboxed. Native audio/video and PDF previews use MIME-specific policies, and PDFs may only be framed by the same origin. If you configure a separate media origin, apply equivalent isolation there. Keep the API bound to container loopback in the combined image.