Hello Team,
In order to scale the system more and better, I want to know how we can implement the Redis in n8n instance.
Further, which are re-request, files modification, and any other improvement need.
What is the error message (if any)?
No
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
n8n version: 0.234.1
Database (default: SQLite): Postgress
n8n EXECUTIONS_PROCESS setting (default: own, main): main
Running n8n via (Docker, npm, n8n cloud, desktop app): docker
Is n8n showing an error when you try to start it? I still don’t fully understand why you are using args when you can just use environments instead which is what we document, Looking at this thread I believe you have made your environment more complicated that it needs to be.
If you can provide the error you see from n8n we can work out where the issue could be, I suspect it could be that n8n can’t connect to redis if you are using localhost as your env option as that will be local to the container not local to the machine running n8n.
Also, how to get to know that the redis working on the system? is there any specific argument or parameter that reflects the the redis is working fine??
That error doesn’t look to be related to redis, it is saying the n8n command you are calling can’t be found.
I would recommend checking that the path is correct.
You can monitor redis like normal to make sure it is working but I suspect what you really want to know is if n8n is correctly running in queue mode, you can do this by checking the workers page in the ui if using n8n enterprise or by checking the worker console log.
I am also still not sure why you would add that to your docker file when it isn’t needed, you can just add a start command in your compose file and use worker.
I would also recommend that you review your docker files as your configuration looks like it has been made too complicated and it could be a lot cleaner.
n8n is correctly running in queue mode, you can do this by checking the workers page in the ui if using n8n enterprise or by checking the worker console log.
I am not using n8n enterprise so how I can check it in another way?
What is expected console log response??
I am also still not sure why you would add that to your docker file when it isn’t needed, you can just add a start command in your compose file and use worker.
May you please tell how It can be done because I have tried but i am not able to do it.
@Jon thanks for your help, let me make the requirement more clear.
I need a docker file, in which redis is working
How to check the redis is working fine? how to check the logs?
what changes are required for to make sure redis work fine?
You can find how to get Redis working here: Configuring queue mode | n8n Docs Please remember that self hosting n8n is considered an advanced operation and we would expect you to know how to manage containers, The guide provided is enough to get up and running and if you wanted to have this in either a Dockerfile for a custom image or a Docker Compose file it shouldn’t take much to do.
You can check if Redis is working by checking the log file for Redis, You can check these using the normal methods. Assuming you are running Redis in a container it would be docker logs container_name you can find the docker documentation on this here: docker container logs | Docker Docs
There are no changes needed for Redis to work fine but assuming you actually mean n8n running in queue mode and not Redis you would need to follow the instructions already provided on how to set it up.