Steps
If the node runs forever, test the credential
A bad Redis credential often doesn't fail the node: it keeps running. In our tests a wrong password, a closed port, an unreachable host, SSL switched the wrong way, a self-signed certificate and Database Number 16 all left the execution running with no error (one ran 11 minutes before we killed it). The node's Redis client is set to reconnect up to 10 times with doubling delays. Open the credential and click Test connection (it doesn't retry): it answered at once with the real reason, such as
WRONGPASS invalid username-password pair or user is disabled.orConnection refused: Unable to connect to the Redis server. Please check the host and port.Only an empty password failed the node right away, withNOAUTH Authentication required.Fix the message Test connection shows
WRONGPASS: wrong password, or with an ACL user, the password of another user (fill User only for ACL users; leave it empty forrequirepass).ERR DB index is out of range: Redis has databases 0 to 15 by default.Connection timeout: Unable to connect to Redis serverafter 10 seconds: the host doesn't answer, or SSL is on against a server without TLS.Connection reset ... without SSL to an SSL-only server: turn SSL on (hosted Redis such as Upstash or Redis Cloud usually needs it). For Host, type127.0.0.1rather thanlocalhost: with localhost, Test connection said successful but the node run hung, while 127.0.0.1 worked. In Docker, use the Redis service name.For TLS with a self-signed certificate, disable verification
The Redis credential has no CA certificate field. With SSL on and a server using its own CA, Test connection said
self-signed certificate in certificate chainand the node hung. Turning on Disable TLS Verification connected. The connection is still encrypted, but the server's identity isn't checked, so use it only on a network you trust.When Get returns null, check the key and the database
Get gave
nullwith no error in three cases: the key doesn't exist, the credential points at another Database Number than the one your data is in (3 instead of 0), and an expression key built from an empty field (user:{{ $json.id }}read the keyuser:). Check withredis-cli -n 0 exists user:1. Leave Key Type on Automatic: forcing String on a list key failed withWRONGTYPE Operation against a key holding the wrong kind of value.NOPERM User ro has no permissions to run the 'set' commandmeans the ACL user lacks that command.Use the right Key Type when you Set
The Value field is text, so Key Type Automatic always stores a string: a JSON object came back as JSON text, not a hash. For a hash, pick Hash with Value Is JSON on and a JSON object (field values become strings). Careful: Value Is JSON on with text like
a=1, b=xgave no error but stored one field per character ("0": "a", "1": "="...). With Value Is JSON off, write space-separated pairs:a 1 b x. Key Type List on a new key failed withERR no such key: use the Push operation to build lists. Expire with a TTL worked (redis-cli showed TTL 30).Counters and queues: Increment, Push and Pop
Increment on a key that holds text failed with
ERR value is not an integer or out of range; delete or rename the key. A new key starts at 1, and 3 input items gave 1, 2, 3, so the node runs once per item. Push then Pop works as a simple queue: Pop parsed JSON back into an object ({"id": 7, "zip": "007"}), kept007as text, and returnednullon an empty list, so add an IF node to stop when the queue is empty.
What we ran
On 23 October 2026 we ran n8n 2.43.7 (npm install, Node 24) with the Redis node version 1 against two local Redis 8.0.2 servers: one on 127.0.0.1:6380 with requirepass and two ACL users, one TLS-only on 6381 with a certificate from our own CA. Each case was a small workflow run with n8n execute (Manual Trigger, sometimes a Code node, then the Redis node), 35 runs plus reruns; runs that never finished were killed after 45 seconds. We also ran the credential's Test connection code on all 15 credentials. Every message below is copied from the execution data or the test result.
| Setup | Result |
|---|---|
| Correct host 127.0.0.1, port 6380, password, Get on a hash | Success: {"name": "Ann", "email": "a@x.io"} |
| Wrong password | Node: no error, still running when we killed it after 11 minutes. Test connection: WRONGPASS invalid username-password pair or user is disabled. |
| Password field empty, server has requirepass | NOAUTH Authentication required. (the node fails at once) |
| Port 6379, nothing listening | Node: still running after 45 s. Test connection: Connection refused: Unable to connect to the Redis server. Please check the host and port. |
| Host that doesn't answer (192.0.2.10) | Node: still running after 45 s. Test connection after 10 s: Connection timeout: Unable to connect to Redis server |
Host localhost, server bound to 127.0.0.1 | Test connection: Connection successful!, but the node run hung (still running after 45 s, twice) |
ACL user app + its password | Success |
ACL user app + the default user's password | Node: still running after 45 s. Test connection: WRONGPASS invalid username-password pair or user is disabled. |
| Database Number 16 (server has 16 databases, 0 to 15) | Node: still running after 45 s. Test connection: ERR DB index is out of range |
| Database Number 3, data written in database 0 | Success, but Get returned null |
| SSL on, server without TLS | Node: still running after 45 s. Test connection after 10 s: Connection timeout: Unable to connect to Redis server |
| SSL off, TLS-only server | Node: still running after 45 s. Test connection: Connection reset: The Redis server rejected the connection. This often happens when trying to connect without SSL to an SSL-only server. |
| SSL on, self-signed certificate | Node: still running after 45 s. Test connection: self-signed certificate in certificate chain |
| SSL on + Disable TLS Verification | Success |
| Read-only ACL user (+@read) runs Set | NOPERM User ro has no permissions to run the 'set' command |
| Get, key that doesn't exist | Success, {"v": null} |
Get, Key user:{{ $json.id }} with an empty id | Success, null (it read the key user:) |
| Get, Key Type String on a list key | WRONGTYPE Operation against a key holding the wrong kind of value |
| Get, Key Type Automatic or Hash on a hash | Success, an object |
Get, Name data.user (dot notation on) | Success, nested {"data": {"user": {...}}} |
Set, Key Type Automatic, Value {"a":1,"b":"x"} | Stored as a string, not a hash: Get returned the JSON text |
| Set, Key Type Hash, Value Is JSON on, same JSON | Hash with fields a="1", b="x" (values become strings) |
Set, Key Type Hash, Value Is JSON on, Value a=1, b=x | No error, but a hash with one field per character: {"0": "a", "1": "=", "2": "1", ...} |
Set, Key Type Hash, Value Is JSON off, Value a 1 b x | Hash a="1", b="x" |
Set, Key Type List, Value ["a","b"] on a new key | ERR no such key |
| Set with Expire on, TTL 30 | Success, TTL 30 in redis-cli |
Increment a key holding abc | ERR value is not an integer or out of range |
| Increment a new key with Expire (TTL 60) | Success, {"o11": 1} |
| Increment, 3 input items | 3 outputs: 1, 2, 3 |
Push {"id":7,"zip":"007"} (tail), then Pop (tail) | Pop parsed the JSON: {"job": {"id": 7, "zip": "007"}} |
Push 007, then Pop | "007" (kept as text) |
Get a string 007 | "007" (no number conversion) |
| Pop on an empty list | Success, {"job": null} |
Keys, pattern user:*, Get Values on | One item with every matching key and its value |
| Delete a key that doesn't exist | Success, no error |
Good to know
- Redis is the safe choice for counters hit by parallel runs: n8n static data loses updates when executions overlap. See n8n static data not saving.
- Redis in queue mode (n8n's own Redis for workers) is a different setup: see n8n queue mode and Redis worker errors.
- Other database nodes: Postgres node errors, MySQL node errors. Every message from our tests is in the n8n error message index.
What we didn't test
- How the hung runs end: the client's 10 reconnect attempts add up to about 17 minutes, and we stopped runs before that. A workflow timeout (Workflow Settings) may cut them short; we didn't test it.
- Redis Cluster or Sentinel, hosted Redis (Upstash, Redis Cloud, ElastiCache), the Redis Trigger node, and Valkey or KeyDB.
Start from a working agent
FAQ
Why is the n8n Redis node stuck running with no error?
In our tests a wrong password, wrong port or host, SSL set the wrong way, a self-signed certificate or a database number above 15 made the node keep running instead of failing, because its client keeps reconnecting. Click Test connection on the credential to see the real error.
What does WRONGPASS invalid username-password pair mean in n8n?
The password is wrong for that user. With a plain requirepass server, leave User empty. With an ACL user, use that user's own password.
How do I connect n8n to Redis with a self-signed certificate?
Turn SSL on and Disable TLS Verification on in the Redis credential. There is no field for a CA certificate, so the only option is to skip verification.
Why does the n8n Redis Set operation store my JSON as a string?
Key Type Automatic stores the text of the Value field as a string. Choose Key Type Hash with Value Is JSON on to store an object as a hash.
Why does n8n Redis Get return null?
The key doesn't exist in the selected database. Check the key name (expressions with an empty field change it) and the credential's Database Number.
Related guides
- n8n MySQL node errors: Access denied, SSL and SQL fixes, 41 runs
- n8n Postgres node errors: connection, SQL and insert fixes, 33 runs
- n8n Send Email (SMTP) errors: timeouts, 535 Invalid login and SSL fixes, 37 runs
- n8n MongoDB node errors: Authentication failed, Invalid JSON and query fixes, 40 runs
- n8n Webhook authentication not working? 401, 403 and JWT, 28 tests
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes