Common Redis errors
The Redis errors you're most likely to see, with an example and how to fix each one
These pages explain the Redis errors you're most likely to see. Each one shows what the error means, an example, and how to fix it. To find an error that isn't here, see the list of all error messages.
Command errors
ERR unknown command: The server doesn't recognize the command name.ERR wrong number of arguments: A command has too many or too few arguments.ERR syntax error: A command's options are misspelled, in the wrong place, or can't be used together.ERR value is not an integer or out of range: A command requires a whole number, but the stored value or an argument is not a whole number.WRONGTYPE: A command was used on a key that holds a different data type.EXECABORT: A transaction was discarded because one of its commands had an error.NOSCRIPT:EVALSHAasked for a script that isn't in the server's script cache.BUSYKEY:RESTOREtried to create a key that already exists.
Cluster errors
MOVED: The key belongs to a hash slot that another cluster node serves.ASK: The key's hash slot is moving to another cluster node, and the key may already be there.CROSSSLOT: A command used keys that belong to different hash slots.TRYAGAIN: A command accessed multiple keys while their hash slot was being migrated between cluster nodes.CLUSTERDOWN: The cluster can't serve the command because a hash slot has no working node.
Memory and persistence errors
OOM: Redis has reached its memory limit and can't make room for new data.MISCONF: Redis stopped accepting writes because it couldn't save your data to disk.
Connection and security errors
ERR max number of clients reached: The server already has as many connections as its limit allows.NOAUTH: The server requires a password, and the connection hasn't authenticated.WRONGPASS: The username or password is wrong, or the user is disabled.NOPERM: The user is authenticated but isn't allowed to run the command or use the key.DENIED: Protected mode refused a connection from another computer, because the server has no password.
Replication and server state errors
READONLY: A command that changes data was sent to a read-only replica.MASTERDOWN: A replica lost its link to its primary and is set not to serve data that may be out of date.NOREPLICAS: The primary accepts writes only when enough replicas are connected, and there aren't enough.LOADING: Redis is still loading its data into memory and can't serve the command yet.BUSY: A Lua script or function has run for too long, and Redis is blocked until it ends.