Error with n8n queue mode

Describe the problem/error/question

When I run the command I can see this:


docker run --name n8n-queue -p 5679:5678 docker.n8n.io/n8nio/n8n worker
No encryption key found - Auto-generated and saved to: /home/node/.n8n/config
Error: Missing encryption key. Worker started without the required
N8N_ENCRYPTION_KEY env var. More information: https://docs.n8n.io/hosting/
environment-variables/configuration-methods/#encryption-key

What is the error message (if any)?

Please share your workflow

Information on your n8n setup

  • n8n version:
    Latest
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker)
  • *Operating system:
    Ubuntu

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:

Hi @Brayan_Ibrahim

Welcome to the community

The error gives you the right docs pages with more info. please read it: Configuring queue mode | n8n Docs

1 Like

I hope you’re all doing well. I’m writing this post to seek assistance with an issue I’m facing regarding the execution queue in n8n.

My goal is to run a set of 10 executions sequentially, one after another, rather than in parallel. To achieve this, I have followed the instructions in the n8n documentation and made the necessary configurations. Here’s what I have done so far:

  1. Enabled Redis as the queue system.
  2. Set the following environment variables inside the environment variable file:
N8N_EXECUTIONS_PROCESS=queue
N8N_EXECUTIONS_PROCESS_MAX_CONCURRENT_EXECUTIONS=5
N8N_EXECUTIONS_PROCESS_MAX_QUEUE_SIZE=5
N8N_POLL_INTERVAL=0
N8N_PROCESS=worker
N8N_PROCESS_QUEUE_TIMEOUT=0

Despite these configurations, the executions are still running in parallel rather than sequentially. As a result, I am encountering unexpected behavior in my workflows.

To find a solution, I referred to the official n8n documentation. I came across a suggested solution that involves running the following Docker command:

docker run --name n8n-queue -p 5679:5678 docker.n8n.io/n8nio/n8n worker


However, when I tried this solution, I encountered the following error message:


No encryption key found - Auto-generated and saved to: /home/node/.n8n/config
Error: Missing encryption key. Worker started without the required N8N_ENCRYPTION_KEY env var.
More information: Encryption Key Documentation


To provide you with more information, here are my system specifications:

* n8n version: Latest
* Database: Postgre
* n8n EXECUTIONS_PROCESS setting: I believe it is set to "main"
* Running n8n via: Docker
* Operating system: Ubuntu

I kindly request the assistance of the n8n community in resolving this issue. If you have encountered a similar problem or have any insights or suggestions, please share them with me. I greatly appreciate any help or guidance you can provide.

Thank you all for your time and support.

Hi @Brayan_Ibrahim

Have you looked at the documentation?
It should be pretty clear when reading this error and the documentation what you are missing :wink:
Ill give you a hint, it ends with encryption key. :slight_smile:

Hey @BramKn

We have thoroughly reviewed the documentation and have made several attempts to achieve our goal, but unfortunately, we haven’t had any success.

Could you please join us to help resolve this issue? This will be a paid task.

Thanks in advance.

Best regards,