Getting below message when i reduce or increase the pod or if i updated my N8N version.
I have added DB in backend to store the values still am getting this, can someone please provide any solution for the same
(There was a problem loading the credentials:
Credentials could not be decrypted. The likely reason is that a different “encryptionKey” was used to encrypt the data.)
It sounds like you have not made the shared storage between the container and the host. As well as the database the encryption key is also kept in a file that remakes itself if it can’t be found.
You have 2 options, you can map a volume to the container to persist the data or you can set the key using an environment option.
Is this is the value which i need to add in my docker file
Below is my current env files in my docker file
ENV DB_TYPE mysqldb
ENV DB_MYSQLDB_DATABASE n8n
ENV DB_MYSQLDB_PORT 3306
ENV DB_MYSQLDB_USER root
ENV N8N_BASIC_AUTH_ACTIVE true
ENV N8N_BASIC_AUTH_USER admin
ENV N8N_BASIC_AUTH_PASSWORD admin
ENV N8N_SKIP_WEBHOOK_DEREGISTRATION_SHUTDOWN true
ENV GENERIC_TIMEZONE Asia/Kolkata
Note : /data is an shard dir
@Vaithiyanathan_S you would need to make sure that the
/home/node/.n8n folder in the container is mapped to something on your host.
The other option would be to set
N8N_ENCRYPTION_KEY but you would need to know what the old value was to use the same credentials so for now it would be a case of starting again with the credentials but making sure you have one of the 2 options above being used.