High · Database
How to Fix SQLITE_BUSY: database is locked
TL;DR Fix
Default SQLite database cannot handle concurrent writes when multiple webhooks or AI agent sub-workflows fire simultaneously. Always deploy n8n with PostgreSQL 16 from day one using NodeBudget Blueprint Generator.
Exact Error Signature
QueryFailedError: SQLITE_BUSY: database is locked | n8n webhook timeout
Copy-Paste Fix Commands
# Switch .env to PostgreSQL 16 (only 31 MB idle RSS):
DB_TYPE=postgresdb
DB_POSTGRESDB_HOST=postgres
DB_POSTGRESDB_DATABASE=n8n
DB_POSTGRESDB_USER=n8n
Preventing Recurrence
Always deploy n8n with PostgreSQL 16 from day one using NodeBudget Blueprint Generator.