// guides · n8n error index

n8n Redis node errors and hangs: connection, TLS and Set fixes, 50 tests

Fix the n8n Redis node: runs that hang with no error, WRONGPASS, NOAUTH, Connection reset, self-signed certificate, DB index out of range, WRONGTYPE, ERR no such key and hashes stored wrong. 50 real tests on n8n 2.43.7 and Redis 8.0.

Updated 2026-10-23 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. 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. or Connection refused: Unable to connect to the Redis server. Please check the host and port. Only an empty password failed the node right away, with NOAUTH Authentication required.

  2. 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 for requirepass). ERR DB index is out of range: Redis has databases 0 to 15 by default. Connection timeout: Unable to connect to Redis server after 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, type 127.0.0.1 rather than localhost: with localhost, Test connection said successful but the node run hung, while 127.0.0.1 worked. In Docker, use the Redis service name.

  3. 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 chain and 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.

  4. When Get returns null, check the key and the database

    Get gave null with 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 key user:). Check with redis-cli -n 0 exists user:1. Leave Key Type on Automatic: forcing String on a list key failed with WRONGTYPE Operation against a key holding the wrong kind of value. NOPERM User ro has no permissions to run the 'set' command means the ACL user lacks that command.

  5. 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=x gave 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 with ERR no such key: use the Push operation to build lists. Expire with a TTL worked (redis-cli showed TTL 30).

  6. 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"}), kept 007 as text, and returned null on 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.

SetupResult
Correct host 127.0.0.1, port 6380, password, Get on a hashSuccess: {"name": "Ann", "email": "a@x.io"}
Wrong passwordNode: 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 requirepassNOAUTH Authentication required. (the node fails at once)
Port 6379, nothing listeningNode: 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.1Test connection: Connection successful!, but the node run hung (still running after 45 s, twice)
ACL user app + its passwordSuccess
ACL user app + the default user's passwordNode: 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 0Success, but Get returned null
SSL on, server without TLSNode: still running after 45 s. Test connection after 10 s: Connection timeout: Unable to connect to Redis server
SSL off, TLS-only serverNode: 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 certificateNode: still running after 45 s. Test connection: self-signed certificate in certificate chain
SSL on + Disable TLS VerificationSuccess
Read-only ACL user (+@read) runs SetNOPERM User ro has no permissions to run the 'set' command
Get, key that doesn't existSuccess, {"v": null}
Get, Key user:{{ $json.id }} with an empty idSuccess, null (it read the key user:)
Get, Key Type String on a list keyWRONGTYPE Operation against a key holding the wrong kind of value
Get, Key Type Automatic or Hash on a hashSuccess, 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 JSONHash with fields a="1", b="x" (values become strings)
Set, Key Type Hash, Value Is JSON on, Value a=1, b=xNo 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 xHash a="1", b="x"
Set, Key Type List, Value ["a","b"] on a new keyERR no such key
Set with Expire on, TTL 30Success, TTL 30 in redis-cli
Increment a key holding abcERR value is not an integer or out of range
Increment a new key with Expire (TTL 60)Success, {"o11": 1}
Increment, 3 input items3 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 listSuccess, {"job": null}
Keys, pattern user:*, Get Values onOne item with every matching key and its value
Delete a key that doesn't existSuccess, no error

Good to know

What we didn't test

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

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.