✅ solved: "Connection Lost" in workflow editor

I upgraded to 1.94.0 with Docker and also now face the “Connection Lost” in workflow editors :frowning:

I had that issue in the past and already have the sse parameter in the docker compose. The upgrade to 1.94.0 is the one that broke it for me (I hadn’t upgraded in 2 months).

As suggested in other posts, I tried:

  • editing the value for N8N_PUSH_BACKEND to websocket and back to sse. It didn’t work. I had no change to my apache config in a while, it’s something that changed with N8N.
  • moving from sse to websocket and adding a ProxyPass /ws/ ws://localhost:5678/ws/ line in my apache conf file. It didn’t work, I still have n8n running but “Connection Lost” on all workflow editors.

I am with Apache and many helpful comments are about nginx. Has anyone solved this issue with Apache in the recent weeks?

EDIT: It seems solved it thanks to Jon’s answer on N8N behind Apache Reverse Proxy - #4 by Jon

SOLUTION (that worked for me, on Ubunbu24/Docker/Apache):

  • Replace sse by websocket in the docker-compose variable N8N_PUSH_BACKEND
  • Edit the Apache conf file to add a websocket rewrite rule:
   	RewriteEngine On
   	RewriteCond %{HTTP:Upgrade} =websocket [NC]
   	RewriteRule /(.*) ws://0.0.0.0:5678/$1 [P,L]