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…


发布了71 篇原创文章 · 获赞 3 · 访问量 5264

猜你喜欢

转载自blog.csdn.net/hou_ge/article/details/104639396