前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >REdis MASTER aborted replication NOAUTH Authentication required

REdis MASTER aborted replication NOAUTH Authentication required

作者头像
一见
发布2019-05-07 14:39:04
1.7K0
发布2019-05-07 14:39:04
举报
文章被收录于专栏:蓝天蓝天

对于REdis集群,如果设置了requirepass, 则一定要设置masterauth,否则从节点无法正常工作,查看从节点日志可以看到哪下内容: 19213:S 22 Apr 2019 10:52:17.389 * Connecting to MASTER 1.6.18.16:2181 19213:S 22 Apr 2019 10:52:17.389 * MASTER <-> REPLICA sync started 19213:S 22 Apr 2019 10:52:17.389 * Non blocking connect for SYNC fired the event. 19213:S 22 Apr 2019 10:52:17.390 * Master replied to PING, replication can continue... 19213:S 22 Apr 2019 10:52:17.390 * (Non critical) Master does not understand REPLCONF listening-port: -NOAUTH Authentication required. 19213:S 22 Apr 2019 10:52:17.390 * (Non critical) Master does not understand REPLCONF capa: -NOAUTH Authentication required. 19213:S 22 Apr 2019 10:52:17.390 * Partial resynchronization not possible (no cached master) 19213:S 22 Apr 2019 10:52:17.390 # Unexpected reply to PSYNC from master: -NOAUTH Authentication required. 19213:S 22 Apr 2019 10:52:17.390 * Retrying with SYNC... 19213:S 22 Apr 2019 10:52:17.390 # MASTER aborted replication with an error: NOAUTH Authentication required. 正常时的日志如下: 37706:S 22 Apr 2019 10:59:13.125 * Connecting to MASTER 1.6.18.16:2181 37706:S 22 Apr 2019 10:59:13.125 * MASTER <-> REPLICA sync started 37706:S 22 Apr 2019 10:59:13.125 * Non blocking connect for SYNC fired the event. 37706:S 22 Apr 2019 10:59:13.125 * Master replied to PING, replication can continue... 37706:S 22 Apr 2019 10:59:13.125 * Trying a partial resynchronization (request d2aeb271d9f4974e71487e5dac86e6e8c70c025e:1). 37706:S 22 Apr 2019 10:59:13.126 * Full resync from master: 884f5964d7eff95277ecb6d594ff4dd78b7eb900:0 37706:S 22 Apr 2019 10:59:13.126 * Discarding previously cached master state. 37706:S 22 Apr 2019 10:59:13.165 * MASTER <-> REPLICA sync: receiving 175 bytes from master 37706:S 22 Apr 2019 10:59:13.165 * MASTER <-> REPLICA sync: Flushing old data 37706:S 22 Apr 2019 10:59:13.165 * MASTER <-> REPLICA sync: Loading DB in memory 37706:S 22 Apr 2019 10:59:13.165 * MASTER <-> REPLICA sync: Finished with success 37706:S 22 Apr 2019 10:59:13.165 * Background append only file rewriting started by pid 37729 实际上redis.conf有明确说明: # If the master is password protected (using the "requirepass" configuration # directive below) it is possible to tell the replica to authenticate before # starting the replication synchronization process, otherwise the master will # refuse the replica request. # # masterauth

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-04-22 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档