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
随机推荐
- LR基本知识学习
性能测试基础 本质:基于 协议 模拟用户发请求,对服务器形成一定的负载,来测试服务器的性能指标是否满足要求,与界面无关 * 时间 * 空间 分类: 性能(狭义):特定条件下,验证 系统是否有宣称具有 ...
- 项目(九) 企业级Memcached服务应用实践
一, Memcached介绍 1.1 Memcached与常见同类软件对比 (1)Memcached是什么? Memcached是一个开源的,支持高性能,高并发的分布式内存缓存系统,由C语言编写, ...
- conda 常用命令
conda search --full --name python conda update -n base conda //update最新版本的conda conda create -n xxxx ...
- 计算kdj
import pandas as pd def KDJ_K(df,n=9): df['highest'] = df['high'].rolling(n).max() df['lowest' ...
- mybatis出现无效的列类型
package com.webapp.hanqi.test; import java.util.Date; import org.junit.jupiter.api.AfterEach; import ...
- 【iOS】値の判断
NSString str; ){ //nilの判断 //nullの判断 //長さの判断 // ...... }
- svn 恢复删除文件
参考这个 https://blog.csdn.net/qdujunjie/article/details/37766167
- yii2 模板twig中使用GridView::widget
yii框架twig模板中使用GridView::widget 需要这样写: {{ grid_view_widget({ 'dataProvider': provider, 'columns': [ ' ...
- python 的xlwt模块
一.安装 ♦ python官网下载https://pypi.python.org/pypi/xlwt模块安装. ♦或者在cmd窗口 pip install xlrd 二.使用 1.导入模块 imp ...
- MyCP -tx -xt 功能的Java实现
MyCP -tx -xt 功能的Java实现 功能简介 java MyCP -tx XXX1.txt XXX2.bin 用来把文本文件(内容为十进制数字)转化为二进制文件 java MyCP -xt ...