Describe the problem/error/question
Hi, I’m running a self-hosted n8n instance and facing multiple issues related to execution queueing and database connections.
Current setup:
- Docker self-hosted n8n
- SQLite as main DB
- Postgres Trigger node connected to external DB (likely Supabase)
Issues:
- Executions are getting stuck in queue (“Starting soon”)
- Encountered SQLite write lock errors
- Workflow activation fails with:
“MaxClientsInSessionMode: max clients reached” - Sometimes results in 502 Bad Gateway from Cloudflare
What I’ve tried:
- Increased concurrency limit to 5
- Restarted container
- Disabled workflow temporarily
Question:
What is the recommended setup for handling high-frequency Postgres triggers without hitting connection limits or queueing issues?
Would switching fully to PostgreSQL for n8n solve this, or should I redesign the trigger flow?
Thanks!
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: