I have a self-hosted n8n and when I open the n8n, I get a “connection lost” error. I tried to solve it with multiple solutions but it is not getting resolved. I also added N8N_PUSH_BACKEND=ssel, asked chat gpt and tried many other options but it is not getting resolved.
Troubleshooting Steps Taken for Connection Lost Error in n8n (Self-Hosted) Environment:
VPS: Hostinger (Ubuntu 24.04 KVM)
SSL: Handled via Nginx (Let’s Encrypt / manually configured)
Installed and configured Docker & Nginx on a clean VPS.
Pulled latest n8nio/n8n image using:
Created and ran Docker container with necessary environment variables:
Configured Nginx reverse proxy (ports 80/443) with WebSocket support:
Updated and restarted Docker container multiple times after modifying environment variables.
Tested both sse and websocket push backends:
Error remained in both cases.
Checked logs using docker logs -f n8n, which showed repeated error but that also solved
Browser troubleshooting done:
Attempted to fix ‘origin’ issue by setting all URL-related env vars, including:
N8N_EDITOR_BASE_URL
VUE_APP_URL_BASE_API
WEBHOOK_TUNNEL_URL
Observed deprecation warning in logs:
No, I have successfully added the SSLC certificate, i tried every where to solve this “connection lost” error, i am requesting you guys please connect me and help me to solve this problem. requesting you guys please please help.