I did not find an oficial compose.yaml to run n8n 2.0.0 plus TaskRunners plus Postgres plus Redis plus Caddy. With the help of AI tried several fixes for the problem. My Code Node in Pythoncontains only a return for JASON, it is the second node of 2. When it starts, keeps running but do not finish. It seams n8n and the TaskRunners do not communicate.
Describe the problem/error/question
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:
Please share your current docker compose with us to receive help.
This documentation was written before v2 released, but it is about the external mode, which became mandatory for V2:
Thank you very much !
I used the exact compose.yaml file from documentation you referenced.
Executed: same problem as always:
- Code in Python (Beta) - ok
- Code in Python (Native)(Beta) - code block does not end
Changed n8n to image “n8nio/n8n:2.0.0”
Same problem:
- Code in Python (Native)(Beta) - code block does not end
This is the log:
8n-main | Task request timed out after 60 seconds
n8n-main | Task request timed out
n8n-main | Error: Task request timed out
n8n-main | at ErrorReporter.wrap (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/errors/error-reporter.ts:242:37)
n8n-main | at ErrorReporter.error (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/errors/error-reporter.ts:228:25)
n8n-main | at LocalTaskRequester.requestExpired (/usr/local/lib/node_modules/n8n/src/task-runners/task-managers/task-requester.ts:309:22)
n8n-main | at LocalTaskRequester.onMessage (/usr/local/lib/node_modules/n8n/src/task-runners/task-managers/task-requester.ts:272:10)
n8n-main | at TaskBroker.handleRequestTimeout (/usr/local/lib/node_modules/n8n/src/task-runners/task-broker/task-broker.service.ts:115:50)
n8n-main | at Timeout. (/usr/local/lib/node_modules/n8n/src/task-runners/task-broker/task-broker.service.ts:102:9)
n8n-main | at listOnTimeout (node:internal/timers:588:17)
n8n-main | at processTimers (node:internal/timers:523:7)
n8n-main |
n8n-main | Task request timed out after 60 seconds
This is the compose file:
services:
n8n:
#image: n8nio/n8n:1.111.0
image: n8nio/n8n:2.0.0
container_name: n8n-main
environment:
- N8N_RUNNERS_ENABLED=true
- N8N_RUNNERS_MODE=external
- N8N_RUNNERS_BROKER_LISTEN_ADDRESS=0.0.0.0
- N8N_RUNNERS_AUTH_TOKEN="abcde"
- N8N_NATIVE_PYTHON_RUNNER=true
ports:
- "5678:5678"
volumes:
- n8n_data:/home/node/.n8n
# etc.
task-runners:
image: n8nio/runners:1.111.0
container_name: n8n-runners
environment:
etc.
depends_on:
volumes:
n8n_data: