Describe the issue/error/question
We have a problem with encryption key.
When we run workflow manually, all is fine, but if we use node “Schedule trigger” to run any workflow I get an error attached below.
We have set the env variable “N8N_ENCRYPTION_KEY” before the first run.
What is the error message (if any)?
ERROR: UNKNOWN ERROR - check the detailed error for more information
Credentials could not be decrypted.
The likely reason is that a different "encryptionKey" was used to encrypt the data.
Information on your n8n setup
n8n version: 0.218.0
Database you’re using (default: SQLite): PostgreSQL
Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker
Welcome to the community
Are you running n8n in queue mode? Normally I would only expect to see that if the encryption has changed so it is a bit odd that it works manually.
Thanks for your reply.
Yes, we have the executions mode set to queue:
Do you have the encryption key set to the same value for all of the worker instances?
Yes, should be the same:
N8N_ENCRYPTION_KEY: <key_here> <---
replicas: 2 <----
max_replicas_per_node: 2 <---
command: n8n worker
That is odd, It might be worth checking the logs for the workers to see if it is only one of them throwing the message.