Troubleshooting
Start with three things: the container's log (docker compose logs hearth --tail 200), the answer of /readyz, and Administration, Jobs.
Most problems show in one of them.
Hearth does not start
Hearth checks every setting before it starts and stops with all the
mistakes at once, one per line, after hearth:. For example:
hearth: STORAGE must be set to local or s3
PUBLIC_URL must be https (http only for localhost)
MASTER_KEY_FILE: cannot read /run/hearth/master.key: permission denied
Common ones:
| Message | What to do |
|---|---|
X must be set |
a required setting is missing: add it |
PUBLIC_URL must be an address like https://hearth.example.com (no path) |
give the origin only, without a path or a trailing part |
PUBLIC_URL must be https (http only for localhost) |
use https; plain http works only on localhost |
MASTER_KEY_FILE: cannot read ... |
the file is missing or not readable by user 65532 |
MASTER_KEY_FILE must hold 32 bytes as 64 hex characters or base64 (e.g. openssl rand -hex 32) |
the file has the wrong content; make it with openssl rand -hex 32 |
... must be a whole number from A to B (it is "...") |
a number outside its range; see the configuration reference |
MAIL_SMTP_TLS=none is only for a relay on localhost |
use tls (port 465) or starttls (port 587) for a remote mail server |
TALK_SEALED_COPY_DEFAULT: true or false, with TALK=true |
add TALK_SEALED_COPY_DEFAULT when Talk is on (Talk and calls) |
OCR_MODELS_DIR: required with OCR_HELPER |
set both, or neither |
TYPST_FONTS: the bundled fonts' folder, required with TYPST_ENGINE |
set both, or neither |
... the jail program is found beside Hearth's binary ... |
the engines need hearth-jail next to /hearth; use the image as built, do not copy the binary out alone |
Settings that come in groups (MAIL_*, LITELLM_*, QDRANT_*,
CALLS_LIVEKIT_*, VAULTWARDEN_*, the APNs settings) are all or
nothing: one of them set makes the others required.
With Docker Compose, a compose file that names a variable missing from
.env with ${X:?...} stops before Hearth runs at all. docker compose config shows the problem.
/readyz says "not ready"
/readyz names what does not answer:
postgres: the database is down, orDATABASE_URLis wrong. Checkdocker compose logs hearth-postgres. If Postgres refuses connections, itsmax_connectionsis too low for the pools of all Hearth containers (each takesDATABASE_MAX_CONNS, 20 by default, plus about five).valkey: Valkey is down, or the password inVALKEY_URLdoes not match Valkey'srequirepass.storage: the file store cannot be read: a missing mount, wrong owner (it must be 65532), or the S3 endpoint or keys.events: the live event stream is not running. It usually follows a Valkey problem; restart Hearth once Valkey answers.draining: Hearth is shutting down. It answers this during a restart.
Everyone has the same address in the audit log
Every sign-in, audit entry and signing record shows the proxy's address
instead of the visitor's. TRUSTED_PROXIES does not include the address
the proxy connects from.
Find the gateway of each Docker network the Hearth container is on:
docker network inspect $(docker inspect hearth -f '{{range $k, $v := .NetworkSettings.Networks}}{{$k}} {{end}}') -f '{{.Name}} {{range .IPAM.Config}}{{.Gateway}}{{end}}'List all of them in
TRUSTED_PROXIES, comma-separated, and restart.
A network added to the container later needs its gateway added too. This also matters for the sign-in limit: without it every visitor shares one network count, and one person's wrong passwords slow everyone down.
Mail does not go out
Invitations, guests' codes and the weekly summary need outgoing mail.
- "Sending mail is not set up on this server": the
MAIL_*settings are not set (configuration). - "The mail could not be sent": Hearth reached no answer, or the server
refused. The log has the error. Check the port and
MAIL_SMTP_TLS(tlsfor 465,starttlsfor 587), the user name, and the password file. - Mail is sent but not received: check the sending domain's SPF, DKIM
and DMARC records with your mail provider, and that
MAIL_FROMis an address the SMTP server may send as.
Invitations are never mailed to placeholder addresses or to an address that already has an account.
Office documents do not open
Look at Administration, Office, or run hearth office show.
- "The engine's discovery could not be read": Hearth cannot reach the engine at Hearth Office: address for Hearth's server. Check that the engine's container is healthy (it takes up to two minutes to start) and on the same Docker network.
- The editor stays blank in the browser: the browser cannot load the engine's address for browsers. Open that address directly; check its certificate and that your proxy passes WebSockets.
- "Requests from this address are refused": the engine's requests to Hearth come from a network not in Allowed engine networks. Add the Docker network both are on.
- "Office is not available to you": the person is not in a group under Who may use Office.
- "This file could not be converted to PDF": the engine failed on the
file, or
OFFICE_JWT_SECRETdoes not match the engine'sJWT_SECRET.
The virus scanner is not answering
Administration, Virus scan shows Not answering, and admins get a notice.
- During a signature reload (about half a minute) or a restart (about 40 seconds) this is normal; it clears by itself.
- After that, check
docker compose logs hearth-clamav. clamd needs about 5 GB of memory; when it is killed for lack of memory, raise the container's limit. - In the mode Before accepting, uploads are refused while clamd is down ("uploads refused"). Switch to In the background for the time being if people cannot wait; files uploaded meanwhile are checked later.
- Large uploads fail with a timeout: raise
CLAMAV_TIMEOUT_SECONDS, and check that clamd'sStreamMaxLengthis not below Largest file to scan.
Sync apps list everything again after a restore
That is intended. When Hearth notices that its database was put back from a backup, it gives every storage a new sync epoch, and every sync app compares its folders with the server once, instead of trusting ids the restored database no longer knows. Nothing is deleted on either side by this.
Hearth notices by comparing the database with the value in
SYNC_LINEAGE_DIR. If you restored the database by hand and also copied
an old SYNC_LINEAGE_DIR back, Hearth cannot tell: run hearth sync new-epoch
yourself, and never back up or restore that folder.
hearth sync status shows the sync feed's storages and the files still
waiting for a content hash.
Background work is slow or stuck
Administration, Jobs shows what is waiting, running and failed.
- Jobs waiting for a long time while the server is busy: background
lanes wait while memory is above
JOBS_PAUSE_MEMORY_PERCENT(80) or processors aboveJOBS_PAUSE_CPU_PERCENT(90). Give the server or the jobs container more room, or let the night window catch up. - A failed job shows its last error. Retry runs it again once the cause is fixed.
- Search shows nothing for new files: the index follows changes within seconds; check Administration, Search index for Not indexed and the reason.
People cannot sign in
- "Too many tries. Try again later.": the waits after wrong passwords. They end by themselves; an administrator can reset a person's password or two-factor in Administration, Users.
- Everyone is refused at once: check
TRUSTED_PROXIES(above), since without it all visitors share one network's count (SIGNIN_FAILURES_PER_IP, 300 wrong tries inSIGNIN_WINDOW_MINUTES). - Passkeys fail after a change of address: passkeys belong to the
address in
PUBLIC_URL. A new address needs new passkeys. - Sign-in through the organisation fails: see Sign-in.
Finding one request
Every response carries X-Request-Id. When someone reports an error, ask
for the time (or the id from the browser's network panel), then search
the log for it: every line of that request carries the same rid, and
the "request failed" line has the cause.