When I open a workflow, it shows offline in the top right. With the message:
No network connection. Workflow changes will be saved once the connection is restored.
If I reload the page, I can publish for a few moments before offline returns. So it is more of an annoyance than anything, preventing me from working. I searched here and found similar issues for GCP users, but I’m just using a traditional VPS. I did try the solution of adding N8N_ENDPOINT_HEALTH=health, but it didn’t fix the issue for me.
Now I do have Plesk running on this server as well so I had to use the nginx additional directives to configure the reverse proxy. You can’t reserve proxy location / because it’s already being done for Apache. So I used the /app/ path.
I know using N8N_PATH isn’t recommended for reverse proxy, and I am not sure if it is related, as I didn’t have this issue with version 1.x.
We are also using Cloudflare if that matters.
What is the error message (if any)?
Offline: No network connection. Workflow changes will be saved once the connection is restored.
This is probably a WebSocket issue with your nginx config. n8n v2+ uses WebSockets for the real-time connection indicator, and running behind a subpath with Plesk can break that. Try adding proxy_http_version 1.1;, proxy_set_header Upgrade $http_upgrade;, and proxy_set_header Connection “upgrade”; to your nginx location block for /app/.
since you already have the WebSocket headers, the subpath might be the culprit. I’d try setting N8N_EDITOR_BASE_URL=https://yourdomain.com/app/ so n8n knows where to open the WebSocket connection relative to your base path. Without that, it probably tries to connect at / which your Plesk config wouldn’t route correctly.
I should have included that part in my reply before, sorry. I already have it that way and if i remove N8N_PATH I get a bunch of too many redirect errors for assets cause they are trying to hit the base URL.
I’d start by checking the reverse proxy setup first. N8N_PROXY_HOPS and WEBHOOK_URL are real n8n settings, and I’d also verify that the X-Forwarded-* headers and websocket support are being passed correctly through Plesk/Cloudflare, since that offline banner usually points to the editor losing its live connection behind the proxy. n8n also warns that using N8N_PATH behind a reverse proxy can cause issues, so if possible, I’d test it on a clean subdomain instead of /app/.