Export credientials encrypted

hi
i try to export my credential decrypted but i have this message…

Error exporting credentials. See log messages for details.
Credentials could not be decrypted. The likely reason is that a different “encryptionKey” was used to encrypt the data.

any idea ?

thanks

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hello @nusquama

That message means your decryption key has changed. Do the credentials work in the n8n UI when building a workflow?

yes it work

Does the export work for you without the --decrypted flag?

yes, but after i cannot import if i want to do a clean install so my export is useless without decrypted

How are you running n8n server, and how are you running the export command?
If you have not set an encryption key yourself, there is a generated key in ~/.n8n/config. So the execute command needs to run where it has access to the exact same config file as the server.

i’m on coolify
i try this
~/.n8n $ n8n export:credentials --backup --decrypted --output=credentials
User settings loaded from: /home/node/.n8n/config
Error exporting credentials. See log messages for details.
Credentials could not be decrypted. The likely reason is that a different “encryptionKey” was used to encrypt the data.

so, i did more simply ! i just copy my config files !!

1 Like

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