It says connection lost in n8n

Describe the problem/error/question

The site works, but when no actual nodes work because says not connected

What is the error message (if any)?

{6C0097AB-0B1B-4FAE-B89D-C6DE959DE7B4}

Share the output returned by the last node

Information on your n8n setup

  • n8n version: (where do I see that)

  • Database (default: SQLite): Postgres

  • n8n EXECUTIONS_PROCESS setting (default: own, main):

  • Running n8n via (Docker, npm, n8n cloud, desktop app): I’m running it on docker compose so here is the compose file.

  • version: ‘3.8’
    
    services:n8n:image: n8nio/n8n:latestcontainer_name: n8nrestart: unless-stoppedports:- “127.0.0.1:5678:5678”environment:- N8N_BASIC_AUTH_ACTIVE=true- N8N_BASIC_AUTH_USER=admin- N8N_BASIC_AUTH_PASSWORD=your_secure_password_here- N8N_HOST=${N8N_HOST}- N8N_PORT=5678- N8N_PROTOCOL=https- NODE_ENV=production- WEBHOOK_URL=https://${N8N_HOST}/- GENERIC_TIMEZONE=${TIMEZONE}volumes:- n8n_data:/home/node/.n8n- ./local-files:/filesnetworks:- n8n-network
    
    Optional: PostgreSQL for production (recommended over SQLite)
    
    postgres:image: postgres:15-alpinecontainer_name: n8n-postgresrestart: unless-stoppedenvironment:- POSTGRES_USER=n8n- POSTGRES_PASSWORD=n8n_db_password- POSTGRES_DB=n8nvolumes:- postgres_data:/var/lib/postgresql/datanetworks:- n8n-networkhealthcheck:test: [‘CMD-SHELL’, ‘pg_isready -U n8n’]interval: 5stimeout: 5sretries: 10
    
    volumes:n8n_data:postgres_data:
    
    networks:n8n-network:driver: bridge
    
  • Operating system: Ubuntu 24.04

hello @Eldersson

I can’t check the docker compose config, as it was passed here in one line.

As I can see, you have some issues wuth the config.

the ports binding is incorrect (localhost should be specified only if you are on the same host).

N8N_BASIC_AUTH variables may be removed, n8n doesn’t support them since v.1

N8N_PROTOCOL is https, but you didn’t provide any SSL certificates.