Hello,
I’m sorry to bother you as this seems to be a recurring topic but I haven’t managed to get to the bottom of it myself.
After migrating to a new server, my prod webhooks are working but not the test ones.
Do you have any idea what I’m doing wrong?
Thank you for your understanding.
Details
- Webhook returns
{ "message": "Workflow was started" }
-
UI keeps waiting for trigger event
-
I can’t stop it (even though the DELETE request returns with a 200)
-
Logs show
n8n-n8n-1 | The session "9hwjcz2h96d" is not registered.
setup
- upgrade from 0.107 to 1.27.3
- postgres
- run via Docker on Ubuntu 20.04
- behind nginx
env vars
DB_TYPE=postgresdb
DB_POSTGRESDB_HOST=postgres
DB_POSTGRESDB_PORT=5432
DB_POSTGRESDB_DATABASE=xxxx
DB_POSTGRESDB_USER=xxxx
DB_POSTGRESDB_PASSWORD=xxxx
N8N_ENCRYPTION_KEY=xxxx
WEBHOOK_URL=https://n8n.mydomain.com/
N8N_EDITOR_BASE_URL=https://n8n.mydomain.com/
NODE_FUNCTION_ALLOW_EXTERNAL=uuid,date-fns,js-base64
GENERIC_TIMEZONE=UTC
EXECUTIONS_DATA_PRUNE=true
EXECUTIONS_DATA_MAX_AGE=168
nginx cong
server {
server_name n8n.mydomain.com;
listen 443 ssl; # managed by Certbot
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/n8n.mydomain.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/n8n.mydomain.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
client_max_body_size 0;
location / {
proxy_pass http://0.0.0.0:5678;
proxy_set_header Connection '';
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
}
location ~ ^/(webhook|webhook-test) {
proxy_pass http://0.0.0.0:5678;
proxy_set_header Connection '';
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
}
}
server {
if ($host = n8n.mydomain.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name n8n.mydomain.com;
return 404; # managed by Certbot
}