Redis errors

Redis errors — memory limits, persistence, replicas, authentication and data types.

CodeErrorWhat it means
LOADING Redis is loading the dataset in memory Redis: (error) LOADING Redis is loading the dataset in memory Redis is starting and still reading its RDB/AOF, so it rejects commands temporarily.
NOAUTH / WRONGPASS invalid username-password pair Redis: (error) NOAUTH Authentication required. / WRONGPASS invalid username-password pair or user is disabled The server requires a password (or ACL user) and the client sent none or the wrong one.
READONLY You can't write against a read only replica Redis: READONLY You can't write against a read only replica The client is connected to a replica (or a failed-over node) and tried to write.
Redis fails to start: Address already in use / Bad directive in config Redis: # Could not create server TCP listening socket *:6379: bind: Address already in use / *** FATAL CONFIG FILE ERROR *** `redis-server` exits at startup because the port is taken or the config file has an error.
Celery with Redis: tasks run twice (visibility_timeout) Celery: Task executed twice / Restoring unacked messages — Redis broker visibility_timeout shorter than task ETA Celery's Redis transport redelivers a task if it isn't acknowledged within `visibility_timeout` (1 hour by de…
CROSSSLOT Keys in request don't hash to the same slot Redis Cluster: (error) CROSSSLOT Keys in request don't hash to the same slot A multi-key command or transaction used keys that live in different cluster slots.
MISCONF Redis: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk Redis couldn’t write its RDB snapshot (disk full, permissions, fork failed), so it blocks writes to protect d…
WARNING: The TCP backlog setting of 511 cannot be enforced Redis: # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128 The kernel limits the listen queue below Redis' `tcp-backlog`, so bursts of new connections may be dropped.
Client output buffer limit reached (scheduled to be closed) Redis: Client id=12 addr=10.0.0.5:51234 scheduled to be closed ASAP for overcoming of output buffer limits A client (often a slow subscriber or a replica) couldn't read data fast enough, so Redis disconnected it to p…
OOM command not allowed Redis: OOM command not allowed when used memory > 'maxmemory' Redis reached its maxmemory limit and the eviction policy (noeviction) refuses new writes.
CLUSTERDOWN Hash slot not served Redis Cluster: (error) CLUSTERDOWN Hash slot not served / The cluster is down The cluster has hash slots that no node currently serves, so keys in those slots can't be accessed.
Failed opening the temp RDB file / Permission denied writing dump.rdb Redis: # Failed opening the temp RDB file temp-1234.rdb (in server root dir /var/lib/redis) for saving: Permission denied Redis can't write its snapshot file to the configured directory.
Wrong signature trying to load DB from file / RDB checksum error Redis: # Wrong signature trying to load DB from file / # Short read or OOM loading DB. Unrecoverable error, aborting now Redis can't load `dump.rdb` — it's corrupted, truncated, from an incompatible version, or not an RDB file.
Only (P|S)SUBSCRIBE / (P|S)UNSUBSCRIBE / PING / QUIT allowed in this context Redis: ERR Can't execute 'get': only (P|S)SUBSCRIBE / (P|S)UNSUBSCRIBE / PING / QUIT / RESET are allowed in this context A client in subscriber mode (after `SUBSCRIBE`) tried to run a normal command.
BullMQ: Missing lock for job / job stalled more than allowable limit BullMQ: Error: Missing lock for job 42. moveToFinished / job stalled more than allowable limit A BullMQ worker lost the lock on a job (it took too long or the event loop was blocked), so the job is consid…
JedisException: Could not get a resource from the pool Jedis: redis.clients.jedis.exceptions.JedisException: Could not get a resource from the pool The Jedis connection pool had no available connection within the wait time, or couldn't create one.
NOPERM this user has no permissions to run the command Redis ACL: (error) NOPERM this user has no permissions to run the 'flushall' command or its subcommand The authenticated ACL user lacks permission for that command or key pattern.
Redis command timed out / ETIMEDOUT / Command timed out Redis client: Error: Command timed out / redis.exceptions.TimeoutError: Timeout reading from socket The client waited longer than its timeout for a Redis reply.
redis.exceptions.ConnectionError: Too many connections redis-py: redis.exceptions.ConnectionError: Too many connections The redis-py connection pool hit `max_connections`, and no connection was available.
ERR CONFIG SET failed (possibly related to argument) Redis: (error) ERR CONFIG SET failed (possibly related to argument 'maxmemory') - can't set immutable config `CONFIG SET` rejected the parameter — it is immutable at runtime, invalid, or disabled by the hosting provide…
Can't save in background: fork: Cannot allocate memory Redis: # Can't save in background: fork: Cannot allocate memory / WARNING overcommit_memory is set to 0! Redis couldn't fork to write an RDB/AOF snapshot because the OS refused to allocate memory.
WARNING you have Transparent Huge Pages (THP) support enabled Redis: # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis THP is enabled, which can cause latency spikes and high memory usage with Redis.
Keys disappear: maxmemory eviction (allkeys-lru) Redis: evicted_keys growing — keys vanish unexpectedly because maxmemory is reached and a volatile/allkeys eviction policy is active Redis removed keys to stay under `maxmemory` according to the eviction policy.
Keyspace notifications not received (notify-keyspace-events) Redis: PSUBSCRIBE __keyevent@0__:expired receives nothing — notify-keyspace-events is empty Expired/changed key events aren't published because notifications are disabled by default.
redis-server / redis-cli: command not found Shell: bash: redis-cli: command not found / zsh: command not found: redis-server Redis (or its CLI tools) isn't installed or isn't on your PATH.
Lettuce: Unable to connect to host (RedisConnectionException) Spring Data Redis: RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException Spring/Lettuce couldn't connect to Redis at startup or runtime.
Redis in Docker loses data on restart (no volume) Docker: Redis data gone after container restart — dump.rdb not persisted to a volume The container's `/data` isn't mounted to a volume, so snapshots vanish when the container is recreated.
MaxRetriesPerRequestError: Reached the max retries per request limit ioredis: MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details ioredis tried to run a command 20 times while the connection was down and gave up.
ClientClosedError: The client is closed (node-redis v4) node-redis: ClientClosedError: The client is closed A command was sent through a node-redis client that was never connected, was `quit()`, or disconnected.
Redis closes idle clients (timeout setting) Redis: Closing idle client / Connection closed by server after timeout 300 Redis' `timeout` directive closes connections idle longer than N seconds.
ECONNRESET / Connection reset by peer on idle Redis connection Redis: Error: read ECONNRESET / redis.exceptions.ConnectionError: Connection reset by peer after idle time A middlebox or Redis closed an idle connection, and the pooled client reused it.
mem_fragmentation_ratio high / memory not released Redis: INFO memory — mem_fragmentation_ratio:2.8 (RSS much larger than used_memory) The process uses far more RSS than the data size, due to allocator fragmentation or deleted-but-not-returned…
MASTERDOWN Link with MASTER is down and replica-serve-stale-data is set to no Redis replica: (error) MASTERDOWN Link with MASTER is down and replica-serve-stale-data is set to 'no' A replica lost its connection to the master and refuses to serve possibly stale data.
Sentinel: failover aborted / -failover-abort-no-good-slave Redis Sentinel: # -failover-abort-no-good-slave master mymaster 10.0.0.5 6379 / +sdown master Sentinel detected the master as down but found no healthy replica to promote.
MasterNotFoundError: No master found for 'mymaster' (Sentinel) redis-py: redis.sentinel.MasterNotFoundError: No master found for 'mymaster' / ioredis: All sentinels are unreachable The client asked Sentinels for the current master but got none (names wrong, sentinels down/unreachable, or f…
BUSY Redis is busy running a script Redis: (error) BUSY Redis is busy running a script. You can only call SCRIPT KILL or SHUTDOWN NOSAVE A long-running Lua script (or function) blocks the single-threaded server, so other commands are rejected.
ERR DB index is out of range Redis: (error) ERR DB index is out of range / ERR SELECT is not allowed in cluster mode `SELECT n` used a database number the server doesn't have, or you're on Redis Cluster/managed Redis that only…
ERR wrong number of arguments / syntax error Redis: (error) ERR wrong number of arguments for 'set' command / ERR syntax error The command was malformed: missing/extra arguments or an unsupported option for your Redis version.
EXECABORT Transaction discarded because of previous errors Redis: (error) EXECABORT Transaction discarded because of previous errors. A command queued inside `MULTI` had a syntax error, so `EXEC` aborted the whole transaction.
MOVED / ASK redirection (non-cluster client) Redis: (error) MOVED 3999 10.0.0.6:6379 / ReplyError: MOVED 12182 192.168.0.5:7001 The key lives on another cluster node, and the client isn't cluster-aware, so it just sees the redirect.
NOSCRIPT No matching script. Please use EVAL Redis: (error) NOSCRIPT No matching script. Please use EVAL. `EVALSHA` referenced a script hash the server doesn't have cached (after restart, failover, or `SCRIPT FLUSH`…
Can't connect to Redis from another host (bind 127.0.0.1) Redis: Could not connect to Redis at 10.0.0.5:6379: Connection timed out Redis only listens on localhost by default, so remote clients time out or are refused.
DENIED Redis is running in protected mode Redis: DENIED Redis is running in protected mode because protected mode is enabled and no password is set for the default user Redis refuses connections from non-local clients when it has no password and is bound to all interfaces.
Redlock: The operation was unable to achieve a quorum during its retry window Redlock: ExecutionError: The operation was unable to achieve a quorum during its retry window / LockError: Exceeded 10 attempts to lock the resource A distributed lock couldn't be acquired because another holder keeps it or too few Redis nodes responded.
ERR unknown command Redis: (error) ERR unknown command 'JSON.GET', with args beginning with: / unknown command 'FT.SEARCH' The server doesn't know the command — wrong name, newer Redis version, or a missing module.
Bad file format reading the append only file / AOF corrupted Redis: Bad file format reading the append only file: make a backup of your AOF file, then use ./redis-check-aof --fix <filename> Redis can't load the AOF on startup because it's truncated or corrupted, so the server refuses to start.
Error: connect ECONNREFUSED 127.0.0.1:6379 Redis: Error: connect ECONNREFUSED 127.0.0.1:6379 / Could not connect to Redis at 127.0.0.1:6379: Connection refused Nothing is listening on the Redis host/port your client uses.
Redis TLS: SSL handshake error / protocol mismatch Redis: Error: write EPROTO ... SSL routines:ssl3_get_record:wrong version number / Connection reset by peer (TLS vs plaintext) The client and server disagree about TLS — plaintext client to a TLS port, or TLS client to a plaintext port.
Redis latency spikes: slow commands (KEYS, SMEMBERS) Redis: SLOWLOG GET shows KEYS * taking 1500000 microseconds — server blocked Redis is single-threaded; one slow command delays everything else.
ERR value is not an integer or out of range Redis: (error) ERR value is not an integer or out of range `INCR`/`DECR`/`EXPIRE`-style commands received a non-integer value or the stored string isn't an integer.
Replica full resync loop (output buffer / timeout) Redis: Client id=7 scheduled to be closed ASAP for overcoming of output buffer limits (replica) / MASTER <-> REPLICA sync: Timeout A replica can't finish the initial sync because the master's replication buffer fills up or the transfer time…
ERR max number of clients reached Redis: ERR max number of clients reached Redis hit its `maxclients` limit (default 10000, lower if the OS limit is low), so new connections are refuse…
ERR This instance has cluster support disabled Redis: (error) ERR This instance has cluster support disabled A cluster command (or cluster client) was used against a standalone Redis instance.