I’m facing issues with my N8N self-hosted setup in Queue Mode. When I check the execution history, both the webhook and chat sessions are queued but never executed, eventually timing out. Additionally, when I test and run a workflow, it continues executing even after the process is complete.
Here are my YAML files for the N8N main and N8N-worker configurations. Am I missing something? I’m sure there’s some hack or configuration I’ve overlooked. Any help would be greatly appreciated!
Chat and Webhook in queue
Chat box is missing
n8n:
- image: n8nio/n8n:latest*
- restart: always*
- ports:*
-
- 5678:5678*
- environment:*
-
- DB_TYPE=postgresdb*
-
- DB_POSTGRESDB_HOST=postgres*
-
- DB_POSTGRESDB_PORT=5432*
-
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}*
-
- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}*
-
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}*
-
- EXECUTIONS_MODE=queue*
-
- QUEUE_BULL_REDIS_HOST=redis*
-
- QUEUE_BULL_REDIS_PORT=6379*
-
- QUEUE_HEALTH_CHECK_ACTIVE=true*
-
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}*
-
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true*
-
- QUEUE_RETRY_ATTEMPTS=3*
-
- QUEUE_DLQ_NAME=dead_letter_queue*
-
- NODE_ENV=production*
-
- TZ=America/New_York*
-
- N8N_DEFAULT_TIMEZONE=America/New_York*
-
- EXECUTIONS_PROCESS=main*
-
- EXECUTIONS_PROCESS_COUNT=10*
-
- EXECUTIONS_TIMEOUT=1800*
-
- N8N_METRICS=true*
-
- N8N_METRICS_PORT=5678*
-
- N8N_SESSION_STORE_OPTIONS='{"type":"redis","host":"redis","port":6379}'*
n8n-worker:
- image: n8nio/n8n:latest*
- restart: always*
- environment:*
-
- DB_TYPE=postgresdb*
-
- DB_POSTGRESDB_HOST=postgres*
-
- DB_POSTGRESDB_PORT=5432*
-
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}*
-
- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}*
-
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}*
-
- EXECUTIONS_MODE=queue*
-
- EXECUTIONS_PROCESS=queue-worker*
-
- QUEUE_BULL_REDIS_HOST=redis*
-
- QUEUE_BULL_REDIS_PORT=6379*
-
- QUEUE_HEALTH_CHECK_ACTIVE=true*
-
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}*
-
- QUEUE_RETRY_ATTEMPTS=3*
-
- QUEUE_DLQ_NAME=dead_letter_queue*
-
- TZ=America/New_York*
-
- N8N_DEFAULT_TIMEZONE=America/New_York*
-
- N8N_METRICS_PORT=5678*
-
- N8N_SESSION_STORE_OPTIONS='{"type":"redis","host":"redis","port":6379}'*
Please let me know if you have any questions
Information on your n8n setup
- **n8n version: 1.69.2 **
- Database (default: SQLite): postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): Queue
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Durian 12 Linux