Connection Lost Issue with fresh install (self hosted)

Describe the problem/error/question

I have a fresh install of n8n running on Proxmox (behind a reverse proxy). Now no matter how I try to access the gui (via local IP - 192.168.0.xx or via URL), I always get a “Connection Lost” and websocket error with Chrome. I have websocket support activated in the proxy, but since it is not working through IP, nor through URL, I assumed that the proxy is not the problem. Even incognito mode with all browser plugins deactivated shows the exact same behavior.

When accessed through Microsoft Edge, it works like a charm!

What is the error message (if any)?

In Chrome console, I see the following errors:

hook.js:608 DOMException: Failed to construct 'WebSocket': The URL '/rest/push?pushRef=5eucwtmkm4' is invalid.
    at Object.connect (https://URL.com/assets/pushConnection.store-yREZVaYW.js:346:18)xx
    at Proxy.pushConnect (https://URL.com/assets/pushConnection.store-yREZVaYW.js:469:16)
    at Proxy.wrappedAction (https://URL.com/assets/_baseOrderBy-BY4x0dN2.js:286:14)
    at https://URL.com/assets/NodeView-DHyq_aV_.js:2036:48
    at https://URL.com/assets/vue.runtime.esm-bundler-XtMkEjzB.js:5558:88
    at callWithErrorHandling (https://URL.com/assets/vue.runtime.esm-bundler-XtMkEjzB.js:1780:17)
    at callWithAsyncErrorHandling (https://URL.com/assets/vue.runtime.esm-bundler-XtMkEjzB.js:1787:15)
    at hook.__weh.hook.__weh (https://URL.com/assets/vue.runtime.esm-bundler-XtMkEjzB.js:2858:16)
    at invokeArrayFns (https://URL.com/assets/vue.runtime.esm-bundler-XtMkEjzB.js:330:46)
    at ReactiveEffect.componentUpdateFn [as fn] (https://URL.com/assets/vue.runtime.esm-bundler-XtMkEjzB.js:3921:13)

Please share your workflow

Blank workflow

Share the output returned by the last node

Not executed

Information on your n8n setup

  • n8n version: 2.4.6
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Proxmox LXC
  • Operating system: Client (Win 11)

Hi @stefanoneri ,

Welcome to the n8n community,

Can you try adding this to your n8n environment variables:

N8N_PUSH_BACKEND=websocket
VUE_APP_URL_BASE_API=https://your-domain.com/

Then restart n8n and clear chrome cache.

Let me know if this works!