Troubleshooting
UnauditedStart here when something goes wrong. If nothing below fixes it, Support says where to ask, and the diagnostics in the first section are what a bug report needs.
Collect diagnostics
Section titled “Collect diagnostics”Version
Section titled “Version”No release has been published, so the version number does not tell builds apart. Everything is
built from source, so report the commit you built from: git rev-parse --short HEAD in your
checkout. The CLI has no version flag, and capsule-server --version prints only the crate version,
which every build shares.
The CLI and the server write logs to stderr. Stdout carries only what a command prints, and
under --json that is a single JSON document, so you can capture each one separately:
RUST_LOG=debug capsule push --library ~/Photos.capsule 2> capsule.logRUST_LOGsets how much is logged. A release build logs atinfoby default and a debug build atdebug. UseRUST_LOG=debugwhen you reproduce a problem, andRUST_LOG=traceonly when asked: it is very large.- The server’s log format is set by
LOG_FORMAT:prettyby default in debug builds,jsonin release builds (Local Development — Logs). - The full-screen TUI (a bare
capsulein a terminal) cannot log to the screen it draws on, so it writestui.logto the CLI’s cache directory, whichcapsule statusprints as its Cache Directory. The file is overwritten each session, so copy it before you start the TUI again. --jsonoutput is the most precise record of what a command did, because it reports each asset’s outcome. Attach it when a command reports failures.
Redact before you share. Remove passphrases, recovery secrets, tokens, keys, server addresses and personal file paths. Never paste a library passphrase or a recovery secret anywhere, including a private report.
The server
Section titled “The server”It refuses to start
Section titled “It refuses to start”- Exit status 2, naming variables. A durable server needs
DATABASE_URL,BLOB_ROOT,JWT_ED25519_DERandATTESTATION_KEY_SEED, and names every missing one at once. See Self Hosting — Configure. - The database schema is older than the binary.
servenever migrates. Runcapsule-server-migration upon every upgrade, beforeserve(Self Hosting — Migrate, then start). - A trusted-proxy setting is refused.
TRUSTED_PROXIESrefuses a/0network, andTRUSTED_PROXY_HEADERaccepts onlyx-forwarded-fororforwarded.
A server that is running prints listening on <url> to stdout.
Clients can’t sign in or connect
Section titled “Clients can’t sign in or connect”capsule server-infoshows how the server signs people in: whether it has an identity provider and whether it refuses passwords. A password sign-in to a server with passwords disabled fails by design.- Behind a reverse proxy, every client shares the proxy’s rate limit until the proxy is named in
TRUSTED_PROXIESorTRUSTED_PROXY_HOPS. When several people are rate limited at once, check this first (Self Hosting — Configure).
The index and the blob store disagree
Section titled “The index and the blob store disagree”capsule-server scrub is a read-only integrity check, and it exits non-zero on any finding. After
you restore a backup or lose the database, capsule-server rebuild compares the index with the
owner ledgers. It changes nothing until you stop serve and run capsule-server rebuild --apply
(Self Hosting — Maintenance).
Imports and uploads
Section titled “Imports and uploads”- A
pushstopped partway. Run it again. Uploads resume where they stopped, so re-running is always safe.pushexits non-zero when any asset failed, and--jsonlists each asset’s outcome (User Guide — Import and back up). - Keep your originals until custody is verified. Don’t delete a source file until
pushreports its asset verified, or useimport --move --push, which deletes each source only after its asset is verified. - A Google Photos export looks incomplete. Check that every part of the Takeout export was downloaded and extracted, and read what the importer cannot guarantee (Migrating from Google Photos — What the importer cannot guarantee).
- Capture times are wrong.
capsule repair capture-timereports every asset whose signed capture time disagrees with the original’s EXIF, and--applycorrects them. Each correction is a permanent signed record, so run it without--applyfirst.
Check a library’s integrity
Section titled “Check a library’s integrity”If photos look missing or damaged, stop and don’t delete anything while you find out: deleting can remove the context you need to recover.
capsule verify --library <path>asks the server whether it durably holds each original.--deephas the server re-hash the stored bytes instead of only checking they are present, and--signedkeeps the server’s signed verdict in the library.- Trashed assets stay recoverable for their retention window:
capsule trash restore --library <path> --asset <id>brings one back (User Guide — Delete safely). - A lost device or key has its own procedures: Backup and Recovery — Recovery Paths.
If data is lost or corrupted, report it as a bug with the output of each step. Losing or corrupting data is a defect, whatever its cause.
Still stuck
Section titled “Still stuck”Support lists where to ask a question and how to file a bug report that can be acted on.