# WebSocket connection failed

**URL:** <https://community.n8n.io/t/websocket-connection-failed/42617>\
**Category:** Questions\
**Created:** [March 14, 2024, 6:34pm UTC](https://community.n8n.io/t/websocket-connection-failed/42617 "2024-03-14T18:34:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angel\_Todorov](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/angel_todorov/32/36912_2.png) [@Angel\_Todorov](https://community.n8n.io/u/Angel_Todorov)\
**Post date:** [March 14, 2024, 6:34pm UTC](https://community.n8n.io/t/websocket-connection-failed/42617/1 "2024-03-14T18:34:02Z")

</div>

## Describe the problem/error/question

I have installed n8n community edition on DO droplet using docker/compose/withPosgres/docker-compose.yml configuration.

## What is the error message (if any)?

Almost everything works just fine but on Edit Workflow, for webhook, when start “Listen for test event”, it didn’t stop listening, when the request is received. Even when I click on “Stop Listening”, it didn’t stop.  
This is the error, I can see in console

 ![n8n-ws](https://europe1.discourse-cdn.com/n8n/original/3X/7/5/75893c682f3ddd482e0b69b4963cbcf8053ce8f3.png)

Also in log files, I can see `The session "kk6qmtql1z" is not registered.`

## Please share your workflow

1. Add workflow
2. Add webhook
3. Click “Listen for test event”

```auto
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

```

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version:** 1.31.2
- **Database (default: SQLite):** Postgres
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** Docker
- **Operating system:** Ubuntu 22.04.3 LTS

---

<div class="post-metadata">

**Author:** ![netroy](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/netroy/32/22154_2.png) [@netroy](https://community.n8n.io/u/netroy)\
**Post date:** [March 14, 2024, 7:49pm UTC](https://community.n8n.io/t/websocket-connection-failed/42617/2 "2024-03-14T19:49:18Z")

</div>

Are you running n8n behind a reverse-proxy? like nginx, traefik, or caddy?

---

<div class="post-metadata">

**Author:** ![Angel\_Todorov](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/angel_todorov/32/36912_2.png) [@Angel\_Todorov](https://community.n8n.io/u/Angel_Todorov)\
**Post date:** [March 14, 2024, 8:08pm UTC](https://community.n8n.io/t/websocket-connection-failed/42617/3 "2024-03-14T20:08:02Z")

</div>

Yes, I do. We have nginx.

---

<div class="post-metadata">

**Author:** ![netroy](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/netroy/32/22154_2.png) [@netroy](https://community.n8n.io/u/netroy)\
**Post date:** [March 14, 2024, 9:35pm UTC](https://community.n8n.io/t/websocket-connection-failed/42617/4 "2024-03-14T21:35:57Z")

</div>

what version of nginx are you running? it sounds like you might need to either update the config tp handle websockets better, or might need to upgrade nginx.

---

<div class="post-metadata">

**Author:** ![Angel\_Todorov](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/angel_todorov/32/36912_2.png) [@Angel\_Todorov](https://community.n8n.io/u/Angel_Todorov)\
**Post date:** [March 15, 2024, 4:08am UTC](https://community.n8n.io/t/websocket-connection-failed/42617/5 "2024-03-15T04:08:09Z")

</div>

Here is the nginx version **nginx/1.18.0 (Ubuntu)**  
One more specifics - I installed n8n on subdomain e.g. `workflow.example.com` if that would make any difference.  
Could you please elaborate what should be nginx config adjustments I need to make for the subdomain to make it work?  
Thanks!

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [March 15, 2024, 8:09am UTC](https://community.n8n.io/t/websocket-connection-failed/42617/6 "2024-03-15T08:09:24Z")

</div>

Sorry, but we can not provide support with any kind of server setup. That would simply eat up a lot of support time. For that reason, do we have multiple ones documented in our docs. Here is for example one for Digital Ocean:

> **[Digital Ocean | n8n Docs](https://docs.n8n.io/hosting/installation/server-setups/digital-ocean/)**
>
> Documentation for n8n, a workflow automation platform.

Please follow it, and you should end up with a perfectly running n8n instance. If you run into problems with it, we are happy to help you debugging that one. Thanks!

---

<div class="post-metadata">

**Author:** ![Angel\_Todorov](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/angel_todorov/32/36912_2.png) [@Angel\_Todorov](https://community.n8n.io/u/Angel_Todorov)\
**Post date:** [March 15, 2024, 9:01am UTC](https://community.n8n.io/t/websocket-connection-failed/42617/7 "2024-03-15T09:01:43Z")

</div>

Thanks guys! In fact this solution here - [WebSockets in 1.0](http://community.n8n.io/t/websockets-in-1-0/29272) fixed it.

---

<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:** [March 22, 2024, 9:02am UTC](https://community.n8n.io/t/websocket-connection-failed/42617/8 "2024-03-22T09:02:09Z")

</div>

Closed on March 22, 2024, 9:02am UTC

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