// troubleshooting guide · n8n
n8n Credentials Could Not Be Decrypted
- Status
- Workaround available
- platforms:
- Self-hosted
- updated:
- November 24, 2026
- reports:
- 3
- Method
- how we research
RUNBOOK · n8n/credentials-could-not-be-decrypted3 FIXES
// quick answer
This error means the encryption key n8n is using now differs from the one that encrypted your saved credentials. Restore the original N8N_ENCRYPTION_KEY; without it credentials cannot be recovered.
Most likely fix: Restore the original encryption key
How to fix it
// try these in order, the most common fix is first
FIX 1Restore the original encryption key
- 01Find the old key in your backup, compose file or ~/.n8n/config
- 02Set N8N_ENCRYPTION_KEY to exactly that value
- 03Restart n8n and re-test a credential
Did this fix it?FIX 2Use one key on every instance
- 01Set the same N8N_ENCRYPTION_KEY on the main process and all workers
- 02Restart all of them
Did this fix it?FIX 3If the key is lost, recreate credentials
- 01Set a new explicit N8N_ENCRYPTION_KEY and back it up
- 02Re-enter each credential in n8n
- 03Persist the /home/node/.n8n volume from now on
Did this fix it?
SANDBOX · n8n RUNS IN YOUR BROWSER
Try it: run the workflow, fix the broken expression, set the schedule
A hands-on n8n-style sandbox, including the spots where users get stuck. See where problems like this one start. 1-2 minutes, nothing is saved.
Symptoms
Workflows fail with 'Credentials could not be decrypted' or 'bad decrypt'; n8n may fail to start after an update, container recreation or migration.
Why it happens
- C-01N8N_ENCRYPTION_KEY not set, so n8n generated a new key on a fresh volume
- C-02Key differs between main and worker instances
- C-03Data volume or config file (~/.n8n/config) lost when the container was recreated
- C-04Database restored without the matching key
// this guide also covers
- n8n credentials could not be decrypted
- n8n bad decrypt
- n8n encryption key lost
Still not working?
If n8n keeps failing, you're not alone. See every n8n problem users report or the alternatives people switch to.
Done fighting n8n? Our small team builds your own n8n alternative, or any software you need: web, mobile, games, desktop. Price agreed together.
Talk to usOther n8n errors
- n8n Webhook Not Registered (404 Error)
- n8n Webhook URL Shows localhost
- n8n Out of Memory (JavaScript Heap Out of Memory)
- n8n Connection Lost Error
- n8n Executions Stuck in Queued / Starting Soon
- n8n Google OAuth redirect_uri_mismatch Error
- n8n Schedule Trigger Running at the Wrong Time
- n8n 'Cannot Read Properties of Undefined' Error