1. 程式人生 > >新增redis 節點報錯[ERR] Node 127.0.0.1:6002 is not empty. Either the node already knows other nodes (check

新增redis 節點報錯[ERR] Node 127.0.0.1:6002 is not empty. Either the node already knows other nodes (check

出錯:

[ERR] Node 127.0.0.1:6002 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.
找了1個多小時的錯誤,搞得人好無奈。

解決方法:

  1. 刪除nodes-xxx.conf配置檔案,刪除該節點aof,rdb檔案,殺掉所有redis程序(注意不要這麼命名nodes.conf,正確命名:nodes-xxx.conf xxx最好是你的埠號)
  2. 重啟後,清空資料庫
    ./redis-cli -h 127.0.0.1 -p 6002


    flushdb

  3. 再次連線
    ./redis-trib.rb add-node 127.0.0.1:6002 127.0.0.1:7000

雖然可以添加了,但是隻能為slave節點,上火啊,應該是節點中還有配置沒有刪除乾淨,
網上其他方法:刪除PID檔案,aof,rdb,叢集配置檔案,在清空資料庫,在重啟叢集。
一般只會測試出現這個問題,生產不會,因為生產不會拿一個主機去新增自己,節點資訊配置不會亂

其他部落格的方法:
解決方法:
1)、將需要新增的節點下aof、rdb等本地備份檔案刪除;
2)、同時將新Node的叢集配置檔案刪除,即:刪除你redis.conf裡面cluster-config-file所在的檔案;
3)、再次新增新節點如果還是報錯,則登入新Node,./redis-cli–h x –p對資料庫進行清除:
172.168.63.201:7001> flushdb #清空當前資料庫

相關推薦

新增redis 節點[ERR] Node 127.0.0.1:6002 is not empty. Either the node already knows other nodes (check

出錯: [ERR] Node 127.0.0.1:6002 is not empty. Either the node already knows other nodes (check with

redis 叢集 建立 [ERR] Node is not empty. Either the node already knows other nodes (check with C

[[email protected] src]# ./redis-trib.rb add-node --slave --master-id4f6424e47a2275d2b7696bfbf8588e8c4c3a5b95 172.168.63.202:700117

redis建立叢集時顯示錯誤: [ERR] Node xxx is not empty. Either the node already knows other no...

純手打,轉載請附上本文網址!!! 在redis叢集配置的最後一步,使用命令報錯[ERR] Node xxx is not empty. Either the node already knows other no... redis-trib.rb create --rep

[ERR] Node is not empty. Either the node already knows other nodes (check with C

add som round des dea already not cli empty [root@node00 src]# ./redis-trib.rb add-node --slave --master-id4f6424e47a2275d2b7696bfbf8588e

Navicat for mysql 1130錯誤 用Navicat連線遠端MYSQL:ERROR 1130: Host '192.168.1.3' is not allowed to connec

Navicat for mysql 1130錯誤 用Navicat連線遠端MYSQL,提示如下錯誤,我以為是自己的防火牆問題,但是關了,依然不行。  我認為這段英文,有點誤導,讓人感覺是自己這邊出了問題。  看解決方法吧  ERROR 1130: Host '192.168.1.3' is not allo

MongoDB新增仲裁節點replica set IDs do not match辦法

背景:由於歷史原因,某個MongoDB副本集只有一主一從雙節點,無法滿足自動故障轉移要求,需要配置一個仲裁節點。 原有節點192.168.10.20:27017,192.168.10.21:27017,現在準備在20上配置一個新節點27018當做仲裁   在當前主節點上執行 repse

啟動weblogic:string value '2.4' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee

-a xsd not app b- 1.0 ring encoding ont 啟動報錯: 原因:有人改動了web.xml的頭 解決方法: 在web.xml中修改擡頭為: <?xml version="1.0" encoding="UTF-8"?> <we

iOS打包上傳ipa文件時,<ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps......>的解決方案

splay update 分享圖片 trait tin log .com bmi graphic 很長一段時間習慣了用企業級證書發布,最近的新項目使用Xcode 9.1發布到AppStore時遇到了一個小問題(emm..其實問題跟Xcode版本沒關系,我也不知道為什麽要聲明

Mysql連線:1130 - Host ‘118.111.111.111’ is not allowed to connect to this MariaDB server

      這個問題是因為在資料庫伺服器中的mysql資料庫中的user的表中沒有許可權(也可以說沒有使用者),下面將記錄我遇到問題的過程及解決的方法。   在搭建完LNMP環境後用Navicate連接出錯   遇到這個問題首先到mysql所在的伺服器上用連線進行處理

轉:springboot專案啟動Failed to configure a DataSource: 'url' attribute is not specified and no embedde

*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url'

springboot專案啟動Failed to configure a DataSource: 'url' attribute is not specified and no embedded..

*************************** APPLICATION FAILED TO START *************************** Description:

Eclipse匯入專案Type Target runtime Apache Tomcat v8.5 is not defined.

執行時沒有找到tomcat v8.5 Eclipse 右鍵--》properties--》targeted runtime,把原專案的tomcat去掉勾選,換上自己的Tomcat myEclipse 在工程目錄下的.settings資料夾裡,開啟org.eclipse.wst.com

SSH:org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [select o from User o where 1=1

Struts has detected an unhandled exception:  Messages: 1.User is not mapped [select o from User o where 1=1 order by o.id asc] 2.User is not mapped [select

redis叢集Node is not empty

叢集啟動時候遇到以下問題 [[email protected] redis-4.0.11]# ./src/redis-trib.rb create --replicas 1 192.168.164.133:7000 192.168.164.133:7001 192.168.1

redis叢集,(error) MOVED 15495 127.0.0.1:7003

節點會對命令請求進行分析和key的slot計算,並且會查詢這個命令所要處理的鍵所在的槽。如果要查詢的雜湊槽正好就由接收到命令的節點負責處理, 那麼節點就直接執行這個命令。 另一方面, 如果所查詢的槽不是由該節點處理的話, 節點將檢視自身內部所儲存的雜湊槽到節點 ID 的對映記錄, 並向客戶端回覆一個 MOVE

redis安裝

原因 list -c nbsp 知識 解決方案 tin lac http 錯誤原因大概是這個: creating server tcp listening socket 127.0.0.1:6379: bind No error 解決方案如下按順序輸入如下命令就可以連接成

MongoDB的C#驅動Server instance 127.0.0.1:27017 is no longer connected的解決方案

http bottom get lac soft onload nload on() kill 使用C#的MondoDB驅動,一直沒問題。結果最近,MongoCursor的ToList方法,取列表,總是報錯 Server instance 127.0.0.1:27017

mysql數據庫[Err] 1286 - Unknown storage engine 'InnoDB'

unknown 打開 重新 data 備註 不能 開頭 完美 日誌文件 打開 my.ini 找到 [mysqld] port=3306 basedir="D:\MySQL Server 5.5" datadir="C:/ProgramData/MySQL/MySQL Ser

關於ruby安裝在windows gem install redis-dump :MSYS2 could not be found

技術 dev 分享圖片 ould devkit gif mage ima 報錯 https://rubyinstaller.org/downloads/ ruby windows安裝地址 安裝帶devkit的這樣就自帶MSYS2 不然報錯 success 不

openstack安裝nova計算節點

req error: sta rep nova common openstac https erro Error: Package: 1:openstack-nova-compute-17.0.5-1.el7.noarch (centos-openstack-queens)