Docs

Troubleshooting

Common problems of a self-hosted server, their causes and what to check.

Start with python3 tools/mvp-stack.py check and the server's log (dc logs federation; the dc function is in operations).

Starting

What you seeCause and what to do
The server does not start; the log says MediaVolumeMismatchThe database runs on another or empty media volume. Attach the volume taken together with the database.
The server does not start without noise-server-keyThe database has signed-in devices but no Noise key exists. A new key would cut them off, so the server never creates one itself. Restore the key from a backup.
The server refuses to start because of the schemaThe database is older or newer than the server. up normally applies migrations itself; if you start the server by hand, run migrate_database first.
The server does not start behind the proxyWith --behind-tls-proxy a real OIDC provider (--oidc-config) is required: the development sign-in is not allowed behind a proxy.
Unknown option, and the server does not startA typo or an option from another version. Check the reference.
A second server on the same database does not startAs designed: one writer.
Caddy does not get a certificateThe domain must point at the machine, and ports 80 and 443 must be open from outside.

Running

What you seeCause and what to do
/ready answers 503 after a PostgreSQL restartThe server does not reconnect to the database by itself. Restart it: mvp-stack.py stop, then up.
Messages arrive late, and sync_projections.poisoned grows in /readyFeed processing has stopped. See stopped processing.
Scheduled messages and bot webhooks do not go out after a restoreOutbound work is held until release-outbound (restoring).
New people cannot sign in, and the log mentions the profile limitThe federation has 10,000 profiles (limits).

Sign-in

What you seeCause and what to do
The sign-in provider complains about the redirect URIThe provider's client must have https://<domain>/auth/oidc/callback registered.
Sign-in is refused after the provider's pageissuer, client_id, the signature or nonce do not match. The detailed reason is in the server's log. Providers without nonce need nonce_mode: pkce_only and a confidential client (sign-in).
Sign-in in the web client does not return to the appThe server was not given --web-client with the web client's address.
Required phone numbers cannot be turned onThe provider does not supply verified numbers: add phone to scopes.
Someone forgot their cloud passwordResetting the password.

Calls

What you seeCause and what to do
A direct call connects only within one networkTURN ports are closed (3478 TCP/UDP, 49160–49200 UDP), or external-ip in turnserver.conf is not the public address.
A group call does not startNo SFU: calls.json has no sfu_url, or the sfu service is not running.
A group call has no audio or videoUDP 7882 is closed, or COMON_SFU_PUBLIC_IPS in sfu.env is not the public address.
Group calls fail from the server's home network but work from outsideThe router cannot do hairpin NAT. Add the LAN address to COMON_SFU_PUBLIC_IPS (server behind NAT).
Calls from a browser on a corporate network do not connectThe network lets only TLS through: turn on TURN over TLS.

Test calls from a phone on a mobile network: an open TCP port does not prove that UDP gets through.

Notifications and media

What you seeCause and what to do
Notifications arrive only while the app is openPush is not set up, or the relay built into the app does not trust your federation (which relay you need).
Push stopped working after a restoreAs designed: push turns off after a restore (relay backup).
The web client stopped getting notificationsThe VAPID key changed: every browser subscription has to be made again.
Video cannot be sent, but incoming videos playThe server image was built without ffmpeg. Turn on sending video.
Uploads fail for everyoneMedia storage (--media-storage-bytes) or the disk is full.
A single-emoji message is not animatedThe AnimatedEmoji set is not installed (animated emoji).

Apps

What you seeCause and what to do
"Update the app"The app's level is below --minimum-client-level (app versions).
Apps do not connect after the server was reinstalledThe Noise key changed: the apps remember the old one. Restore the key from a backup; otherwise people have to remove the federation from the app and add it again.
The domain's links open in the browser, not in the appYour own domain needs your own app build (opening links).

On this page