"Connection lost" on self-hosted n8n behind Cloudflared

Describe the problem/error/question

I am running a self-hosted n8n instance (using the n8nio/n8n:latest docker image) and using a cloudflare tunnel to pipe a public domain name to my local instance.

Accessing it and logging in works fine, but when I’m in the workflow editor, I get a red “Connection lost” error at the top right.

What is the error message (if any)?

In the inspector console, I’m also getting recurring errors like this:

Any ideas why this is not working? I have Websockets enabled in my Cloudflare Network settings.

Thank you!

Information on your n8n setup

  • n8n version: Version 1.115.2
  • Database (default: SQLite): postgres (docker=
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: ubuntu

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