I am using n8n version 1.72.1.
I am using the default database.
I am not using the EXECUTIONS_PROCESS parameter of n8n in any way.
I am running n8n via Docker.
My operating system is Ubuntu 24.04.
I am having the exact same issue using Version: 1.84.3 running it via Docker. This is my docker-cmopose.yml:
services:
n8n:
image: n8nio/n8n:latest
container_name: n8n
restart: unless-stopped
ports:
- "127.0.0.1:5678:5678"
environment:
# Tells n8n to listen on port 5678
- N8N_PORT=5678
# Tells n8n that it is served under the /n8n path in the browser
- N8N_PATH=/n8n
- N8N_HOST=www.mysite.com
- N8N_DIAGNOSTICS_ENABLES=false
- N8N_EDITOR_BASE_URL=https://www.mysite.com/n8n
# Webhook endpoints will be under /n8n/webhook
- N8N_ENDPOINT_WEBHOOK=/n8n/webhook
- N8N_ENDPOINT_WEBHOOK_TEST=/n8n/webhook-test
# (Optional but recommended) Set your domain name so n8n
# knows how to generate webhook URLs.
- WEBHOOK_TUNNEL_URL=https://www.mysite.com/n8n/
- N8N_ENDPOINT_REST=/n8n/rest
# Authentication for n8n
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=user
- N8N_BASIC_AUTH_PASSWORD=password
# A volume to persist n8n data (e.g. workflows, credentials)
volumes:
- ./n8n_data:/home/node/.n8n
I am not sure if there is something wrong, after a lot of time trying to debug this ChatGPT proposed this bonkers conf file:
######################################
# BLOQUE 1: Servidor en puerto 80
######################################
# - Redirige todo a HTTPS
# - Permite que Certbot use /.well-known/acme-challenge/ para renovar certificados
server {
listen 80;
server_name mysite.com;
# (1) Certbot validation
location /.well-known/acme-challenge/ {
root /var/www/html;
}
# (2) Redirigir todo tráfico http a https
return 301 https://$host$request_uri;
}
######################################
# BLOQUE 2: Servidor en puerto 443 (SSL)
######################################
server {
listen 443 ssl http2;
server_name mysite.com;
# Certificados gestionados por Certbot
ssl_certificate /etc/letsencrypt/live/mysite.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mysite.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
# ==================================================
# (A) Ruta principal /n8n/ → pasa tal cual al contenedor
# ==================================================
location /n8n/ {
proxy_pass http://127.0.0.1:5678/; # Observa la barra final
proxy_http_version 1.1;
# WebSockets y cabeceras
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# ==================================================
# (B) /n8nassets/ → reescribe internamente a /n8n/n8nassets/
# ==================================================
location /n8nassets/ {
rewrite ^/n8nassets/(.*) /n8n/n8nassets/$1 break;
proxy_pass http://127.0.0.1:5678/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# ==================================================
# (C) /rest/ → reescribe a /n8n/rest/
# si tu n8n llama a su API en /rest en vez de /n8n/rest
# ==================================================
location /rest/ {
rewrite ^/rest/(.*) /n8n/rest/$1 break;
proxy_pass http://127.0.0.1:5678/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# ==================================================
# (D) favicon: si n8n pide /n8nfavicon.ico
# ==================================================
location /n8nfavicon.ico {
rewrite ^/n8nfavicon.ico /n8n/n8nfavicon.ico break;
proxy_pass http://127.0.0.1:5678/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# ==================================================
# (E) Webhooks:
# Si n8n define /webhook/ en raĂz en lugar de /n8n/webhook/
# ==================================================
location /webhook/ {
rewrite ^/webhook/(.*) /n8n/webhook/$1 break;
proxy_pass http://127.0.0.1:5678/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# idem si tuvieras /webhook-test/:
location /webhook-test/ {
rewrite ^/webhook-test/(.*) /n8n/webhook-test/$1 break;
proxy_pass http://127.0.0.1:5678/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# ==================================================
# (F) Cualquier otra ruta → 404
# ==================================================
location / {
return 404;
}
}
Can you please check the actual documentation and examples that exist on the docs pages, the forum and github?
ChatGPT is giving you weird stuff and also old stuff.
for example this basic authentication hasn’t been used for a long time.