After update new version i got this error “Error: Missing encryption key. Worker started without the required” so my docker container always restarting and i put N8N_ENCRYPTION_KEY env on docker-compose.yml but still cant solve the error.
hi @Jon its happen to another worker so i log into main n8n docker container and copy the encrypt key from config file to my docker-compose.yml env and solve the error
In the repo you linked it looks like it would do the job, It doesn’t include the encryption key var as it shares the same data folder between the worker and the main instance so it will use the same key.
If you do see the credential issue it is always worth checking that the value of the config file under /home/node/.n8n/ has the key you are setting.
hi jon yes there is the key on that path but this happen when i pull new version and my another worker like not link to that config… i will try on my another instance later for update and see if this issue happen again
I had the same after updating from 1.22.6 to 1.25.2, the config file is present in the shared directory but still got the error from the worker there was no encryption key found. after setting it in the docker-compose.yml all was running again.
Any idea how to look in to this further to know what was going wrong? the files are all shared across the containers as in the example compose file earlier mention in this topic.
The encryption key needs to be set using the Env option, This is something that was often missed so we moved to enforce this as part of some other changes recently. I suspect part of it being missed was the docker examples being used. I will make sure we update the docker examples this week.