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 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 <master-password>
REdis MASTER aborted replication NOAUTH Authentication required的更多相关文章
- Redis报错 : (error) NOAUTH Authentication required.
原文:Redis报错 : (error) NOAUTH Authentication required. 这个错误是因为没有用密码登陆认证 , 先输入密码试试 . 127.0.0.1:6379> ...
- redis出现错误:NOAUTH Authentication required.
出现认证问题,应该是设置了认证密码,输入密码既可以啦 注意密码是字符串形式! 127.0.0.1:6379> auth "yourpassword" 127.0.0.1:63 ...
- Redis 突然报错 NOAUTH Authentication required
查找相关资料,说是添加了密码 只需要在redis的配置文件redis.conf中开启requirepass就可以了,比如我设置我的访问密码是mypassword requirepass mypassw ...
- Redis服务停止报错解决方案[NOAUTH Authentication required]
Redis服务器设置密码后,使用service redis stop 会出现以下信息: service redis stop Stopping ... OK (error) NOAUTH Authen ...
- redis安全 (error) NOAUTH Authentication required
Redis 安全 我们可以通过 redis 的配置文件设置密码参数,这样客户端连接到 redis 服务就需要密码验证,这样可以让你的 redis 服务更安全. 实例 我们可以通过以下命令查看是否设置了 ...
- Redis NOAUTH Authentication required
redis设置密码后停止服务报错,NOAUTH Authentication required 可以修改/etc/init.d/redis文件中的stop命令 $CLIEXEC -p $REDISPO ...
- Redis (error) NOAUTH Authentication required.
首先查看redis设置密码没 127.0.0.1:6379> config get requirepass 1) "requirepass" 2) "" ...
- {Redis}NOAUTH Authentication required. Linux.cenOS
问题 [root@VM_0_12_centos redis]# ./bin/redis-cli -p 6379 127.0.0.1:6379> INFO NOAUTH Authenticatio ...
- redis 执行操作时提示(error) NOAUTH Authentication required.
(error) NOAUTH Authentication required. 出现认证问题,设置了认证密码,输入密码即可 127.0.0.1:6379> auth 123456
随机推荐
- TS和C#的差异
1. TS中let a : () => void; 假设有个class B, B里有个方法 c; 不能像C#委托一样, a = B.c;...........如果这样的话方法c里调用的thi ...
- ThingJS平台制作第一人称视角下的巡更效果
今天想要做一个类似巡更的过程,就像是在学校保安巡更,小区保安巡更一样.巡更需要用到相应的场景,比如说:园区.学校.超市以及工厂等等,然后需要规划好路线也就是巡更的路线,并且视角要跟随路线来变换,从而达 ...
- css3+html5特效-向上滑动
css+html5特效-向上滑动 效果描述:切换的下拉和上拉状态 鼠标悬浮:下拉鼠标离开:上拉 /*外容器设置*/ .box1{position:relative;top:100px;left:100 ...
- pandas 中有关isin()函数的介绍,python中del解释
- flask debug 模式开启
debug 模式开启 最近在写python flask 的Waf后台管理界面,想要启用调试模式,发现安装目前网上流行的两种方式均无法在我的Pycharm中打开调试模式. )直接在对象上设置 app.d ...
- 12.Redis运维点
12.Redis运维点12.1 Linux配置优化12.1.1 内存分配控制12.1.2 swappiness12.1.3 THP12.1.4 OOM killer12.1.5 使用NTP12.1.6 ...
- 字符模式console usb串口安装centos
黄色部分是使用console口安装centos需要使用text模式,可以参考前文,同时镜像路径也是需要指定的,来自/dev/sda4 U盘 setparams 'Install CentOS 7' l ...
- HTML-CSS背景渐进色
一.分类 a>线性渐变:颜色沿着一条直线过度:从 左到右.从上到下等: b>径向渐变:圆形或椭圆形渐变,颜色不再沿着一条直线变化,而是从一个起点朝所有方向混合. 1.线性渐变语法: bac ...
- [转]windows中断与共享的连接(samba)
问题:window下当成功登录到samba服务器上的共享的目录的时候,若要是再系想登录此服务器上另外一个共享目录时,会弹出登录窗口. 但是不管输入的用户名和密码对错都会提示. “不允许一个用户使用一个 ...
- vue的一些注意点
每个 Vue 实例都会代理其 data 对象里所有的属性. 注意只有这些被代理的属性是响应的.如果在实例创建之后添加新的属性到实例上,它不会触发视图更新. 除了 data 属性,Vue实例暴露了一些有 ...