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

Source: Internet
Author: User
Tags redis



[Email protected] src]#/redis-trib.rb add-node--slave--master-id4f6424e47a2275d2b7696bfbf8588e8c4c3a5b95 172.168.63.202:7001172.168.63.202:7000


......






[OK] All nodes agree about Slotsconfiguration.



>>> Check for open Slots ...



>>> Check Slots Coverage ...



[OK] All 16384 slots covered.



Connecting to Node 172.168.63.202:7001:ok



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



Workaround:



1) Delete the local backup files such as aof and rdb under the newly added nodes;

2) Delete the cluster configuration file of the new Node at the same time, that is, delete the file where the cluster-config-file is located in your redis.conf;

3), add a new node again If you still report an error, log in to the new Node, ./redis-cli–h x –p to clear the database:

172.168.63.201:7001> flushdb #Clear the current database


After executing the script by 1), 2) or 3) in the above solution, the script is successfully executed;



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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.