Skip to content

Latest commit

 

History

History
164 lines (142 loc) · 36.9 KB

ERRORS.md

File metadata and controls

164 lines (142 loc) · 36.9 KB

Errors and warnings

What KiviDB's log lines and error replies mean, and what to do about them. Search this page for the fixed words in a message. The parts in braces, such as {e}, vary.

  • Server log: [FATAL], [ERROR] and [WARN] lines.
  • Error replies: what a client is told, for example OOM, BUSY, NOAUTH.

LOGGING.md covers log levels, formats and where the log goes.

Urgency in the tables below:

  • Now: the server is down, or data is not being saved or replicated.
  • Soon: the server works, but something will go wrong if it is left alone.
  • Note: expected after the event it describes; act if it keeps happening.

Server log

Startup: [FATAL]

The server exits with status 1 after each of these. Nothing has been changed on disk.

Message Meaning What to do
Bad directive or wrong number of arguments — {e} A line in the config file is not understood. {e} names the file, line and directive. KiviDB reads its config file strictly: a typo stops startup, rather than being ignored. Fix or remove the line. Redis directives KiviDB has no use for are accepted and ignored; a misspelt one is not.
Can't chdir to '{dir}': {e} dir does not exist or is not accessible. Create the directory, or fix dir and its permissions.
invalid tls-auth-clients '{value}' (expected yes, no or optional), --update-check-url must be an https:// URL…, --tls-port … requires both --tls-cert-file and --tls-key-file, --tls-port … was given, but this binary was built without TLS support…, port 0 turns the plaintext port off, which leaves no port to reach this server on…, port 0 on a cluster node needs tls-cluster yes…, invalid tls-auth-clients-allowed-names: '{name}' is not a DNS name, nor '*.' and one… The options contradict each other, or ask for something this build does not have. Do as the message says. The -tls and -full builds have TLS.
The open-file limit (ulimit -n) is too low: KiviDB needs at least {n}, Can't read the open-file limit: {e} The open-file limit leaves no room for a client beside the files the server keeps for itself (32, or on io_uring 40 and 8 a worker thread), or it could not be read. Raise it: ulimit -n, or LimitNOFILE= in systemd.
Can't open the log file '{path}': {e}… logfile cannot be opened for appending. Create the directory, and give the server's user write permission, or unset logfile.
Can't listen on {addr}: {e}. … The client port cannot be opened. The message ends with the likely cause: the port is already in use (often another KiviDB or Redis), it is below 1024 without privileges, or the bind address is not on this machine. Stop the other process or change port; use a port at or above 1024, or grant CAP_NET_BIND_SERVICE; fix bind.
Can't load the ACL file '{path}': {e}. … aclfile is missing or has a line KiviDB does not understand. {e} gives the line number. Fix the line, or start without aclfile.
TLS: … The certificate or key cannot be read, or they do not match; or tls-ca-cert-file is missing, unreadable or holds no certificate. Check tls-cert-file, tls-key-file and tls-ca-cert-file: paths, permissions, PEM format, and that the key belongs to the certificate.
dump.kdb cannot be loaded: {e}, dump.rdb cannot be loaded: {e}, appendonly.aof cannot be read: {e}, appendonly.aof cannot be loaded: {e}, appendonly.aof exists but cannot be examined: {e}, appendonly.aof cannot be opened for appending: {e}, then Refusing to start with an empty dataset in place of one that could not be loaded… A data file is there but cannot be read. KiviDB refuses to start rather than start empty: an empty node accepts writes, its replicas copy the empty dataset, and the next save overwrites the only copy. Redis behaves the same. Now. Check the file's permissions and the disk. If the file is damaged, restore it from a backup. If you really mean to start empty, move the file out of dir; do not delete it.
dump.kdb cannot be loaded: the snapshot ends inside its {section} section: it is cut short (or … inside a section's magic …, … before its last database does …) dump.kdb, the AOF's preamble, a --preload-file or a master's full sync is cut short, for example inside the section that holds search indexes, HNSW graphs or index aliases. The key TTLs and function libraries stored after that point would be lost, so since 1.2.1 the image is refused; 1.2.0 and earlier loaded it with a warning (snapshot index section is unreadable). In a full sync, the replica keeps its dataset. Now. Restore dump.kdb from a backup or another node, or start from the AOF if it is complete.
dump.kdb cannot be loaded: compressed snapshot: block {n} (at byte {offset}) … (… is cut short, … does not match its checksum: it is damaged, … does not decompress …), compressed snapshot: it is cut short after block {n} …, before its end marker, … its end marker … is damaged or does not match …, … bytes follow its end marker …, … its header is damaged … A compressed snapshot (written with rdbcompression yes, opt-in since 1.3.0) is cut short or damaged: in dump.kdb, a --preload-file, a backup's base or a master's full sync. Each block is checked before any of it is used, and the file must end with its end marker; one that does not is refused whole, never loaded in part. In a full sync, the replica keeps its dataset and syncs again. Now. Restore dump.kdb from a backup or another node, or start from the AOF if it is complete. kividb kdb-decompress refuses the file for the same reason.
appendonly.aof.prev, left by a checkpoint that finished, cannot be kept aside: {e}. dump.kdb was saved with the AOF off since, and may not hold its writes, so it is not removed without a copy. Free disk space in the data directory, or move appendonly.aof.prev out of it, and start again A checkpoint finished without removing its old log, and a save with the AOF off came after: the old log may hold writes the snapshot does not, so it is kept aside before it is removed. Keeping it aside failed, usually for lack of disk space on a filesystem without hard links. Nothing has been removed. Free disk space in dir, or move appendonly.aof.prev out of dir (keep it: it may hold writes the snapshot does not), then start again.
appendonly.aof continues from save number {n}, but dump.kdb is save {m}… The AOF and the snapshot belong to different points in time, so the writes in between are in neither. Now. Restore a matching pair from a backup, or decide which file to keep and move the other away.
appendonly.aof ends in a partial record that could not be cut off: {e} The AOF ends mid-record (normal after a crash), but the file cannot be truncated to remove it. Check the file's permissions and the disk.
appendonly.aof is older than dump.kdb and cannot be started again on it: {e}, appendonly.aof cannot be started again on dump.kdb with what was added to it: {e}, appendonly.aof.prev cannot be read: {e} The log is older than the snapshot (see the older than dump.kdb warning below), and a new log could not be made in its place: keeping the old one aside, writing the new one, or syncing dir failed. Nothing has been removed: the old logs, and any copy already kept aside, are still in dir. Check the disk space and permissions of dir, then start again.
preload-file '{path}' could not be loaded: {e} preload-file names a file that is missing, cut short or damaged ({e} says which), or not a dataset KiviDB reads. An RDB file's checksum is checked unless rdbchecksum no is set. A file of a Dragonfly snapshot in Dragonfly's own format (a -summary.dfs file and a -NNNN.dfs file for each shard) is refused: by its .dfs name; renamed, by the fields Dragonfly 1.32 and later write in these files; and, for a summary from an earlier Dragonfly, as a file Dragonfly wrote with no keys in it. Fix the path, or remove preload-file. For Dragonfly, save an RDB file with SAVE RDB and load that. To load an RDB file whose only fault is its checksum, set rdbchecksum no in the config file.
… the snapshot's function libraries cannot be loaded: {e} (after dump.kdb cannot be loaded, dump.rdb cannot be loaded or preload-file … could not be loaded) The file holds function libraries, and one does not load in KiviDB: {e} says why, such as code that does not compile, a first line other than #!lua name=<library>, or two libraries registering one function. KiviDB refuses the file rather than start without them. Fix or delete that library where the file came from (FUNCTION DELETE in Redis, then save again), or start from a file without it.

Persistence: [ERROR] and [WARN]

Message Urgency Meaning What to do
AOF: write to appendonly.aof failed: {e} — … Now Writes are acknowledged to clients but not written to the AOF. Logged at most every 10 s. Free disk space, or fix the data directory's permissions. When the disk is fixed, run BGREWRITEAOF so the AOF matches the dataset again.
AOF: fsync of appendonly.aof failed: {e} — … Now Writes reached the OS, but are not guaranteed to be on disk. A power failure can lose them. Check the disk (dmesg, SMART). Some network filesystems refuse fsync; keep the data directory on local storage.
AOF writer unavailable — write records are being lost… Now The AOF writer has stopped. The AOF no longer describes the dataset. Restart the server, after taking a snapshot (SAVE), and check the log before this line for the cause.
Background save failed: {why}. … Now BGSAVE (or an automatic save) failed. The previous dump.kdb is kept, LASTSAVE does not move, and INFO persistence shows rdb_last_bgsave_status:err. Usually disk space or permissions on dir. Run BGSAVE again after fixing it.
Final snapshot failed: {e}. … Now Shutdown could not write dump.kdb. After SIGTERM, or with SHUTDOWN FORCE, the process exits with status 1. After a plain SHUTDOWN the client is answered -ERR Errors trying to SHUTDOWN. Check logs. and the server keeps running. Writes since the last good save are only in the AOF, if appendonly is on. Fix the disk, and shut down again (or before starting again). With the AOF on, nothing is lost: it is replayed at startup.
Snapshot task panicked: {e} Now A bug: the shutdown save crashed. Report it with the log. The previous dump.kdb and the AOF are untouched.
AOF ended with a partial record or transaction (likely an unclean shutdown); the incomplete tail ({n} bytes) is cut off Note The server or the machine stopped mid-write. The last, incomplete command, or transaction, is dropped: it was never acknowledged to a client. Nothing, unless it happens without a crash. Then check the disk.
Revert incomplete MULTI/EXEC transaction in AOF file: its EXEC is not in the file, and its {n} record(s) are dropped Note Comes before the line above: the incomplete tail is a transaction, or a script's writes, whose EXEC was never written. All of it is dropped, as in Redis, rather than half of it applied. As above.
{n} AOF command(s) failed to apply and were skipped Soon Commands in the AOF failed on replay, for example a command a newer version wrote that this version does not know. Check that you did not downgrade KiviDB. Compare key counts with what you expect.
appendonly.aof is a full-history log, not a delta. Replaying it on top of dump.kdb can double-apply INCR/RPUSH/APPEND… Soon An AOF from before KiviDB's snapshot-plus-delta scheme, found next to a snapshot. Only an earlier release makes one. Run SAVE once the server is up: it rebases the AOF.
AOF: appendonly.aof is older than dump.kdb (saved since, with the AOF off, or replaced) — not replayed…, AOF: appendonly.aof.prev and appendonly.aof are older than dump.kdb… Note The snapshot was saved after the log, with the AOF off, or replaced: replaying the log over it would apply writes twice and undo deletions. The log is kept aside (the next line names the file), and starts again, empty, on the snapshot. Nothing, if the snapshot is the data you expect. If writes made after the snapshot are missing, apply them from the kept file (see PERSISTENCE.md).
AOF: appendonly.aof was added to after dump.kdb was saved with the AOF off (by an earlier release started with the AOF on) — what was added is replayed… (or appendonly.aof.prev) Note The log is older than the snapshot, but records were added to it after the snapshot was saved: an earlier release does that when it is started with the AOF on. Those records are replayed on top of the snapshot; the ones from before the save, which it holds, are not. The log is kept aside and starts again on the snapshot, with the records added. Nothing. Do not go back to an earlier release with the AOF on after a save with the AOF off.
AOF: {file} {why}. It is kept as superseded.{ms}.{n}.{file}, which the server never removes… Note A log that is not replayed, or that CONFIG SET appendonly yes starts again from, was kept aside before anything replaced it. {why} says why: older than dump.kdb; left by an earlier run, when the AOF is turned on at runtime; no longer going on from dump.kdb after a save with the AOF off or a full sync; or added to after such a save. The rest says whether its writes are in the dataset: Its writes are already in the dataset (the log this server had open, at CONFIG SET appendonly yes), What was added to it since that save has been replayed, and is in the dataset (a log added to after a save with the AOF off), or Writes in it that are not in dump.kdb are not in the dataset (the others). When it says the writes are in the dataset, do not send the file to the server: that applies them twice. Remove it once it is not needed. Otherwise, if writes are missing, apply them from the file as the message says, then remove it. See PERSISTENCE.md.
AOF: appendonly.aof.prev, left by a checkpoint that finished, could not be removed: {e} — it is left in place. dump.kdb holds its writes. Until it is removed, every checkpoint fails (INFO persistence shows aof_last_bgrewrite_status:err) and appendonly.aof keeps growing: fix the permissions of the data directory, and the next checkpoint removes it, or remove appendonly.aof.prev by hand Soon The snapshot holds the old log's writes (or it was kept aside first), so it is no longer needed, but removing it failed, for example for the directory's permissions. The server starts. Each checkpoint after this fails on the same file until it is gone: INFO persistence shows aof_last_bgrewrite_status:err, and the AOF keeps growing. Fix the permissions of dir (the next checkpoint then removes the file), or remove appendonly.aof.prev by hand.
AOF: appendonly.aof.prev was left by a checkpoint, beside a log that goes on from dump.kdb, and dump.kdb.gen is that of a save with the AOF off. It is kept as superseded.{ms}.{n}.appendonly.aof.prev… Note A checkpoint finished but did not get to remove its old log, and a save with the AOF off came after. The old log is no longer needed for the log, but a run with the AOF off may never have loaded it: it is kept aside rather than removed. Its records may be in dump.kdb or in the log already. Do not send the whole file to the server. If writes from it are missing, read it and send only those; then remove it.
AOF: {n} log(s) kept aside, never replayed and never removed by the server, are in the data directory: {names}… Soon At every start: kept logs (above) are still in dir. INFO persistence counts them in aof_superseded_files and aof_superseded_bytes. Check each for writes you need, then remove it.
AOF: dump.kdb.gen did not describe dump.kdb (saved with the AOF off by an earlier release, or replaced) — dump.kdb is now save number {n} Note The snapshot's save number on disk was not its own: a save with the AOF off in an earlier release, or a dump.kdb copied in. It was given a number of its own, so that the new log goes on from it. Nothing.
AOF: the snapshot of the checkpoint could not be written: {e} — …, AOF: auto-checkpoint failed: {e} Soon The AOF could not be rebased onto a new snapshot, so it keeps growing. The previous log is kept and replayed on the next start. Disk space and permissions on dir.
the snapshot's function libraries {names} are not loaded: this build was made without Lua… Soon dump.kdb, a backup, a Redis dump.rdb, a --preload-file or a master's full sync holds function libraries, and this build has no Lua (for example after swapping the kividb-full package for kividb). The rest is loaded; FUNCTION and FCALL are refused. The libraries are kept as they came and written into this server's own snapshots, so a build with Lua started on the data later has them again. Run a build with Lua (lua or full, or the kividb-full package) on this data.
RDB: unknown type byte {b} — stopping load Soon A Redis dump.rdb holds a type KiviDB does not read, such as a Redis module's type. Keys after it are not loaded. Load the data with a migration tool that skips module types, or remove those keys in Redis first.
RDB: the search module's index definitions and dictionaries are not loaded… Note A Redis dump.rdb (or a Redis primary's full sync) holds index definitions or FT.DICTADD dictionaries from the search module. KiviDB keeps indexes of its own, so it loads the keys and leaves those out. Run FT.CREATE and FT.DICTADD again. FT.CREATE indexes the keys already there.
RDB: … (opcode 0x…) is not supported…, RDB: data of module type {name} (opcode 0xF7) is not supported, RDB: unknown opcode {b} (in dump.rdb cannot be loaded: {e} or a full sync's error) Now A Redis dump.rdb holds something KiviDB does not read yet: hash templates, module key metadata, or another module's own data. It refuses the file rather than load part of it. Hash templates and module key metadata can't be moved yet. For another module's data, move the keys with MIGRATE instead.

Memory, clients and scripts: [WARN]

Message Urgency Meaning What to do
maxmemory ({n} bytes) reached and nothing more can be evicted under maxmemory-policy {policy}: … Now Writes are refused with OOM. Reads still work. Logged at most once a minute. Raise maxmemory (CONFIG SET maxmemory 4gb). For a cache, use an evicting policy (allkeys-lru). For a queue or store (BullMQ, Sidekiq), keep noeviction and add memory, or find what is growing (MEMORY USAGE, --bigkeys).
A script has run for more than lua-time-limit ({ms} ms): other clients now get BUSY… Now A Lua script or function is still running. Scripts run alone, so every other client waits, and is now told BUSY. SCRIPT KILL (or FUNCTION KILL) stops it if it has not written anything. Otherwise only SHUTDOWN NOSAVE does, losing writes since the last save. Then fix the script: look for unbounded loops and KEYS-like scans.
Client id={id} closed: it is subscribed and {n} bytes behind, over the pub/sub output buffer limit Soon A subscriber read too slowly, and its unread messages passed client-output-buffer-limit pubsub. It was disconnected so it could not exhaust memory. Make the subscriber faster, or raise the limit: CONFIG SET client-output-buffer-limit "pubsub 64mb 16mb 60", or "pubsub 0 0 0" for none (Redis's default is 32 MB, or 8 MB for more than 60 s). The subscriber has missed messages. Pub/sub does not redeliver; use streams if it must not.
Client id={id} closed: it is in MONITOR and {n} bytes behind, over client-output-buffer-limit normal Soon A MONITOR client read more slowly than commands ran, and what it had not read passed client-output-buffer-limit normal (a monitor is a normal client, as in Redis; the class has no limit by default). It was disconnected rather than shown only part of what ran. Read the monitor faster (write it to a file, not a terminal), monitor for less time, or raise the limit: CONFIG SET client-output-buffer-limit "normal 256mb 0 0".
Client id={id} closed: {n} bytes waiting to be written to it, over client-output-buffer-limit {class} Soon A reply (normal), or a subscribed client's reply (pubsub), passed that class's hard limit, or stayed over its soft limit for longer than its seconds. The connection was closed without it, as Redis closes it. Ask for less at a time (SCAN for KEYS, ranges for large values), read faster, or raise the class's limit with CONFIG SET client-output-buffer-limit.
Accept error: {e} — … Now New connections are failing. Most often Too many open files. Logged at most every 10 s. Raise the open-file limit (ulimit -n, or LimitNOFILE= in systemd) well above the number of clients you expect, or close idle connections: an oversized connection pool is the usual cause.
maxclients {n} needs {n} open files, but the limit (ulimit -n) allows {n}: maxclients is {n} Soon At startup the hard open-file limit was too low for maxclients, so it was lowered to what fits. Raise the hard limit (ulimit -Hn, or LimitNOFILE= in systemd), or set maxclients to what fits.
{n} clients connected (maxclients); closing new connections Soon New connections are closed at maxclients. Logged at most every 10 s. Raise maxclients (CONFIG SET maxclients), or close idle connections.
An io_uring worker failed to start: … Soon The kernel, or a seccomp profile such as Docker's default, does not allow io_uring. Start with --io-model tokio, or allow io_uring (for Docker: --security-opt seccomp=unconfined, or a profile that allows the io_uring calls).
TLS: accept error: {e}, TLS: bind failed on io_uring binary path: {e} Soon The TLS listener cannot accept connections, or cannot listen on tls-port. As for Accept error and Can't listen above, on tls-port.
Index `{name}` missing after registration — skipping backfill, HNSW compaction skipped for '{index}' field '{field}': {e} Soon A search index could not be rebuilt or compacted. Queries on it may miss documents or run slower. FT.DROPINDEX and FT.CREATE it again. Report it if it repeats.

Replication: [ERROR] and [WARN]

Message Urgency Meaning What to do
Replication: FULL RESYNC REFUSED from {master}: {reason}. … Now This replica was about to replace its dataset with a much smaller one from the master (for example an empty master that restarted without its data). It kept its data and is not replicating. If this replica's data is the one to keep, promote this node: REPLICAOF NO ONE, or in cluster mode (where REPLICAOF is refused) CLUSTER FAILOVER TAKEOVER on this replica, which takes over its master's slots. If the master's data really is the one to keep: CONFIG SET replica-full-sync-guard off on this replica; it retries on its own. The guard stays off until it is set back (CONFIG SET replica-full-sync-guard empty).
Replication: NOT syncing from {master}: the master lost its dataset in a restart, and this replica holds {n} keys of it; taking over from it. …, … the master restarted without the stream this replica's dataset is from … Now This replica's master came back without its data (killed with no AOF). The replica kept its data and is taking over the master's slots; the old master then becomes its replica. Nothing, if Won election follows. If it does not (no majority of masters), fix the bus between masters. Turn the AOF on (appendonly yes) for masters that may be killed.
Replication: Replication link to {master} failed: {e} — retrying every {n}s Soon The replica cannot reach its master, or lost it. It keeps retrying, and serves possibly stale data meanwhile. Check that the master is up, the address and port, firewalls, and masterauth.
Replication: Master closed the connection — reconnecting Note The master restarted or dropped this replica, for example over its backlog limit. If it repeats, look at the master's log for exceeded backlog limit.
Replication: Channel replica {addr} exceeded backlog limit ({n} > {limit} bytes) — evicting (on the master) Soon A replica fell too far behind, and was dropped. It reconnects and needs a full sync. Give the replica more network or CPU, or raise repl-replica-max-backlog-bytes (default 256 MB) on the master.
Replication: Socket replica {addr} dropped: {e}, Replication: Channel replica {addr} disconnected (hub send failed) (on the master) Note A replica's connection broke. It reconnects on its own. Act only if it repeats: look at the network and the replica's log.
Replication: Dropped the {n} local keys before loading {m} from the master Note A full sync replaced this replica's dataset, as replication does. Nothing, unless you did not expect this node to be a replica.
Replication: Replicated command error (non-fatal): {e} Soon A command from the master failed here. The replica may now differ from the master. With {e} ERR unknown command 'MULTI' or 'EXEC', it does not: this replica runs 1.1.2 or earlier and its master a later version, and it applies a transaction's writes one by one (#172). Compare DBSIZE and spot-check keys. If they differ, force a full sync: REPLICAOF NO ONE, then REPLICAOF the master again. For MULTI and EXEC, upgrade the replica.
Replication: post-sync AOF rebase failed (…); this replica's AOF does not match its dataset — … Now After a full sync, the replica's AOF still describes the old dataset. Run BGREWRITEAOF on the replica before relying on the AOF.
Replication: index rebuild after full sync failed: {e} Soon Search indexes on the replica may be incomplete. FT.DROPINDEX and FT.CREATE them on the replica, or resync.
Replication: Hub sender closed — replication cannot proceed, Replication: could not start replication runtime / thread: {e} Now Replication has stopped inside this process. Restart the server, and report it with the log.

Cluster: [ERROR] and [WARN]

Message Urgency Meaning What to do
Cluster: Node {id} marked FAIL by quorum, Cluster: Node {id} marked FAIL (reported by {id}) Now A node is unreachable from most masters. If it was a master, one of its replicas takes over. Find out why the node is down. When it comes back, Node {id} is reachable again — clearing FAIL is logged at notice.
Cluster: This master came back without its dataset ({n} keys loaded; no AOF, and no snapshot from a clean shutdown). It serves none of its slots … Now This master was killed with no persistence and is back with nothing (or an old snapshot), while its replica may hold its data. It answers CLUSTERDOWN until the replica takes over, or says it holds nothing. Nothing: Lost-dataset fence lifted or Slots of this shard are now owned by … follows. To avoid it, run masters with appendonly yes.
Cluster: Lost-dataset fence lifted: {why} Note A master that came back without its dataset serves its slots again: a replica took them over, or none holds anything, or none can. Nothing. If {why} says no replica asked in time, check the replicas' version and log.
Cluster: Lost-dataset fence holding back: a replica may be taking over. … Note A master that came back without its dataset finds every replica of it failed. One that has only just failed may be the one taking over, its promotion not yet heard of. The master serves none of its slots until the last of them to fail has been failed for max(30 s, 6 × cluster-node-timeout). Nothing. Lost-dataset fence lifted or Slots of this shard are now owned by … follows.
Cluster: Not taking over from {node} after all: {why} Note This replica won an election but did not take the slots: its dataset was dropped for a full sync that has not finished loading, or its data is too old. Nothing: it stands again when it may. If the master is gone for good while a full sync was loading (the dataset dropped first), bring the master back; or, to serve what the replica holds and accept that the rest is gone, run CONFIG SET replica-full-sync-guard off and then CLUSTER FAILOVER TAKEOVER on the replica (only TAKEOVER with the guard off promotes it), and set the guard back afterwards.
Replication: NOT syncing from {master}: this node … taking over from the master … Note This replica stands in an election to replace its master, or has won one: it takes no full sync from that master meanwhile, and keeps its dataset. Nothing.
Cluster: Taking over from master {id}: {why} Note This replica holds the data its master lost, and is running for election to replace it. Nothing.
Cluster: Starting election for epoch {n} (failed master: {id}) Note This replica is trying to replace a failed master. Won election… (at notice) says it did. Nothing.
Cluster: Election at epoch {n} timed out with {v} of {q} votes — abandoning Soon Not enough masters voted. The slots of the failed master stay unserved, so clients get CLUSTERDOWN. Check that a majority of masters is up and can reach each other on the bus port (client port + 10000 by default).
Cluster: Election: failed to ask {id} ({addr}) for vote: {e}, Cluster: Bus accept error: {e} Soon Cluster bus traffic is failing. Firewalls and the bus port between nodes.
Cluster: Migration of slots {slots} did not complete: {error} Soon A resharding stopped halfway. Some keys are on each side. Run the migration again; CLUSTER SHARDS shows who owns each slot.
Cluster: MEET {ip}:{port} failed: {e}, Cluster: Manual failover aborted: {e} Note The command did not complete. Check the address and that the other node runs with cluster-enabled yes.
Cluster: could not start the bus runtime / bus thread: {e}, Cluster: Bus listener exited: {e} Now This node cannot talk to the rest of the cluster. Usually the bus port is in use. Restart, and check the port.
Cluster: could not start the lost-slot cleanup thread: {e} — … Soon Keys in slots that moved to another node stay here, unreachable, until the next restart. They use memory. Restart the node when convenient.

Error replies

What clients are told. These are Redis's error codes, with Redis's meaning. Client libraries raise them as exceptions; the first word is the code.

Reply Meaning What to do
ERR this build of KiviDB has no Lua… EVAL, EVALSHA, SCRIPT, FUNCTION or FCALL on the default or tls build, which have no Lua. Job queues such as BullMQ and Sidekiq run scripts, so they hit this first. Run the lua or full variant: the kividb-full apt/dnf package (INSTALL.md), Docker image kividb/kividb:<version>-lua or -full, or the kividb-lua-… / kividb-full-… release file.
ERR unknown command '{name}'… The command does not exist, or is not supported. COMMANDS.md lists what is. Check the spelling. Of Redis's module commands, JSON, search (FT.*), time series (TS.*) and vector sets are available.
ERR wrong number of arguments for '{cmd}' command As it says. Check the command's syntax.
ERR syntax error, ERR value is not an integer or out of range, ERR value is not a valid float An argument is malformed. Check the arguments.
ERR Protocol error: … The client sent bytes that are not RESP, and the connection is closed. Usually the wrong port, TLS sent to a plaintext port (or the reverse), or HTTP. Logged at verbose.
ERR max number of clients reached maxclients clients are connected, and the connection is closed. As for {n} clients connected (maxclients) above.
NOAUTH Authentication required. A password is set, and this connection has not authenticated. Give the client the password (AUTH, or HELLO 3 AUTH).
WRONGPASS invalid username-password pair or user is disabled. Authentication failed. Check the user and password. ACL LOG shows recent failures with client addresses.
DENIED KiviDB is running in protected mode ... (then the connection is closed) Protected mode: no bind address was given and the default user has no password, so only clients on the same machine may connect. Set a password (requirepass, or ACL SETUSER default), give a bind address, or turn it off with protected-mode no where the network is trusted. The Docker image turns it off unless you pass arguments of your own.
NOPERM User {u} has no permissions to run the '{cmd}' command (or access the {key} key, or the {channel} channel) The ACL user may not do this. Grant it (ACL SETUSER), or use another user. ACL LOG records each refusal.
WRONGTYPE Operation against a key holding the wrong kind of value For example LPUSH on a string key. A key-naming clash between two parts of an application, usually. TYPE key shows what is there.
OOM command not allowed when used memory > 'maxmemory'. Memory is full and nothing more can be evicted. Reads still work. See the maxmemory … reached warning above.
OOM allow-oom flag is not set on the script… A script that writes was refused because memory is full. As above.
BUSY Redis is busy running a script. You can only call SCRIPT KILL or SHUTDOWN NOSAVE. (or FUNCTION KILL) A script has run longer than lua-time-limit, and holds the server. See the lua-time-limit warning above.
NOSCRIPT No matching script. Please use EVAL. EVALSHA with a script the server does not have, for example after a restart or failover. Normal: client libraries (BullMQ's ioredis, Sidekiq's redis-client) load the script and retry. Handle it if you call EVALSHA yourself.
LOADING KiviDB is loading the dataset into memory The server is starting, or rebuilding search indexes after starting. Retry with backoff. Wait for Ready to accept connections, and for the index rebuild to finish.
READONLY You can't write against a read only replica. A write went to a replica. Send writes to the master. After a failover, refresh the client's view of which node that is.
MOVED {slot} {host}:{port}, ASK {slot} {host}:{port} Cluster: the key lives on another node. Cluster-aware clients follow these on their own. A client that shows them to you is not in cluster mode.
CROSSSLOT Keys in request don't hash to the same slot Cluster: one command, script or transaction named keys in different slots. Put related keys in one slot with a hash tag: {user:42}:profile, {user:42}:cart. BullMQ does this with its {queue} prefix.
CLUSTERDOWN The cluster is down, CLUSTERDOWN Hash slot {n} is not served Cluster: no node serves the slot. See the cluster FAIL and election messages in the log.
TRYAGAIN Multiple keys request during rehashing of slot Cluster: the slot is being migrated. Retry after a short wait.
EXECABORT Transaction discarded because of previous errors., EXECABORT Transaction discarded because of: {why} A command inside MULTI was rejected when it was queued, so EXEC ran nothing. Fix the command named.
NOREPLICAS … min-replicas-to-write is set, and not enough replicas are connected. Check the replicas, or lower min-replicas-to-write.
BUSYKEY Target key name already exists. RESTORE without REPLACE, onto a key that exists. (COPY without REPLACE answers 0 instead.) Add REPLACE, or delete the key first.
BUSYGROUP Consumer Group name already exists, NOGROUP … XGROUP CREATE of a group that exists; a stream command naming a group that does not. Normal for idempotent setup code (BullMQ and others ignore BUSYGROUP). Create the group with MKSTREAM if needed.
UNBLOCKED … CLIENT UNBLOCK … ERROR ended a blocking command. Expected, if something called it.
IOERR … MIGRATE could not reach, write to or read from the target. Check the target's address and that it is up.
ERR DUMP payload version or checksum are wrong RESTORE of a payload that is damaged, or from a version whose format this one does not read. Re-export the key.
INVALIDOBJ Corrupted HLL object detected A HyperLogLog key holds bytes that are not a valid HLL. Delete it and rebuild it.
Timeout limit was reached FT.SEARCH or FT.AGGREGATE was cut short by TIMEOUT (the command's, or search-timeout / FT.CONFIG TIMEOUT when it names none; no limit unless set) and search-on-timeout / ON_TIMEOUT is fail. With return (the default) or return-strict (return_strict is the same), the reply is what was found instead — RESP3 puts this text in warning; over RESP2 the client gets no signal. Raise TIMEOUT, pass TIMEOUT 0 for no limit, or set search-on-timeout return.