How to Fix Redis Error: Node 192.168.0.201:7001 Is Not Empty

Fix Redis Cluster Startup Error: Node Not Empty

[ERR] Node 192.168.0.201:7001 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.

Using my version 3.2.6 as an example, here’s how to fix it: Shut down the cluster (usually already down), and delete the following files before restarting each machine.

rm -rf dump.rdb         # Adjust the path to your actual path
rm -rf nodes-70*       # Adjust the path to your actual path

Restart each instance:

redis-server cluster/7001/redis.conf  # Adjust the path to your own
redis-server cluster/7002/redis.conf  # Adjust the path to your own
redis-server cluster/700n…

Create the cluster (adjust the IPs and ports to your own):

redis-trib.rb  create  –replicas  1  192.168.0.201:7001 192.168.0.201:7002   192.168.0.201:7003  192.168.0.202:7004   192.168.0.202:7005 192.168.0.202:7006

If you see the following output, the operation was successful:

Leave a Comment

Your email address will not be published.