redis
Redis Errors
Error type prefixes returned by the Redis server. Each error response begins with an uppercase word identifying the error type, followed by a human-readable message.
21 codes
· All codes 21 codes
- ASK Ask Redirect The key's hash slot is being migrated to another node. The client should send ASKING to the specified node and retry the command there, but should not update its slot map.
- BUSYGROUP Consumer Group Already Exists XGROUP CREATE was called with a group name that already exists on the stream. Use XGROUP CREATE with MKSTREAM only for new groups, or check existing groups with XINFO GROUPS first.
- BUSYKEY Destination Key Busy The destination key already exists. Returned by commands such as COPY or RENAME when the target key is occupied and no REPLACE flag is given.
- CLUSTERDOWN Cluster Down The cluster is down or unable to reach a quorum of master nodes. Commands cannot be served until the cluster recovers.
- CROSSSLOT Cross-slot Keys The command references keys that hash to different cluster slots. Multi-key commands in cluster mode require all keys to reside in the same slot.
- ERR Generic Error Generic error prefix for unrecognised commands, wrong argument counts, or general failures not covered by a more specific error type.
- EXECABORT Transaction Aborted EXEC aborted because watched keys were modified since WATCH was called, or because a command in the MULTI block had an error.
- LOADING Loading Dataset The server is loading the dataset from disk after a restart and is not yet ready to serve requests.
- MASTERDOWN Master Down A replica with replica-serve-stale-data set to no has lost its connection to the master and is rejecting commands. The replica will resume serving once it reconnects and re-syncs.
- MISCONF Misconfiguration Redis is configured to save RDB snapshots but is currently unable to persist to disk, so write commands are being rejected to avoid data loss. Check disk space and the last BGSAVE error, then run CONFIG SET stop-writes-on-bgsave-error no to override if acceptable.
- MOVED Key Moved In cluster mode, the key's hash slot is served by a different node. The response includes the slot number and the address of the responsible node. The client should redirect and retry.
- NOAUTH Authentication Required The server requires authentication. The client must issue AUTH before sending any other commands.
- NOGROUP No Such Consumer Group A stream command referenced a consumer group or key that does not exist, for example calling XREADGROUP or XACK against a group that was never created with XGROUP CREATE.
- NOPERM No Permission The authenticated user does not have permission to execute the command. Controlled by Redis ACL rules.
- NOREPLICAS No Replicas The write was rejected because min-replicas-to-write is configured and fewer than that number of replicas are currently connected and acknowledging writes.
- NOSCRIPT No Script EVALSHA was called with a SHA1 digest that does not correspond to any script loaded on the server. Use SCRIPT LOAD to load the script first.
- NOTBUSY Not Busy SCRIPT KILL or FUNCTION KILL was called but no script or function is currently executing.
- OOM Out of Memory Server has reached its maxmemory limit and the configured eviction policy does not allow new writes to proceed.
- READONLY Read Only Replica A write command was sent to a read-only replica. Redirect write commands to the master node.
- TRYAGAIN Try Again A multi-key command could not be executed atomically because the involved slots are being migrated. Retry after a brief delay.
- WRONGTYPE Wrong Type Command issued against a key holding the wrong data type. For example, calling LPUSH on a key that holds a string.