Job Not Getting Executed After Adding Redis

After Adding Redis my Job is not getting success its keep on running my env variable look like below

ENV N8N_HOST *****
ENV WEBHOOK_TUNNEL_URL *****
ENV DB_TYPE mysqldb
ENV DB_MYSQLDB_DATABASE n8n
ENV DB_MYSQLDB_HOST db
ENV DB_MYSQLDB_PORT 3306
ENV DB_MYSQLDB_USER root
ENV DB_MYSQLDB_PASSWORD dbpass
ENV N8N_BASIC_AUTH_ACTIVE true
ENV N8N_BASIC_AUTH_USER admin
ENV N8N_BASIC_AUTH_PASSWORD admin
ENV N8N_USER_FOLDER /data
ENV N8N_ENCRYPTION_KEY admin
ENV EXECUTIONS_MODE queue
ENV N8N_SKIP_WEBHOOK_DERE GISTRATION_SHUTDOWN true
ENV QUEUE_BULL_REDIS_HOST rediscache
ENV QUEUE_BULL_REDIS_PORT 6379
ENV QUEUE_BULL_PREFIX n8n
ENV QUEUE_BULL_REDIS_TIMEOUT_THRESHOLD 60
ENV QUEUE_RECOVERY_INTERVAL 60
ENV QUEUE_BULL_REDIS_DB 0
ENV WORKFLOWS_DEFAULT_NAME Worlflow
ENV GENERIC_TIMEZONE Asia/Kolkata
EXPOSE 5678
WORKDIR /data
RUN python -m SimpleHTTPServer 80 &> /dev/null &
EXPOSE 80

Do you have workers running that could execute those workflows?

Here is the documentation:

No I dont have any workers running for it did i need to add any thing addition to the env file @jan

@Vaithiyanathan_S everything you need is in that link Jan sent, you would normally have one main instance then separate worker instances that would do all the work.

If you follow the guide and adapt it for your environment you should be fine.

2 Likes

@jon i have added n8n worker in my docker file and trying to run but getting the error /bin/sh: n8n worker: command not found

I have tried all the basic steps can you help me out here to fix the issue

Am using ECS and i will create the Image and upload that in ECR and use it

What Docker image are you using? How do you set the command?

Am using centos in that am installing n8n and updating all the env and running n8n using
CMD “n8n” its working
The same am using for worker node with the below command
CMD “n8n worker”

/bin/sh n8n worker
/usr/bin/n8n: n8n: line 3: syntax error near unexpected token (' /usr/bin/n8n: n8n: line 3: var path = require(‘path’); // tslint:disable-line:no-var-keyword’

Is the above error related

Solved by adding in entrypoint