Redis: requirepass and masterauth

version 6.2.1

when I only set requirepass in redis.conf, and create redis cluster, the following error is raised in log:

Unexpected reply to PSYNC from master: -NOAUTH Authentication required.


16:S 27 Sep 2021 01:57:52.552 * (Non critical) Master does not understand REPLCONF capa: -NOAUTH Authentication required.
16:S 27 Sep 2021 01:57:52.552 * Partial resynchronization not possible (no cached master)
16:S 27 Sep 2021 01:57:52.556 # Unexpected reply to PSYNC from master: -NOAUTH Authentication required.
16:S 27 Sep 2021 01:57:52.556 * Retrying with SYNC...
16:S 27 Sep 2021 01:57:52.557 # MASTER aborted replication with an error: NOAUTH Authentication required.
16:S 27 Sep 2021 01:57:52.557 * Reconnecting to MASTER 10.10.10.10:9002 after failure
16:S 27 Sep 2021 01:57:52.557 * MASTER <-> REPLICA sync started
16:S 27 Sep 2021 01:57:52.557 * Non blocking connect for SYNC fired the event.
16:S 27 Sep 2021 01:57:52.558 * Master replied to PING, replication can continue...
16:S 27 Sep 2021 01:57:52.558 * (Non critical) Master does not understand REPLCONF listening-port: -NOAUTH Authentication required.
 


 

so I add requirepass and masterauth in redis.conf. no error is raised. (it seems masteruser is not need to be specified).

15:C 27 Sep 2021 02:34:52.996 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
15:C 27 Sep 2021 02:34:52.996 # Redis version=6.2.1, bits=64, commit=00000000, modified=0, pid=15, just started
15:C 27 Sep 2021 02:34:52.996 # Configuration loaded
15:M 27 Sep 2021 02:34:52.997 * monotonic clock: POSIX clock_gettime
15:M 27 Sep 2021 02:34:52.998 * No cluster configuration found, I'm 1165ecf8529acba5c209d0bc7b2f637926ed6520
15:M 27 Sep 2021 02:34:53.032 * Running mode=cluster, port=9001.
15:M 27 Sep 2021 02:34:53.032 # Server initialized
15:M 27 Sep 2021 02:34:53.033 * Ready to accept connections
15:M 27 Sep 2021 02:43:12.641 # configEpoch set to 1 via CLUSTER SET-CONFIG-EPOCH
15:M 27 Sep 2021 02:43:13.651 * Replica 172.17.0.1:9005 asks for synchronization
15:M 27 Sep 2021 02:43:13.651 * Partial resynchronization not accepted: Replication ID mismatch (Replica asked for 'd7503b1ab3f3ef981d2cda6d86fe2475cedf010f', my replication IDs are 'efa13a6699ab761b80f9471c56f7a50d4cfa789c' and '0000000000000000000000000000000000000000')
15:M 27 Sep 2021 02:43:13.651 * Replication backlog created, my new replication IDs are '037cd67b67f5408bbcf03776f277d2f93ab5af11' and '0000000000000000000000000000000000000000'
15:M 27 Sep 2021 02:43:13.651 * Starting BGSAVE for SYNC with target: disk
15:M 27 Sep 2021 02:43:13.652 * Background saving started by pid 38
38:C 27 Sep 2021 02:43:13.693 * DB saved on disk
38:C 27 Sep 2021 02:43:13.693 * RDB: 0 MB of memory used by copy-on-write
15:M 27 Sep 2021 02:43:13.765 * Background saving terminated with success
15:M 27 Sep 2021 02:43:13.766 * Synchronization with replica 172.17.0.1:9005 succeeded
15:M 27 Sep 2021 02:43:17.674 # Cluster state changed: ok
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值