Describe the issue/error/question
I am attempting to create a 3-droplet setup at Digital Ocean with a MySQL database. I am using the n8n-digital-ocean github repo as a starting point. One is the master node, one is the worker node, and one is the redis server.
I have installed redis-tools package on both the master and the worker nodes for testing, and can confirm that I can connect to the redis server from both servers.
Redis starts up fine.
The master starts up fine.
The worker fails to start.
I am using this line from your docs to start the worker
docker run --name n8n-queue -p 5679:5678 n8nio/n8n n8n worker
Initially I tried with a Redis password, but disabled it and the result is the same.
What is the error message (if any)?
Here is the complete output
[email protected]:~/n8n-digital-ocean# docker run --name n8n-queue -p 5679:5678 n8nio/n8n n8n worker
Starting n8n worker...
UserSettings were generated and saved to: /home/node/.n8n/config
Migrations in progress, please do NOT stop the process.
query is slow: CREATE TABLE IF NOT EXISTS "credentials_entity" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(128) NOT NULL, "data" text NOT NULL, "type" varchar(128) NOT NULL, "nodesAccess" text NOT NULL, "createdAt" datetime NOT NULL, "updatedAt" datetime NOT NULL)
execution time: 3455
n8n worker is now ready
* Version: 0.194.0
* Concurrency: 10
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Migrations finished.
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Redis unavailable - trying to reconnect...
Unable to connect to Redis after 10000. Exiting process.
Here is a redis test on the same worker node
[email protected]:~/n8n-digital-ocean# redis-cli -h 10.108.0.6
10.108.0.6:6379> KEYS *
(empty array)
10.108.0.6:6379> SET foo bar
OK
10.108.0.6:6379> GET foo
"bar"
Information on your n8n setup
- 0.194.0
- MySQ
- Master node with 4 vCPU 8GB Memory @ Digital Ocean
- Worker node with 4 vCPU 8GB Memory @ Digital Ocean