I’ve been selfhosting N8N with Coolify for the last couple of months. ( it runs in a docker container)
Todays I’ve pulled last image and restarted to update n8n for the last version ( I do this once a week) and the container keeps reeboting with the following output:
User settings loaded from: /home/node/.n8n/config
Last session crashed
Initializing n8n process
n8n ready on 0.0.0.0, port 5678
n8n Task Broker ready on 127.0.0.1, port 5679
TypeError: Missing parameter name at 7: https://git.new/pathToRegexpError
at name (/usr/local/lib/node_modules/n8n/node_modules/path-to-regexp/dist/index.js:73:19)
at lexer (/usr/local/lib/node_modules/n8n/node_modules/path-to-regexp/dist/index.js:87:27)
at lexer.next (<anonymous>)
at Iter.peek (/usr/local/lib/node_modules/n8n/node_modules/path-to-regexp/dist/index.js:106:38)
at Iter.tryConsume (/usr/local/lib/node_modules/n8n/node_modules/path-to-regexp/dist/index.js:112:28)
at Iter.text (/usr/local/lib/node_modules/n8n/node_modules/path-to-regexp/dist/index.js:128:30)
at consume (/usr/local/lib/node_modules/n8n/node_modules/path-to-regexp/dist/index.js:152:29)
at parse (/usr/local/lib/node_modules/n8n/node_modules/path-to-regexp/dist/index.js:183:20)
at /usr/local/lib/node_modules/n8n/node_modules/path-to-regexp/dist/index.js:294:74
at Array.map (<anonymous>)
Exiting due to an error.
Missing parameter name at 7: https://git.new/pathToRegexpError
Registered runner "JS Task Runner" (DsuDpcP8a0xO1ujvY1S7v)
Here’s the configuration:
services:
n8n:
image: docker.n8n.io/n8nio/n8n
environment:
- 'N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}'
- N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- N8N_RUNNERS_ENABLED=true
- N8N_RUNNERS_MODE=internal
- N8N_RUNNERS_MAX_CONCURRENCY=5
- N8N_RUNNERS_TASK_TIMEOUT=60
- N8N_RUNNERS_HEARTBEAT_INTERVAL=30
- 'WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/'
- 'N8N_ENDPOINT_WEBHOOK_TEST=https://${SUBDOMAIN}.${DOMAIN_NAME}/'
- SERVICE_FQDN_N8N_5678
- 'N8N_EDITOR_BASE_URL=${SERVICE_FQDN_N8N}'
- 'N8N_HOST=${SERVICE_URL_N8N}'
- 'GENERIC_TIMEZONE=${GENERIC_TIMEZONE:-Europe/Lisbon}'
- DB_TYPE=postgresdb
- 'DB_POSTGRESDB_DATABASE=${POSTGRES_DB:-n8n}'
- DB_POSTGRESDB_HOST=postgresql
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=$SERVICE_USER_POSTGRES
- DB_POSTGRESDB_SCHEMA=public
- DB_POSTGRESDB_PASSWORD=$SERVICE_PASSWORD_POSTGRES
volumes:
- '/opt/n8n/n8n-data:/home/node/.n8n'
depends_on:
postgresql:
condition: service_healthy
healthcheck:
test:
- CMD-SHELL
- 'wget -qO- http://127.0.0.1:5678/'
interval: 5s
timeout: 20s
retries: 10
postgresql:
image: 'postgres:16-alpine'
volumes:
- '/postgresql-data:/var/lib/postgresql/data'
environment:
- POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- 'POSTGRES_DB=${POSTGRES_DB:-n8n}'
healthcheck:
test:
- CMD-SHELL
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
interval: 5s
timeout: 20s
retries: 10
any help would be appreciated ![]()