Steps
Read the last lines of the log
Queue mode problems almost always show up in the log of the main instance or the worker, not in the editor. Run
docker compose logs n8nanddocker compose logs n8n-worker(or your service names) and look for Redis, encryption key or exiting. The table below has every message we got and its fix.Make sure Redis is reachable
If Redis is down or unreachable, n8n retries for 10 seconds and then exits with
Unable to connect to Redis after trying to connect for 10s. CheckQUEUE_BULL_REDIS_HOST(in Docker, the Redis service name), the port, andQUEUE_BULL_REDIS_PASSWORDif Redis has one: a missing one givesNOAUTH, a wrong oneWRONGPASS.Use one encryption key everywhere
Copy the main instance's key into
N8N_ENCRYPTION_KEYfor every worker. A worker without it refused to start (Failed to start worker because of missing encryption key), and one with a different key exited withDeployment key 'signing.hmac' cannot be read with this instance encryption key.Check that a worker is actually running
In queue mode the main instance doesn't run executions itself. With no worker, our webhook still said
Workflow was startedbut nothing ran. Start at least one worker withn8n worker(Docker:command: worker) and look forn8n worker is now ready.Match the queue settings
Main and workers must use the same Redis host, port, database and
QUEUE_BULL_PREFIX. A worker with a different prefix showed no error and never picked up a job. Then send one test request and watch the worker log forWorker started execution.
Every queue mode error we triggered
On 19 October 2026 we ran n8n 2.43.7 in queue mode on one machine with Redis 8.0.2: a main instance (n8n start), workers (n8n worker) started in different ways, and a published workflow with a Webhook trigger and an HTTP Request node that uses a saved credential. Each row is one run.
| What we did | What n8n showed | Fix |
|---|---|---|
Main started with EXECUTIONS_MODE=queue, Redis not running | Unable to connect to Redis after trying to connect for 10sExiting process due to Redis connection error, exit code 1 | Start Redis first, and check host and port (QUEUE_BULL_REDIS_HOST, QUEUE_BULL_REDIS_PORT). In Docker, the host is the Redis service name, not localhost. |
| Redis stopped while n8n was running | Lost Redis connection. Trying to reconnect in 1s... (5s/10s) every second, then the same exit after 10 s | n8n doesn't wait forever: it exits, so your container must restart it (restart: unless-stopped) and Redis must come back. |
Same, with QUEUE_BULL_REDIS_TIMEOUT_THRESHOLD=30000 | Kept retrying up to (29.3s/30s), then Unable to connect to Redis after trying to connect for 30s | Raise it if Redis restarts slowly. The value is in milliseconds. |
| Redis has a password, n8n has none | ReplyError: NOAUTH Authentication required., Worker exiting due to an error. | Set QUEUE_BULL_REDIS_PASSWORD on the main instance and on every worker. |
| Wrong Redis password | [Redis client] WRONGPASS invalid username-password pair or user is disabled. (8 times), then the worker exited | Copy the password again. A $ in it can be eaten by your shell or by Docker Compose; quote it or use $$ in Compose. |
| Worker with no encryption key (its own data folder) | Failed to start worker because of missing encryption key. Please set the `N8N_ENCRYPTION_KEY` env var when starting the worker. | Give the worker the same N8N_ENCRYPTION_KEY as the main instance. A worker won't make up its own key, unlike n8n start. |
Worker with a different N8N_ENCRYPTION_KEY | Deployment key 'signing.hmac' cannot be read with this instance encryption key, Worker exiting due to an error. | Same fix: one key, copied exactly, on main and workers. Find the main one in ~/.n8n/config (encryptionKey) if you never set it. |
| Worker with the same key, its own folder | Ran the queued workflow, including an HTTP Request with a saved header credential: success | This is the setup you want. |
Worker with a different QUEUE_BULL_PREFIX | No error at all. The worker said n8n worker is now ready, the webhook answered 200, and the execution stayed waiting | Use the same QUEUE_BULL_PREFIX (or none) everywhere. Same for the Redis database number. |
| SQLite instead of Postgres | Scaling mode is not officially supported with sqlite. Please use PostgreSQL instead. on every start | It still ran in our single-machine test, but use Postgres for real queue mode: workers on other machines can't share a SQLite file. |
The silent one: executions stuck waiting
With the main instance in queue mode and no worker running, the production webhook still answered 200 {"message":"Workflow was started"}. Nothing ran. The execution sat in the database with status new and no start time, and Redis held the job in bull:jobs:wait. The main instance logged nothing about it.
When we started a worker against the same Redis and database, it picked the job up within about 5 seconds (Worker started execution 1 (job 1), then Worker finished execution 1 (job 1)), and the next webhook ran in about 13 ms. A worker with a different QUEUE_BULL_PREFIX looked healthy but never touched the job. So if executions pile up as waiting, first check that a worker is running, then that it uses exactly the same Redis host, port, database and prefix as the main instance.
# Is anything waiting in the queue? (default prefix "bull", queue "jobs")
redis-cli -h redis -a "$REDIS_PASSWORD" LLEN bull:jobs:wait
# Is the worker alive? (needs QUEUE_HEALTH_CHECK_ACTIVE=true)
curl http://worker:5678/healthz # {"status":"ok"}
curl http://worker:5678/healthz/readiness
A setup that worked
The values that have to match are the database, the Redis connection and the encryption key. In our test the worker had its own data folder and only got the key through N8N_ENCRYPTION_KEY, and it decrypted the credential fine.
# Same values on the main n8n service AND every worker
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- EXECUTIONS_MODE=queue
- QUEUE_BULL_REDIS_HOST=redis
- QUEUE_BULL_REDIS_PORT=6379
- QUEUE_BULL_REDIS_PASSWORD=${REDIS_PASSWORD}
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}
# worker service only
command: worker
environment:
- QUEUE_HEALTH_CHECK_ACTIVE=true # optional: curl http://worker:5678/healthzThe worker printed n8n worker is now ready, its version, Concurrency: 10 (the default) and Queue: jobs. With n8n worker --concurrency=2 it warned: Concurrency is set to less than 5. THIS CAN LEAD TO AN UNSTABLE ENVIRONMENT.
Good to know
- Community node missing or
Unrecognized node type? n8n community nodes: install errors and missing packages. - Right after the main instance became ready, our first webhook call still got
404 The requested webhook "POST q-in" is not registered.Ten seconds later the same call worked. Don't judge a fresh restart by its first second; for real 404s see n8n webhook 404. - Credential errors after moving to queue mode usually mean the key isn't the same everywhere: see n8n credentials could not be decrypted.
- n8n that won't start for other reasons (port in use, Node version, Postgres down): n8n self-hosting errors.
What we didn't test
- Postgres (we used one shared SQLite file on one machine), Docker itself, separate webhook processors (
n8n webhook), multi-main, Redis Cluster, Sentinel and TLS. - Long-running jobs, stalled jobs and worker crashes during an execution. The Docker and Postgres lines in the setup above follow n8n's docs, not our runs.
Start from a working agent
FAQ
Why are my n8n executions stuck in queued or waiting?
In queue mode the main instance only puts executions on the Redis queue; a worker runs them. If no worker is running, or the worker uses a different Redis host, database or QUEUE_BULL_PREFIX, jobs wait forever with no error. In our test a webhook still answered "Workflow was started" while nothing ran.
What does "Unable to connect to Redis after trying to connect for 10s" mean?
n8n is in queue mode and can't reach Redis, so it retries for 10 seconds and exits. Check that Redis is running and that QUEUE_BULL_REDIS_HOST, QUEUE_BULL_REDIS_PORT and QUEUE_BULL_REDIS_PASSWORD are right. QUEUE_BULL_REDIS_TIMEOUT_THRESHOLD (milliseconds) changes how long it retries.
Why does the n8n worker say missing encryption key?
A worker won't generate its own encryption key. Set N8N_ENCRYPTION_KEY on the worker to the same value as the main instance; you find it in the main instance's ~/.n8n/config as encryptionKey if you never set it yourself.
What does "Deployment key 'signing.hmac' cannot be read with this instance encryption key" mean?
The worker's N8N_ENCRYPTION_KEY is different from the one the main instance used, so it can't read keys stored in the shared database and exits. Use exactly the same key on main and workers.
Can I use n8n queue mode with SQLite?
n8n warns "Scaling mode is not officially supported with sqlite. Please use PostgreSQL instead." It ran in our single-machine test with a shared SQLite file, but workers on other machines or containers can't share that file, so use Postgres.
Related guides
- n8n Redis node errors and hangs: connection, TLS and Set fixes, 50 tests
- n8n binary data in queue mode: worker says File not found? 6 tests
- n8n MongoDB node errors: Authentication failed, Invalid JSON and query fixes, 40 runs
- n8n “Credentials could not be decrypted” and other credential errors: 13 tests, fixed
- n8n Simple Vector Store not working? 23 tests, every error decoded
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes