首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

REdis MASTER aborted replication NOAUTH Authentication required

对于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

02
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Redis介绍及CentOS 7安装redis 4.0详细步骤

    Redis是一个开源(BSD许可)的内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。由于Redis采用运行在内存中的数据集工作方式,其性能卓越,能支持超过100K+每秒的读写频率。它支持多种类型的数据结构,如字符串(strings), 散列(hashes),列表(lists),集合(sets),有序集合(sorted sets)与范围查询和地理空间(geospatial)索引半径查询。Redis内置了复制(replication), LUA脚本(Lua scripting),LRU淘汰机制,事务实现(transactions),发布订阅(publish/subscribe)和不同级别的磁盘持久化(persistence)等能力, 并通过Redis哨兵(Sentinel)和自动分区(Cluster)提供高可用性(high availability)。

    02

    记一次请求头header丢失问题排查实录

    前端小王需要调用兄弟部门老张的后端接口,老张提供的接口,需要token鉴权才能调用成功。当小王按约定携带token调用老张的接口时,起先因为跨域问题,导致前端小王没法成功请求老张的接口。于是小王就跟老张说,能不能他那边配置下允许跨域。但小王是一个很有原则的人,他说这个接口是要给N个部门调用的,不可能给这些调用部门都配置允许跨域,不然口子一旦开了,后面就没完没了,他让小王自己想办法解决跨域。后面小王就把事情向上反馈,小王的领导就跟小王说,我们自己搭个反向代理,通过反向代理解决跨域问题。本文的素材就是来源于此次搭建反向代理后,发生的故事

    02

    记一次请求头header丢失问题排查实录

    前端小王需要调用兄弟部门老张的后端接口,老张提供的接口,需要token鉴权才能调用成功。当小王按约定携带token调用老张的接口时,起先因为跨域问题,导致前端小王没法成功请求老张的接口。于是小王就跟老张说,能不能他那边配置下允许跨域。但小王是一个很有原则的人,他说这个接口是要给N个部门调用的,不可能给这些调用部门都配置允许跨域,不然口子一旦开了,后面就没完没了,他让小王自己想办法解决跨域。后面小王就把事情向上反馈,小王的领导就跟小王说,我们自己搭个反向代理,通过反向代理解决跨域问题。本文的素材就是来源于此次搭建反向代理后,发生的故事

    02
    领券