Troubleshooting Guide
Solutions to common Matrix problems, for users and for server admins.
Client issues
Can't log in
| Symptom | Likely cause | What to do |
|---|---|---|
| "Unknown user" or wrong server | The client is pointed at the wrong homeserver | Choose your homeserver first, then enter your username (most clients accept the bare name or the full @user:example.com) |
| "Incorrect password" | Wrong password | Use the server's password reset, or ask its admin |
| "Server not found" | Wrong address, or .well-known/matrix/client missing | Enter the server name (example.com); ask the admin to check the client well-known |
| Element X says the server is unsupported | Server lacks Simplified Sliding Sync | The admin should upgrade Synapse (native since 1.114) or use a server that supports it; see Server comparison |
| Spinning forever | Network problem | Check the connection; try another network |
Messages not loading
- Check the client's connection or sync indicator.
- Clear the client cache (in Element Web: Settings → Help & About → Clear cache and reload).
- Sign out and back in, but set up key backup or recovery first, or you can lose access to encrypted history.
- Try another network.
Can't decrypt messages
"Unable to decrypt" usually means this session never received the room key.
- Recovery / key backup. In Element, Settings → Encryption (or Security & Privacy) lets you set up recovery, or enter your recovery key to restore keys from backup.
- Verify this session from another signed-in session. Verified sessions can share keys.
- Wait. Keys sometimes arrive late, especially after the sender's device was offline.
Messages sent before you joined a room, or to a session that was never verified or backed up, may be permanently unreadable.
Prevention: set up recovery as soon as you create an account, verify every new session, and keep at least one signed-in session.
Slow client
| Issue | What to do |
|---|---|
| Slow sync | Leave rooms you don't use; clear cache |
| High memory | Try a lighter client (see Clients) |
| Sluggish UI | Turn off URL previews and animations |
Federation issues
Messages not reaching other servers
Test with the Matrix Federation Tester:
curl "https://federationtester.matrix.org/api/report?server_name=example.com"
| Issue | Fix |
|---|---|
Port 8448 closed and no .well-known | Delegate to 443 with /.well-known/matrix/server, or open 8448 |
Missing or wrong .well-known | See below |
| Certificate problems | Use a publicly trusted certificate for the hostname servers connect to |
| DNS problems | Check A/AAAA records for both the server name and the delegated host |
Well-known setup
Server delegation, served at https://example.com/.well-known/matrix/server:
{"m.server": "matrix.example.com:443"}
Client discovery, served at https://example.com/.well-known/matrix/client with the header Access-Control-Allow-Origin: *:
{"m.homeserver": {"base_url": "https://matrix.example.com"}}
Both should be served as application/json. See Well-known delegation.
Federation lag
- Check homeserver CPU, memory and database load.
- Check whether the remote server is up (the federation tester works for any server name).
- Large rooms are slow to join over federation; first joins can take minutes.
Encryption issues
Device verification failed
- Try again; network hiccups are common.
- Check the clock on both devices.
- Try another method (QR code or emoji comparison).
- As a last resort, reset your cryptographic identity. You will need to verify your other sessions again, and contacts will see a warning.
Key backup not working
| Problem | What to do |
|---|---|
| Can't set up backup | Update the client; check the server is reachable |
| Can't restore | Check the recovery key or passphrase |
| Keys not backing up | Check that backup is enabled in this session |
Room shows "encryption not enabled"
The room was created without encryption. Encryption can be turned on later but never off. For an encrypted room, enable it in room settings or create a new room.
Server issues (Synapse)
High memory
caches.global_factor defaults to 0.5, so setting it to 0.5 changes nothing. Lower it (for example 0.25), or use cache_autotuning with jemalloc, which the Docker image includes. See Synapse: caches. Memory also grows with very large rooms; workers spread the load across processes.
Synapse won't start
journalctl -u matrix-synapse -f # Debian package
docker compose logs -f synapse # Docker
python -m synapse.config -c homeserver.yaml # validate config
Common causes:
- A config option removed or changed in an upgrade. Read the upgrade notes. For example,
worker_replication_hostwas removed in 1.88, and 1.163 rejectslimit_profile_requests_to_users_who_share_roomswithoutrequire_auth_for_profile_requests. url_preview_enabled: truewithouturl_preview_ip_range_blacklist.- MAS enabled together with
enable_registration,enable_registration_captchaor password login. These conflict, and Synapse refuses to start. - PostgreSQL older than 14, or Python older than 3.10.
- Missing signing key, port already in use, or database unreachable.
Password login or register_new_matrix_user fails after enabling MAS
That is expected. With MAS, Synapse no longer handles passwords or registration, and its admin API refuses to create users (1.163). Create users with mas-cli manage register-user. See Synapse: MAS.
Database
# Is PostgreSQL running and reachable?
systemctl status postgresql
psql -U synapse -h localhost synapse
# Vacuum and analyse
psql -U synapse -h localhost -c "VACUUM ANALYZE;" synapse
Disk space
Find what is large. The data lives in /var/lib/matrix-synapse with the Debian package, or in /data inside the Docker container:
du -sh /var/lib/matrix-synapse/*
Cleanup options:
- Purge cached remote media:
POST /_synapse/admin/v1/purge_media_cache?before_ts=<ms>(media admin API). - Delete old local media:
POST /_synapse/admin/v1/media/delete?before_ts=<ms>. This deletes files users uploaded, so use it with care. - Expire media automatically with
media_retention(see Synapse: media retention). - Compress room state with
synapse_auto_compressor. It rewrites database tables, so back up first.
Call the admin API from the host (http://localhost:8008), not through the public proxy.
Signing key from ESS Community
If you deployed with the ESS Community Helm chart before version 25.12.2, your server's signing key may be weak (CVE-2026-24044). Upgrade the chart and follow the advisory's rotation steps.
Bridge issues
Bridge not connecting
- Check the bridge logs.
- Check that the registration file is listed in
app_service_config_filesand that Synapse was restarted afterwards. - Check that the bridge can reach the homeserver address in its config, and that the homeserver can reach the bridge (inside Docker, use container names, not
localhost). - Message the bridge bot and ask for help (
helpin mautrix bridges).
Under MAS, bridges that use encryption need MSC4190 support in the bridge (for mautrix bridges, encryption.msc4190: true). Synapse before 1.141 also needs io.element.msc4190: true in the bridge's registration file; 1.141 and later do not.
Messages not bridging
| Direction | Check |
|---|---|
| Matrix → remote | The bridge's login on the remote side; puppet permissions |
| Remote → Matrix | The portal room exists and the bridge bot is in it |
| Both | The bridge service is running |
Double messages
- Two bridge instances running with the same registration
- A room bridged twice
Media issues
Upload failed
| Cause | Fix |
|---|---|
| File too large | Raise max_upload_size in Synapse and client_max_body_size (nginx) or equivalent in the proxy |
| Disk full | Free space (see above) |
Media not loading
- Authenticated media. Since Synapse 1.120 (
enable_authenticated_mediadefaults to true), new media is only served on the authenticated endpoints such as/_matrix/client/v1/media/download/{serverName}/{mediaId}. Old clients and bridges that use the legacy/_matrix/media/*download endpoints get 404s. Update them. - Check the proxy forwards everything under
/_matrix. - Check the certificate.
- Clear the client cache.
Calls
Element Call (group calls in Element Web and Element X)
Element Call uses MatrixRTC with a LiveKit SFU, not TURN. Check:
- LiveKit and
lk-jwt-serviceare running and reachable over HTTPS/WSS. - Synapse's
matrix_rtctransports point at them, and the experimental flags from the Element Call self-hosting guide are set. - An error such as
MISSING_MATRIX_RTC_TRANSPORTmeans the client found no transport. Some deployments still also publish the olderorg.matrix.msc4143.rtc_focientry in.well-known/matrix/clientfor older clients. - LiveKit's ports are open in the firewall.
Legacy 1:1 calls (TURN)
- Check the TURN server:
turn_urisandturn_shared_secret(orturn_shared_secret_path) in Synapse, and the same secret asstatic-auth-secretin coturn. - Firewall: 3478 and 5349 (TCP and UDP), and the relay range 49152–65535 (UDP), which is coturn's default.
- Check browser camera and microphone permissions.
Poor call quality
- Use a wired connection
- Close other bandwidth-heavy apps
- Try audio only
Getting help
What to include
1. Client or server name and version
2. The exact error message
3. Steps to reproduce
4. What you've tried
5. Relevant logs (remove tokens and personal data)
Where to ask
| Resource | For |
|---|---|
| #matrix:matrix.org | General help |
| #synapse:matrix.org | Synapse admins |
| #element-web:matrix.org | Element Web |
| element-hq/synapse issues | Synapse bug reports |
| element-hq/element-web issues | Element Web bug reports |
Need more help? Join #matrix:matrix.org