Describe the problem/error/question
Connection lost on self hosted n8n. I keep getting this issue :
url/rest/push?pushRef=txrzy1d5i1 500 (Internal Server Error)
The latest version that works with no disconnections is 1.86.1
What is the error message (if any)?
Connection lost
Share the output returned by the last node
Information on your n8n setup
sudo docker run -d --restart unless-stopped -it \
–name n8n \
-p 5678:5678 \
-e N8N_HOST=“” \
-e WEBHOOK_TUNNEL_URL=“url” \
-e WEBHOOK_URL=“url” \
-e N8N_PUSH_BACKEND=sse \
-e N8N_PROXY_HOPS=1 \
-e N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true \
-v ~/.n8n:/root/.n8n \
n8nio/n8n:1.86.1
Nginx setting
server {
listen 80;
server_name “url”;
location / {
proxy_pass http://localhost:5678;
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_set_header Host $host;
}
}
Hi, since I see you’re using Nginx, could you try to change this SSE value to WebSocket and then change to n8n latest version
-e N8N_PUSH_BACKEND=sse \
In my case I have updated to 1.92.2 and with my docker configuration is faling:
services:
n8n:
image: docker.n8n.io/n8nio/n8n
container_name: n8n
restart: unless-stopped
ports:
“127.0.0.1:5678:5678” # Solo accesible localmente en WSL
environment:
N8N_HOST=MY_DOMAIN
WEBHOOK_URL=MY_DOMAIN
GENERIC_TIMEZONE=Europe/Madrid,
N8N_RUNNERS_ENABLED=true,
N8N_PUSH_BACKEND=sse,
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true,
,
,
,
volumes:
./n8n_data:/home/node/.n8n # Mapea la carpeta local “data” a la ruta del contenedor
./n8n_export:/home/node/workflows_export,
proxy:
image: jc21/nginx-proxy-manager
container_name: proxy
restart: unless-stopped
ports:
“80:80”
“443:443”,
“81:81”,
volumes:
./proxy_data:/data
./proxy_letsencrypt:/etc/letsencrypt,
,
depends_on:
n8n,
,
,
volumes:
proxy_data:
proxy_letsencrypt: