My issue sounds similar to Bad n8n credentials decrypt when running cron but I can’t access ANY credentials over the web UI after the upgrade from pre 1.x version.
As soon as I click edit on any credentials I get this error except if I create new credentials.
I didn’t see anything in the migration guide related to encryption/credentials.
I do have a custom Dockerfile
not sure if this is related somehow.
FROM n8nio/n8n:latest
USER root
RUN apk --update add curl
I do this because I have some legacy workflows that need curl with binary data upload and I couldn’t use the existing http request nodes.
My docker-compose looks like this
n8n:
image: n8n-curl
restart: always
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
- NODE_FUNCTION_ALLOW_EXTERNAL=uuid
- NODE_ENV=production
- N8N_HOST=n8n.example.com
- N8N_PORT=5678
- WEBHOOK_URL=https://n8n.example.com/
- EXECUTIONS_DATA_PRUNE=true
- EXECUTIONS_DATA_MAX_AGE=1440
- GENERIC_TIMEZONE=Europe/Vienna
ports:
- 15043:5678
links:
- postgres
volumes:
- /opt/docker/n8n/n8n:/home/node/.n8n
- /opt/docker/n8n/data:/home/node/data
I could fix this issue by defining the N8N_ENCRYPTION_KEY
ENV variable to the same content as was in the .n8n/config file.
my config file looks like this
{
"encryptionKey": "asdf'
}
did something change here?