I can't connect to Redis

I’m trying to setup credentials for the Redis Chat Memory but I can’t get it working. I have installed Redis locally on Linux (not via Docker) and I can use Redis via the redis-cli just fine without any password.

Since the N8N node requires a password I set a password for the ‘default’ user and tried connecting but it didn’t work. Am I supposed to input something else into the password field in the node aside from the plain password? How can I get it working?

I’m running N8N locally via docker.

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:

n8n version: 1.66.0
Database: default
Running n8n via Docker
Operating system: Linux (Linux Mint)

Hey @Akram,

This is a fairly common issue, If you are running n8n in Docker it won’t be able to use 127.0.0.1 to access a service on the host machine as the IP is reverved and points to the machine or container so in this case 127.0.0.1 points to the n8n container which won’t be running Redis.

What you can do is use either the IP of your host machine or if using the default Docker networking you can use 172.17.0.1 which is the default docker loopback for host machine.

Thanks for your reply. I managed to solve it by setting up Redis on the same Docker network as n8n and using the IP address of the container as Host.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.