YunoHost-Apps / n8n_ynh

n8n package for YunoHost
https://n8n.io/
GNU General Public License v3.0
14 stars 19 forks source link

Credentials error / Credentials could not be decrypted “EncryptionKey” after restarted service n8n #50

Open bobiko opened 1 year ago

bobiko commented 1 year ago

Describe the bug

After restarting the n8n service in the Yunohost panel, there is a problem with decrypting the "EncryptionKey" credentials in the case of workloflows updates.

Context

Steps to reproduce

  1. log in to ssh
  2. Go to the /home/yunohost.app/n8n directory
  3. update n8n with npm and n8n command
  4. In the Yunohost dashboard, restart the n8n service
  5. log in to the n8n application and run the previously saved workflow
  6. a message appears at the bottom right of the screen

Expected behavior

The n8n application starts and runs all saved workflows without the need for re-authorization with external services.

Logs

Nov 16 19:48:45 n8n[274408]: NodeApiError: error:1C800064:Provider routines::bad decrypt
(....)
Nov 16 19:48:45 n8n[274408]: NodeApiError: error:1C800064:Provider routines::bad decrypt
Nov 16 20:57:35 n8n[274408]: Error: error:1C800064:Provider routines::bad decrypt
(...)
Nov 16 20:57:40 n8n[274408]: Error: Credentials could not be decrypted. The likely reason is that a different "encryptionKey" was used to encrypt the data.
Nov 16 20:57:40 n8n[274408]: Error: Credentials could not be decrypted. The likely reason is that a different "encryptionKey" was used to encrypt the data.
(...)
Nov 16 20:57:50 n8n[274408]: Error: error:1C800064:Provider routines::bad decrypt

-> hastebin

theRAGEhero commented 9 months ago

Hi, would it help if I try to manually update n8n to see if it raise the same error, or is it wasted time? Thank you.

bobiko commented 8 months ago

@theRAGEhero

Hi, would it help if I try to manually update n8n to see if it raise the same error, or is it wasted time? Thank you.

I'm pretty sure it would be the same error as I described in the first post.