Error Diagnostics // NodeFlow Diagnostics
SQLite SQLITE_BUSY Database Lock Under Concurrent Flows
Default SQLite storage serializes every write transaction—causing chat history saves, telemetry logs, and vector metadata writes to fail with SQLITE_BUSY above 5-8 concurrent users.
Measured Stack Telemetry & Memory Profile
Both FlowiseAI and Langflow ship with SQLite as a zero-config quickstart. The moment you turn on Redis queue workers or run 10+ parallel multi-agent flows, multiple containers or async threads compete for the single-writer file lock and crash requests.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| SQLite Safe Concurrency | 1 - 4 light flows | Single-writer lock fails under parallel workers |
| Postgres Pool Concurrency | 20 - 100+ flows | Row-level MVCC locking across worker nodes |
| Queue Mode Compatibility | Postgres Mandatory | Required for multi-container Flowise/Langflow |
Step-by-Step Triage & Config Remediation
- Provision PostgreSQL 16 container: Add pgvector/pgvector:pg16 to docker-compose.yml on the same private Docker network.
- Export flows before switching DB: Export Chatflows/Agentflows JSON from the UI prior to pointing DATABASE_TYPE=postgres.
- Verify connection pool limits: Keep Postgres max_connections >= 100 when running 3+ Flowise or Celery workers.
DATABASE_TYPE=postgres DATABASE_HOST=postgres DATABASE_PORT=5432 DATABASE_NAME=flowise DATABASE_USER=flowise
Diagnostic FAQ
Can I run Flowise MODE=queue with SQLite?
No. Multiple worker containers cannot safely share a single SQLite file; PostgreSQL is mandatory for Queue Mode.
How much RAM does Postgres 16 add on KVM 2?
A tuned Postgres container for Flowise/Langflow metadata uses roughly 350-650 MB RAM.