Error Triage Hub (9)
Synapse SQLite Database Locked Errors Over 50 Active Users
Synapse explicitly warns against SQLite in production: concurrent federation writes and client syncs trigger writer lock timeouts above 20-50 users.
Failure Point: 20-50 active users | Error: database is locked
Why Synapse SQLite Serializes Every Matrix Write Transaction
Unlike Conduit and Continuwuity which embed multi-threaded RocksDB LSM storage, Python Synapse treats SQLite strictly as a single-user test backend. Concurrent presence updates, read receipts, and inbound federation transactions collide on the SQLite file lock.
Choosing Between Postgres Migration or Rust Homeserver Switch
Once database is locked appears in homeserver.log, operators face two clean exits: run synapse_port_db into PostgreSQL initialized with LC_COLLATE=C, or migrate small teams under 150 users onto Continuwuity / Conduit Rust.
Measured Thresholds & Configuration
| Database Backend | Concurrent Write Handling | Safe User Ceiling |
|---|---|---|
| Synapse + SQLite3 | Single global write lock | < 15 test users only |
| Synapse + PostgreSQL (C locale) | MVCC row locking + workers | 50 - 5,000+ users |
| Continuwuity / Conduit + RocksDB | Embedded lock-free LSM compaction | 1 - 400+ users (< 250 MB RAM) |