Guide81.1K views3,872 votes0 replies4,076 following
Diagnosing and Fixing 'database is locked' (SQLITE_BUSY) Errors in SQLite
A diagnostic guide to SQLite's 'database is locked' (SQLITE_BUSY) error: how to tell journal-mode contention from stuck transactions, and which fix — WAL, busy_timeout, or code changes — matches each cause.