Hello!
I am relativly new to n8n and I am currently familiarizing myself with it.
My n8n server is an Ubuntu Server 24.04 instance (with NodeJS and NginX) on a Proxmox system. I used npm to install and update n8n.
Information on your n8n setup
- n8n version: 1.82.3
- Database (default: SQLite): PostgreSQL (seperate instance)
- n8n EXECUTIONS_PROCESS setting (default: own, main): own
- Running n8n via (Docker, npm, n8n cloud, desktop app): npm
- Operating system: Ubuntu Server 24.04 LTS
This private instance was published with a DynDNS provider with its own external DNS in a Fritzbox.
n8n runs as a service on the Ubuntu server. Here is die service description ():
[Unit]
Description=n8n - Workflow Automation
After=network.target
[Service]
Type=simple
User=root
Environment=“DB_TYPE=postgresdb”
Environment=“DB_POSTGRESDB_DATABASE=n8n”
Environment=“DB_POSTGRESDB_HOST=postgresql17”
Environment=“DB_POSTGRESDB_PORT=5432”
Environment=“DB_POSTGRESDB_USER=n8n”
Environment=“DB_POSTGRESDB_PASSWORD=password”
Environment=“DB_POSTGRESDB_POOL_SIZE=2”
Environment=“DB_POSTGRESDB_CONNECTION_TIMEOUT=2000”
Environment=“DB_POSTGRESDB_SCHEMA=public”
Environment=“DB_POSTGRESDB_SSL_ENABLED=false”
Environment=“N8N_SECURE_COOKIE=false”
Environment=“N8N_PROTOCOL=http”
Environment=“N8N_PORT=5678”
Environment=“N8N_HOST=name.ddnss.de”
Environment=“N8N_WEBHOOK_URL=http://name.ddnss.de:5678/webhook/”
Environment=“N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false”
Environment=“GENERIC_TIMEZONE=Europe/Berlin”
Environment=“N8N_PUBLIC_API_ENABLED=true”
ExecStart=/usr/local/bin/n8n start
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
local_url=http://127.0.0.1:5678
**What has already been done?
- n8n update to version 1.82.3
- Node.js has also been updated to version 20.19.0.
npm update -g n8n
has been executed.
2 Configuration ofN8N_WEBHOOK_URL
- N8N_WEBHOOK_URL was set.
- Nevertheless, the
urlBaseWebhook
initially remained unchanged.
3 Check the REST API & webhooks curl -X GET “local_url/rest/settings”
still shows the oldurlBaseWebhook
.curl -X PATCH
command to activate/deactivate the workflow fails with "Unauthorized ”.
Public API is enabled (“enabled”: true
).- API calls with
X-N8N-API-KEY
lead to“unauthorized”
or“PATCH method not allowed”
.
4 Tests with the database SELECT * FROM public.workflow_entity;
shows theWebhookMeta
workflow as active.- Webhook URLs are not registered (
404 Not Found
). curl -X GET “local_url/rest/webhooks”
returnsCannot GET /rest/webhooks
.
5 Restarts & updates.- Several restarts of
n8n
andnginx
. sudo systemctl daemon-reload && sudo systemctl restart n8n
after each change.nginx
is configured correctly as a proxy, but502 Bad Gateway
or504 Gateway Timeout
errors occur.
***# Open problems
-
webhook URLs do not update correctly
Although N8N_WEBHOOK_URL has been set, the webhook node in the UI still shows the old URL (name.ddnss.de). -
webhooks are not registered (404 Not Found)
curl -X GET “local_url/webhook/meta-webhook?hub.challenge=123456” still returns 404 Not Found.
curl -X POST “local_url/rest/webhooks/refresh” returns “Cannot POST /rest/webhooks/refresh”.
Webhooks do not appear to be registered correctly despite an active workflow. -
n8n REST-API denies API access with “Unauthorized”
Despite activated Public API (“enabled”: true), a PATCH or GET call of the workflows with Unauthorized fails.
API tokens (X-N8N-API-KEY) are not accepted.
PATCH method not allowed could indicate an incorrect API version or endpoint problems.
Do you have nay idea to solve ther probme(s)?