Connection Lost on fresh install in Hostinger

Hello everyone, I’m knew to n8n as of today and I was following the instructions online from an expert on how to setup and install n8n on Hostinger. I followed every single step until I got to where you click to upload a template and I found the message Connection Lost and it blinks like if is trying to connect. I went thru every forum I could possible find including ChatGPT and I got to the point I was able to edit the docker-compose.yml file thru the browser terminal from Hostinger. After all the information I could find online still says Connection Lost. Any help would be appreciate it.

These are the values I changed based on what I found online:

ports:
- “5678:5678”

environment:
- N8N_HOST=0.0.0.0
- N8N_PORT=5678
- N8N_PROTOCOL=https
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_RUNNERS_ENABLED=true
- N8N_SECURE_COOKIE=false
- N8N_BASIC_AUTH_USER=myusername
- N8N_BASIC_AUTH_PASSWORD=mypassword
- NODE_ENV=production
- WEBHOOK_UL=https://n8n.srv851576.hstgr.cloud/
- GENERIC_TIMEZONE=America/Chicago

These were the original values:

ports:
- “127.0.0.1:5678:5678”

environment:
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}

1 Like

I’m having the same issue.

Apanhei pra caramba e não estou conseguindo, se alguém conseguir ajudar.

1 Like

Same issue here! Just updated to 1.95.2 and can’t fix it yet.

i can still visualize my workflows and files though.

Upgrading to 1.97 will resolve this we released a fix in that version for this issue.

there is no new version when trying to update the docker with “docker compose pull”

To fix this, you need to pull the 1.97.0 version yourself with this command docker pull docker.n8n.io/n8nio/n8n:1.97.0
After you pull it, you need to modify you’re docker-compose.yml in the n8n part
From this:
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always

To this:
n8n:
image: docker.n8n.io/n8nio/n8n:1.97.0
restart: always

After you modify it, save the file and use the command:
docker compose up -d
It should work just fine

4 Likes

thanks ! it worked!

Omg thank you this worked for me!!! :pray:

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