Got blank page when access to dashboard

Describe the problem/error/question

I was using my n8n instance without any issues, but suddenly I started getting a blank page when accessing it.

Initially, I could still access it using another browser session, but now I can’t access it from any computer I’ve tried.

What is the error message (if any)?

These are the logs in the console:

GET https://myurl.com/assets/index-y1Vej3n_.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:26
GET https://myurl.com/assets/n8n-BfGQf6T1.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:29
GET https://myurl.com/assets/@n8n/codemirror-lang-sql-RHDdtJDb.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:31
GET https://myurl.com/assets/@jsplumb/util-DR0SB56A.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:32
GET https://myurl.com/assets/@jsplumb/common-Q5_tv_GT.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:33
GET https://myurl.com/assets/@jsplumb/core-MKwKlGip.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:34
GET https://myurl.com/assets/@jsplumb/connector-bezier-3dWY17R5.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:35
GET https://myurl.com/assets/@jsplumb/browser-ui-AlqFM-P6.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:36
GET https://myurl.com/assets/codemirror-lang-html-n8n-tjTi9kb2.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:37
GET https://myurl.com/assets/codemirror-lang-n8n-expression-twPNOk5k.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:38
GET https://myurl.com/assets/fast-json-stable-stringify-X56OaUuP.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:39
GET https://myurl.com/assets/timeago.js--Bumj2r9.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:40
GET https://myurl.com/assets/qrcode.vue-t9lCVWTj.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:41
GET https://myurl.com/assets/vue3-touch-events-_RfbPMOD.js net::ERR_CONNECTION_CLOSED 200 (OK)
workflows:42
GET https://myurl.com/assets/chart.js-JtqvIvkt.js net::ERR_CONNECTION_CLOSED 200 (OK)

Information on your n8n setup

  • **n8n version:1.36.4
  • **Database (default: SQLite):PostgreSQL
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • **Operating system:Ubuntu

Hello @lqdominguez

Can you provide the docker configuration?

Hi @barn4k, this is my config

version: "3"

services:
  traefik:
    image: "traefik"
    restart: always
    command:
      - "--api=true"
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.web.address=:80"
      - "--entrypoints.web.http.redirections.entryPoint.to=websecure"
      - "--entrypoints.web.http.redirections.entrypoint.scheme=https"
      - "--entrypoints.websecure.address=:443"
      - "--certificatesresolvers.mytlschallenge.acme.tlschallenge=true"
      - "--certificatesresolvers.mytlschallenge.acme.email=${SSL_EMAIL}"
      - "--certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json"
    ports:
      - "80:80"
      - "443:443"
    volumes:
      # - ${DATA_FOLDER}/letsencrypt:/letsencrypt
      - traefik_data:/letsencrypt
      - /var/run/docker.sock:/var/run/docker.sock:ro

  n8n:
    image: n8nio/n8n
    # build: ./customn8n
    restart: always
    ports:
      - "127.0.0.1:5678:5678"
    labels:
      - traefik.enable=true
      - traefik.http.routers.n8n.rule=Host(`${SUBDOMAIN}.${DOMAIN_NAME}`)
      - traefik.http.routers.n8n.tls=true
      - traefik.http.routers.n8n.entrypoints=web,websecure
      - traefik.http.routers.n8n.tls.certresolver=mytlschallenge
      - traefik.http.middlewares.n8n.headers.SSLRedirect=true
      - traefik.http.middlewares.n8n.headers.STSSeconds=315360000
      - traefik.http.middlewares.n8n.headers.browserXSSFilter=true
      - traefik.http.middlewares.n8n.headers.contentTypeNosniff=true
      - traefik.http.middlewares.n8n.headers.forceSTSHeader=true
      - traefik.http.middlewares.n8n.headers.SSLHost=${DOMAIN_NAME}
      - traefik.http.middlewares.n8n.headers.STSIncludeSubdomains=true
      - traefik.http.middlewares.n8n.headers.STSPreload=true
    environment:
      - N8N_BASIC_AUTH_ACTIVE=true
      # - N8N_BASIC_AUTH_USER
      # - N8N_BASIC_AUTH_PASSWORD
      - N8N_USER_MANAGEMENT_DISABLED=true
      - N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
      - N8N_PORT=5678
      - N8N_PROTOCOL=https
      - NODE_ENV=production
      - NODE_OPTIONS="--max-old-space-size=262144" # set node memory limit
      - WEBHOOK_TUNNEL_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
      - GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
      - EXECUTIONS_DATA_PRUNE=true
      - EXECUTIONS_DATA_MAX_AGE=168
      - EXECUTIONS_DATA_PRUNE_MAX_COUNT=10000
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=${POSTGRES_HOST}
      - DB_POSTGRESDB_PORT=${POSTGRES_PORT}
      - DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
      - DB_POSTGRESDB_USER=${POSTGRES_USER}
      - DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
      - DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false
    volumes:
      # - ${DATA_FOLDER}/.n8n:/home/node/.n8n
      - n8n_data:/home/node/.n8n
      - /local-files:/files

  express:
    build: ./expressjs
    restart: "always"
    ports:
      - "3000:3000"

volumes:
  traefik_data:
    external: true
  n8n_data:
    external: true

You have set the n8n to use HTTPS, but you didn’t specify a certificate to use with it. So in your case better to use HTTP for n8n and HTTPS for traffic.

@barn4k I have another instance with the same config and everything is working ok.

I need to use HTTPS. How can I modify my docker config to set up HTTPS properly?

You already have an HTTPS with traefic, but if you want to set up HTTPS between traefic and n8n, then you need to add ENVs: N8N_SSL_KEY and N8N_SSL_CERT to point to the local n8n’s key and certificate accordingly

Ok, thanks, I will set up tha variables.

The problem was solved. I made the following modifications to my docker compose file.

Added the following line to the labels section

 - traefik.http.routers.n8n.middlewares=n8n@docker

Removed the following from the enviroment section

- N8N_USER_MANAGEMENT_DISABLED=true

And also I replaced

- WEBHOOK_TUNNEL_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/

with this

- WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
1 Like

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