The N8N_DEFAULT_LOCALE variable generated this error: TypeError: Cannot read properties of null. in a Docker Desktop project. I managed to resolve it by deleting everything and creating a new stack in Docker Desktop.
But on my production VPS, I’m having the same problem and can’t delete everything because I’ll lose all the credentials saved and authenticated on it. While it’s possible to back up the credentials, I’m worried about losing the authentication I already have saved.
I urgently need a solution to this problem without having to delete everything. Is there any other variable that needs to be removed?
n8n${1:+_$1}_editor:
build:
context: /root
dockerfile: Dockerfile
image: n8n-nervsflow:$N8N_VERSION ## Imagem customizada com nodes NervsFlow
command: start
volumes:
- /home/NERVSFLOW:/home/NERVSFLOW
- n8n_data:/home/node/.n8n
networks:
- "$nome_rede_interna" ## Nome da rede interna
environment:
## 🗄️ Banco de Dados (PostgreSQL)
- N8N_FIX_MIGRATIONS=true
- DB_TYPE=postgresdb
- DB_POSTGRESDB_DATABASE=n8n_queue${1:+_$1}
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=postgres
- DB_POSTGRESDB_PASSWORD=$senha_postgres
## 🔐 Criptografia
- N8N_ENCRYPTION_KEY=$encryption_key
## 🌐 URLs e Configurações de Acesso
- N8N_HOST=$url_editorn8n
- N8N_EDITOR_BASE_URL=https://$url_editorn8n/
- WEBHOOK_URL=https://$url_webhookn8n/
- N8N_PROTOCOL=https
## ⚙️ Ambiente de Execução
- NODE_ENV=production
- EXECUTIONS_MODE=queue
- EXECUTIONS_TIMEOUT=3600
- EXECUTIONS_TIMEOUT_MAX=7200
- OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true
- N8N_RUNNERS_ENABLED=true
- N8N_RUNNERS_MODE=internal
## OTIMIZAÇÃO: Configurações para melhorar inicialização
- N8N_GRACEFUL_SHUTDOWN_TIMEOUT=30
- DB_POSTGRESDB_POOL_SIZE=5
- DB_POSTGRESDB_CONNECTION_TIMEOUT=30000
- N8N_LOG_LEVEL=warn
- N8N_DISABLE_PRODUCTION_MAIN_PROCESS=false
## 🔒 Configurações de Segurança
- N8N_BLOCK_ENV_ACCESS_IN_NODE=false
## 🚀 Configurações de Performance e Estabilidade
- N8N_STARTUP_TIMEOUT=300
- N8N_DEFAULT_BINARY_DATA_MODE=filesystem
## 📦 Pacotes e Nós Comunitários
- N8N_REINSTALL_MISSING_PACKAGES=true
- N8N_COMMUNITY_PACKAGES_ENABLED=true
- N8N_NODE_PATH=/home/node/.n8n/nodes
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
## 📧 SMTP (Envio de E-mails)
- N8N_SMTP_SENDER=$email_smtp_n8n
- N8N_SMTP_USER=$usuario_smtp_n8n
- N8N_SMTP_PASS=$senha_smtp_n8n
- N8N_SMTP_HOST=$host_smtp_n8n
- N8N_SMTP_PORT=$porta_smtp_n8n
- N8N_SMTP_SSL=$smtp_secure_smtp_n8n
## 🔁 Redis (Fila de Execução)
- QUEUE_BULL_REDIS_HOST=redis
- QUEUE_BULL_REDIS_PORT=6379
- QUEUE_BULL_REDIS_DB=2
## 📊 Métricas
- N8N_METRICS=true
## ⏱️ Execuções e Limpeza
- EXECUTIONS_DATA_PRUNE=true
- EXECUTIONS_DATA_MAX_AGE=336
## 🧠 Recursos de IA
- N8N_AI_ENABLED=false
- N8N_AI_PROVIDER=openai
- N8N_AI_OPENAI_API_KEY=
## 🧰 Permissões em Funções Personalizadas
- NODE_FUNCTION_ALLOW_BUILTIN=*
- NODE_FUNCTION_ALLOW_EXTERNAL=*
## 🕒 Fuso Horário
- GENERIC_TIMEZONE=America/Sao_Paulo
- TZ=America/Sao_Paulo
## 🔌 Oracle Client
- NODE_ORACLEDB_DRIVER_MODE=thin
- OCI_LIB_DIR=/opt/oracle/instantclient
- OCI_INC_DIR=/opt/oracle/instantclient/sdk/include
- LD_LIBRARY_PATH=/opt/oracle/instantclient
- NODE_PATH=/home/node/.n8n/nodes:/home/node/.n8n/node_modules:/usr/local/lib/node_modules
## Scaling mode config
- N8N_PROXY_HOPS=1
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
resources:
limits:
cpus: "1"
memory: 1024M
labels:
- traefik.enable=true
- traefik.http.routers.n8n${1:+_$1}_editor.rule=Host(\`$url_editorn8n\`) ## Url do Editor do N8N
- traefik.http.routers.n8n${1:+_$1}_editor.entrypoints=websecure
- traefik.http.routers.n8n${1:+_$1}_editor.priority=1
- traefik.http.routers.n8n${1:+_$1}_editor.tls.certresolver=letsencryptresolver
- traefik.http.routers.n8n${1:+_$1}_editor.service=n8n${1:+_$1}_editor
- traefik.http.services.n8n${1:+_$1}_editor.loadbalancer.server.port=5678
- traefik.http.services.n8n${1:+_$1}_editor.loadbalancer.passHostHeader=1
error container:
(node:7) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Credentials could not be decrypted. The likely reason is that a different "encryptionKey" was used to encrypt the data.
Error: Credentials could not be decrypted. The likely reason is that a different "encryptionKey" was used to encrypt the data.
at Credentials.getData (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/credentials.ts:57:10)
at CredentialsService.decrypt (/usr/local/lib/node_modules/n8n/src/credentials/credentials.service.ts:368:32)
at /usr/local/lib/node_modules/n8n/src/credentials/credentials.service.ts:155:65
at Array.map (<anonymous>)
at CredentialsService.getMany (/usr/local/lib/node_modules/n8n/src/credentials/credentials.service.ts:154:31)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at CredentialsController.getMany (/usr/local/lib/node_modules/n8n/src/credentials/credentials.controller.ts:72:23)
at handler (/usr/local/lib/node_modules/n8n/src/controller.registry.ts:78:12)
at /usr/local/lib/node_modules/n8n/src/response-helper.ts:157:17
error:1C800064:Provider routines::bad decrypt
Information on your n8n setup
- **n8n version:1.112.5
- **Database (default: SQLite):Postgres
- **n8n EXECUTIONS_PROCESS setting (default: own, main):main
- **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
- **Operating system:Linux
