Skip to content

Troubleshooting

Valkey Admin is crashing or unresponsive with a large cluster

Section titled “Valkey Admin is crashing or unresponsive with a large cluster”

In Web/Docker mode, Valkey Admin spawns a metrics server process for each primary node in the cluster. Each process uses approximately 150 MB of RAM. If your instance doesn’t have enough memory, the app will OOM and become unresponsive.

Fix: Refer to the Resource Sizing page and ensure your instance meets the recommended spec for your cluster size. Alternatively, deploy with Kubernetes where metrics servers run as sidecars on each Valkey pod, eliminating the memory burden on the main Valkey Admin instance.


I enabled cluster slot stats and an LFU eviction policy but Valkey Admin still prompts me to start monitoring

Section titled “I enabled cluster slot stats and an LFU eviction policy but Valkey Admin still prompts me to start monitoring”

Valkey Admin checks your cluster’s eviction policy and slot stats configuration at connection time, not continuously. If you enabled allkeys-lfu or cluster-slot-stats-enabled after connecting, Valkey Admin won’t detect the change. This also applies in the reverse direction.

Fix: Delete your cluster connection(s) in Valkey Admin and reconnect. The new connection will pick up the updated configuration.


I am unable to enable cluster slot stats on Valkey

Section titled “I am unable to enable cluster slot stats on Valkey”

This option requires Valkey 8.0 or later, which introduced cluster-slot-stats-enabled. On older versions, Valkey Admin will offer monitor-based detection instead.


I just connected to my cluster and see multiple unresponsive nodes

Section titled “I just connected to my cluster and see multiple unresponsive nodes”

Fix: Metrics servers need a moment to start up after a connection is established.


Monitor or Command Logs show an error banner

Section titled “Monitor or Command Logs show an error banner”

If the Monitor or Command Log features display an error in the Activity view, the metrics server was unable to execute the required command on the connected node. Common causes:

  • The connected Valkey instance does not support the command (e.g., MONITOR is disabled or COMMANDLOG requires Valkey 8.1+)
  • The ACL user does not have permission to run the command
  • The node became unreachable after the metrics server started

The error message in the banner indicates the specific failure. If the command is unsupported by the server, the error will persist until the server version or ACL is updated.


The key browser and the distribution chart use separate sampling passes, so their counts won’t always match exactly. This is expected behavior with sampled data — each view samples independently and may pick up a slightly different cross-section of the keyspace.


Connection rejected: Invalid Database_Index: must be a non-negative integer

Section titled “Connection rejected: Invalid Database_Index: must be a non-negative integer”

The server rejected the connection because the db field on the connection payload wasn’t a non-negative integer. This typically means a hand-edited or programmatically built payload sent something like db: -1, db: 1.5, db: NaN, db: "0", or db: null. Valid values are 0, 1, 2, … up to databases - 1.

Fix: Set db to a non-negative integer and reconnect. The metrics process applies the same rule to its VALKEY_DB environment variable, where invalid values cause the process to exit with code 1. See Database Index and VALKEY_DB for the contract.


Connection rejected: Database_Index N is out of range: this server has databases = M (valid range 0..M-1)

Section titled “Connection rejected: Database_Index N is out of range: this server has databases = M (valid range 0..M-1)”

The supplied db is at or beyond the target server’s configured database count. Valkey’s databases config defaults to 16 (giving 0..15), but operators can lower or raise it. The server reads this value via CONFIG GET databases on the probe client before binding the requested database, so the bound depends on what the server is actually configured for, not a fixed constant.

Fix: Pick a db within [0, databases - 1]. To check or change the server’s bound, run CONFIG GET databases against the target node, and CONFIG SET databases <N> (or update valkey.conf / redis.conf and restart) if you need more logical databases. Note that ElastiCache and other managed services may not allow changing databases, in which case you must stay within the operator-set limit.


Connection rejected: Database_Index N is out of range: this cluster has cluster-databases = M (valid range 0..M-1)

Section titled “Connection rejected: Database_Index N is out of range: this cluster has cluster-databases = M (valid range 0..M-1)”

The cluster variant of the error above. Valkey 9.0+ clusters configure their logical database count via cluster-databases (falling back to databases when unset), and the requested db is at or beyond that count.

Fix: Pick a db within [0, cluster-databases - 1], or raise --cluster-databases <n> on every cluster node.


Connection rejected: Database_Index N is not enabled on this server (it rejected SELECT N)

Section titled “Connection rejected: Database_Index N is not enabled on this server (it rejected SELECT N)”

The server refused the SELECT issued during the connection handshake for the requested database, and the proactive range check couldn’t run beforehand — typically because CONFIG GET is denied to the connecting user (e.g. by ACL), so the app couldn’t learn the server’s configured count.

Fix: Run CONFIG GET databases (or cluster-databases for Valkey 9+ clusters) against the server with a sufficiently privileged user to see its configured count, then choose a database index below it.


Connection rejected: Cluster server version V does not support a non-zero Database_Index

Section titled “Connection rejected: Cluster server version V does not support a non-zero Database_Index”

The connection target is a cluster running a Valkey/Redis server below 9.0.0, and the request asked for a non-zero db. Multi-database cluster mode is a Valkey 9.0.0+ feature; older cluster servers only support db: 0.

Fix: Either upgrade the cluster to Valkey 9.0.0 or later, or set db: 0 for that connection. Standalone connections to the same server version are unaffected — only cluster mode is gated, because cluster servers below 9.0.0 don’t expose multiple logical databases at all. See Database Index for the full version contract.


For a list of capabilities and operational caveats that aren’t bugs (no built-in auth, no RBAC, mTLS, ElastiCache Serverless, etc.), see Known Limitations.