"Connection lost" error on Hostinger VPS (KVM2) with Docker + OpenLiteSpeed

Hi everyone,

I’m running into an issue with n8n and could use some help.

I’ve installed n8n using Docker on my Hostinger VPS (KVM2), and the container runs fine. My server stack is using OpenLiteSpeed (OLS) as the web server.

My server also has CyberPanel installed to manage websites.

The problem is:
I keep getting the “connection lost” error in the n8n UI.
From what I understand, this usually happens when n8n can’t access its own webhook or real-time communication (websockets) fails.

Here’s what I’ve tried so far:

  • Set up the WebSocket proxy in OLS
  • Modified rewrite rules
  • Edited vHost configuration for the domain
  • Ensured proper ports are open
  • n8n is running behind a domain (with SSL via OLS)

Despite this, the UI still drops connection with the “connection lost” error, especially when I try to test workflows or access webhook URLs.

Has anyone run n8n behind OpenLiteSpeed successfully? Any guidance on the correct vHost or rewrite configuration needed to get WebSockets working with Dockerized n8n?

Thanks in advance!

  • **n8n version:1.95.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker):
  • **Operating system:AlmaLinux 9

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