MASTER aborted replication with an error: NOAUTH Authentication required.

导读:本篇文章讲解 MASTER aborted replication with an error: NOAUTH Authentication required.,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com

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…


版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/68851.html

(0)
小半的头像小半

相关推荐

极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!