Connection lost 04-12-25

Describe the problem/error/question

hello,

I am using n8n for 5 days and every day I got “connection lost”. Sometimes I am getting “ERR_SSL_PROTOCOL_ERROR” while trying to open url sometimes I am getting “connection lost” error on workflow screen. I tried some changes with Gemini like adding this lines but it didnt work.

image

What is the error message (if any)?

Please share your workflow

(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.122.4
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system:

SSL protocol errors with connection drops usually mean your reverse proxy or HTTPS setup is misconfigured. Check your Docker setup—make sure SSL certificates are valid and not expired, and that your proxy (Nginx, Caddy, Traefik) is correctly forwarding requests.

Also verify your WEBHOOK_URL and N8N_HOST environment variables match your actual domain with correct protocol. Connection lost errors can also be websocket issues—ensure your proxy passes websocket connections properly with upgrade headers.

Check Docker logs for n8n container and proxy for specific errors during disconnects.

Hi,

A couple of questions were resolved by referencing this previous case (almost like 3 issues in 1 case) Installing n8n selfhositing - #24 by KhemOptimal

Scroll down to find “connection lost” issue that was raised. It may or may not resolve your issue. Let me know if it does not.

Khem

Hi,

Thanks for respondings but it didn’t works. Actually I’m very beginner at server things like docker. I tried your solution with Gemini but its same. It asked me to add this lines:

  • “traefik.http.middlewares.n8n-headers.headers.customRequestHeaders.X-Forwarded-Proto=https”
    • “traefik.http.middlewares.n8n-headers.headers.customRequestHeaders.Connection=upgrade”
    • “traefik.http.middlewares.n8n-headers.headers.customRequestHeaders.Upgrade=websocket”

sorry for late respond