// 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
Share

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

  1. FIX 1Restore the original encryption key

    1. 01Find the old key in your backup, compose file or ~/.n8n/config
    2. 02Set N8N_ENCRYPTION_KEY to exactly that value
    3. 03Restart n8n and re-test a credential
    Did this fix it?
  2. FIX 2Use one key on every instance

    1. 01Set the same N8N_ENCRYPTION_KEY on the main process and all workers
    2. 02Restart all of them
    Did this fix it?
  3. FIX 3If the key is lost, recreate credentials

    1. 01Set a new explicit N8N_ENCRYPTION_KEY and back it up
    2. 02Re-enter each credential in n8n
    3. 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 us

Watch n8n Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

Other n8n errors

All 14 n8n errors and fixes →