# Connection lost issue

**URL:** <https://community.n8n.io/t/connection-lost-issue/126415>\
**Category:** Questions\
**Tags:** core\
**Created:** [June 3, 2025, 10:14pm UTC](https://community.n8n.io/t/connection-lost-issue/126415 "2025-06-03T22:14:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben\_ismail\_Wassim](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ben_ismail_wassim/32/38832_2.png) [@ben\_ismail\_Wassim](https://community.n8n.io/u/ben_ismail_Wassim)\
**Post date:** [June 3, 2025, 10:14pm UTC](https://community.n8n.io/t/connection-lost-issue/126415/1 "2025-06-03T22:14:28Z")

</div>

## 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](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;

}

}

---

<div class="post-metadata">

**Author:** ![tridi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tridi/32/109193_2.png) [@tridi](https://community.n8n.io/u/tridi)\
**Post date:** [June 4, 2025, 12:32am UTC](https://community.n8n.io/t/connection-lost-issue/126415/2 "2025-06-04T00:32:03Z")

</div>

> [@ben\_ismail\_Wassim](#):
>
> -e N8N\_PUSH\_BACKEND=sse \

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

```json
-e N8N_PUSH_BACKEND=sse \

```

---

<div class="post-metadata">

**Author:** ![Claudi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/claudi/32/61156_2.png) [@Claudi](https://community.n8n.io/u/Claudi)\
**Post date:** [June 4, 2025, 8:24am UTC](https://community.n8n.io/t/connection-lost-issue/126415/3 "2025-06-04T08:24:06Z")

</div>

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](http://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,  
,  
,  
,

```auto
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:

---

<div class="post-metadata">

**Author:** ![Claudi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/claudi/32/61156_2.png) [@Claudi](https://community.n8n.io/u/Claudi)\
**Post date:** [June 4, 2025, 8:24am UTC](https://community.n8n.io/t/connection-lost-issue/126415/4 "2025-06-04T08:24:38Z")

</div>

![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/f/0f70945f01eaebb2ae8e85c607b67353b69e708d.png)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [September 2, 2025, 8:25am UTC](https://community.n8n.io/t/connection-lost-issue/126415/5 "2025-09-02T08:25:03Z")

</div>

Closed on September 2, 2025, 8:25am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
