MASTER aborted replication with an error: NOAUTH Authentication required.

MASTER aborted replication with an error: NOAUTH Authentication required.

  如果在進行Redis主從配置的時候,出現這樣的報錯,一般原因是因爲master節點設置了密碼,而在從節點的配置中,沒有配置masterauth參數導致的。具體如下:
在這裏插入圖片描述
  根據上面的截圖我們可以知道,當進行主從配置的時候,如果master節點開啓了安全機制並設置了密碼的話,就需要在從節點配置文件中配置masterauth參數,該參數就是master節點的密碼(即master節點中requirepass參數的值),否則的話,master節點會拒絕同步請求。
  詳細的報錯信息,如下所示:

``
29162:S 03 Mar 2020 19:28:13.780 * Before turning into a replica, using my master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer.
29162:S 03 Mar 2020 19:28:13.780 * Ready to accept connections
29162:S 03 Mar 2020 19:28:13.780 * Connecting to MASTER 192.168.0.182:7010
29162:S 03 Mar 2020 19:28:13.780 * MASTER <-> REPLICA sync started
29162:S 03 Mar 2020 19:28:13.780 * Non blocking connect for SYNC fired the event.
29162:S 03 Mar 2020 19:28:13.780 * Master replied to PING, replication can continue…
29162:S 03 Mar 2020 19:28:13.780 * (Non critical) Master does not understand REPLCONF listening-port: -NOAUTH Authentication required.
29162:S 03 Mar 2020 19:28:13.780 * (Non critical) Master does not understand REPLCONF capa: -NOAUTH Authentication required.
29162:S 03 Mar 2020 19:28:13.780 * Trying a partial resynchronization (request b0e913c5dbaa12228dcaa008afc7e93c69d0fe9e:1).
29162:S 03 Mar 2020 19:28:13.780 # Unexpected reply to PSYNC from master: -NOAUTH Authentication required.
29162:S 03 Mar 2020 19:28:13.780 * Discarding previously cached master state.
29162:S 03 Mar 2020 19:28:13.780 * Retrying with SYNC…
29162:S 03 Mar 2020 19:28:13.780 # MASTER aborted replication with an error: NOAUTH Authentication required.
29162:S 03 Mar 2020 19:28:14.782 * Connecting to MASTER 192.168.0.182:7010
29162:S 03 Mar 2020 19:28:14.782 * MASTER <-> REPLICA sync started
29162:S 03 Mar 2020 19:28:14.782 * Non blocking connect for SYNC fired the event.
29162:S 03 Mar 2020 19:28:14.782 * Master replied to PING, replication can continue…


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章