Error Request to list credentials failed

Hello

I was trying to setup n8n with version 0.178.2 in a docker container, the server start but once I try to access it in my browser I got the following toast
image

The only log I got from my docker container is :

Request to list credentials failed

This error occur on a brand new n8n, there is no workflow, no credentials, nothing.
The user management is enabled but I skipped it

n8n setup

  • n8n version: 0.178.2
  • Database: default: SQLite
  • Running n8n with the execution process [own(default), main]: default
  • Running n8n via: Docker

Hey @thibaut.depond, welcome to the community and I am very sorry to hear you’re having trouble.

I could, however, not reproduce this with a freshly created instance of n8n 0.178.2. Starting the container using docker run -it --rm -p 5678:5678 n8nio/n8n:0.178.2 (without any existing volume) worked fine and produced the below output:

Opening localhost:5678 presents me with the user management set up button:

Skipping the set up takes me to the empty canvas:

Could there be a chance your docker container is using an existing volume with old or possibly corrupt data? How exactly are you launching n8n?

n8n is deployed using docker-compose
I indeed use a volume for DB persistence but I made sure to destroy it before starting n8n as new

here the declaration of n8n in my docker-compose.yaml

n8n:
  image: n8nio/n8n:0.178.2
  ports:
  - "127.0.0.1:5678:5678"
  environment:
  - GENERIC_TIMEZONE
  - N8N_AUTH_EXCLUDE_ENDPOINTS=css:font:fonts:fonts.css:js:rest
  - N8N_HOST=${DOMAIN_NAME}
  - N8N_PORT=5678
  - N8N_PROTOCOL=https
  - NODE_ENV=production
  - N8N_PATH
  - WEBHOOK_URL=https://${DOMAIN_NAME}${N8N_PATH}
  - WEBHOOK_TUNNEL_URL=https://${DOMAIN_NAME}/
  volumes:
  - /var/run/docker.sock:/var/run/docker.sock
  - ${DATA_FOLDER}/.n8n:/root/.n8n

If it help I can also provide the database file

What happens if you remove the N8N_AUTH_EXCLUDE_ENDPOINTS line?

Hi,

I am still a quite new to n8n and Docker, but just trying my best to help:

- N8N_PATH variable is empty, that could be a problem, no? If you use the default / path, it’s not needed anyway I think.

I have the same behaviour after removing
N8N_AUTH_EXCLUDE_ENDPOINTS and N8N_PATH

Sorry for the very late reply.

I’m now using version 0.210.2 and removing N8N_AUTH_EXCLUDE_ENDPOINTS now fix my issue.

2 Likes

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