Health-check-server-port is required with multiple runners. !?

Thats my n8n-task-runners.json: {
“task-runners”: [
{
“runner-type”: “javascript”,
“env-overrides”: {
“NODE_FUNCTION_ALLOW_BUILTIN”: “",
“NODE_FUNCTION_ALLOW_EXTERNAL”: “lodash,axios”
}
},
{
“runner-type”: “python”,
“env-overrides”: {
“PYTHONPATH”: “/opt/runners/task-runner-python”,
“N8N_RUNNERS_STDLIB_ALLOW”: "”,
“N8N_RUNNERS_EXTERNAL_ALLOW”: “curl_cffi”
}
}
]
}

Describe the problem/error/question

No Python or Javascript Code Node works anymore! The documentation must be wrong: Task runner environment variables | n8n Docs

The ‘Multiple Runners’ Port Trap: As soon as I define both a javascript and a python runner in n8n-task-runners.json, the launcher becomes very strict. It throws an error: health-check-server-port is required with multiple runners.

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: latest
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): external
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: linux
1 Like

Hi @huhuhaha.

Consider reading this old reply of mine on your previous post:

Yeah the docs don’t mention this clearly but when you have multiple runners in that json file you need to give each one its own health-check-server-port. Your config is also missing a bunch of other fields that the default one has like workdir, command, args etc — I’d recommend looking at the default config file that ships with the docker image here: n8n/docker/images/runners/n8n-task-runners.json at master · n8n-io/n8n · GitHub and using that as your base, just adding your env-overrides on top of it. The javascript runner uses port 5681 and python uses 5682 by default.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.