hi @Jon its happen to another worker so i log into main n8n docker container and copy the encrypt key from config file to my docker-compose.yml env and solve the error
So i guess its better to define N8N_ENCRYPTION_KEY from beginning coz i follow this config n8n/docker/compose/withPostgresAndWorker/docker-compose.yml at master · n8n-io/n8n · GitHub
Btw there is another suggest env for postgres with worker i missing? heres mines:
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
- N8N_ENCRYPTION_KEY=
- QUEUE_BULL_REDIS_HOST=redis
- QUEUE_HEALTH_CHECK_ACTIVE=true
- N8N_EDITOR_BASE_URL=
- NODE_ENV=production
- N8N_PUSH_BACKEND=sse
- N8N_DISABLE_PRODUCTION_MAIN_PROCESS=true
- WEBHOOK_URL=
- N8N_ENDPOINT_WEBHOOK=rm
- N8N_ENDPOINT_WEBHOOK_TEST=rm-tes
- N8N_GRACEFUL_SHUTDOWN_TIMEOUT=30
- GENERIC_TIMEZONE=Asia/Jakarta
- N8N_PROTOCOL=https
- N8N_HOST=
- N8N_EMAIL_MODE=smtp
- N8N_SMTP_HOST=
- N8N_SMTP_PORT=465
- N8N_SMTP_USER=
- N8N_SMTP_PASS=
- N8N_SMTP_SENDER=
- N8N_SMTP_SSL=true
n8n:
<<: *shared
image: n8nio/n8n
command: /bin/sh -c "n8n start"
# ports:
# - 5678:5678
n8n-worker:
<<: *shared
image: n8nio/n8n
command: /bin/sh -c "sleep 5; n8n worker"
depends_on:
- n8n