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…


  • 6
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

姠惢荇者

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值