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 see | Cause and what to do |
|---|---|
The server does not start; the log says MediaVolumeMismatch | The database runs on another or empty media volume. Attach the volume taken together with the database. |
The server does not start without noise-server-key | The 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 schema | The 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 proxy | With --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 start | A typo or an option from another version. Check the reference. |
| A second server on the same database does not start | As designed: one writer. |
| Caddy does not get a certificate | The domain must point at the machine, and ports 80 and 443 must be open from outside. |
Running
| What you see | Cause and what to do |
|---|---|
/ready answers 503 after a PostgreSQL restart | The 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 /ready | Feed processing has stopped. See stopped processing. |
| Scheduled messages and bot webhooks do not go out after a restore | Outbound work is held until release-outbound (restoring). |
| New people cannot sign in, and the log mentions the profile limit | The federation has 10,000 profiles (limits). |
Sign-in
| What you see | Cause and what to do |
|---|---|
| The sign-in provider complains about the redirect URI | The provider's client must have https://<domain>/auth/oidc/callback registered. |
| Sign-in is refused after the provider's page | issuer, 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 app | The server was not given --web-client with the web client's address. |
| Required phone numbers cannot be turned on | The provider does not supply verified numbers: add phone to scopes. |
| Someone forgot their cloud password | Resetting the password. |
Calls
| What you see | Cause and what to do |
|---|---|
| A direct call connects only within one network | TURN 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 start | No SFU: calls.json has no sfu_url, or the sfu service is not running. |
| A group call has no audio or video | UDP 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 outside | The 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 connect | The 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 see | Cause and what to do |
|---|---|
| Notifications arrive only while the app is open | Push 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 restore | As designed: push turns off after a restore (relay backup). |
| The web client stopped getting notifications | The VAPID key changed: every browser subscription has to be made again. |
| Video cannot be sent, but incoming videos play | The server image was built without ffmpeg. Turn on sending video. |
| Uploads fail for everyone | Media storage (--media-storage-bytes) or the disk is full. |
| A single-emoji message is not animated | The AnimatedEmoji set is not installed (animated emoji). |
Apps
| What you see | Cause 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 reinstalled | The 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 app | Your own domain needs your own app build (opening links). |