redis集群:MASTER aborted replication with an error: NOAUTH Authentication required.
发现个问题:redis集群所在服务器,磁盘空间很快就被占满,使用 “du -sh *”查看每个文件夹的大小,发现redis集群三个从节点的日志文件占用空间很大。
下面记录问题排查及解决办法:
1. redis集群从节点日志文件

2. 查看redis集群从节点日志文件信息
32947:S 12 Dec 2022 11:12:17.970 * Retrying with SYNC...
32947:S 12 Dec 2022 11:12:17.970 # MASTER aborted replication with an error: NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.970 * Reconnecting to MASTER 192.168.0.120:6691 after failure
32947:S 12 Dec 2022 11:12:17.970 * MASTER <-> REPLICA sync started
32947:S 12 Dec 2022 11:12:17.970 * Non blocking connect for SYNC fired the event.
32947:S 12 Dec 2022 11:12:17.970 * Master replied to PING, replication can continue...
32947:S 12 Dec 2022 11:12:17.970 * (Non critical) Master does not understand REPLCONF listening-port: -NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.970 * (Non critical) Master does not understand REPLCONF capa: -NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.970 * Partial resynchronization not possible (no cached master)
32947:S 12 Dec 2022 11:12:17.971 # Unexpected reply to PSYNC from master: -NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.971 * Retrying with SYNC...
32947:S 12 Dec 2022 11:12:17.971 # MASTER aborted replication with an error: NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.971 * Reconnecting to MASTER 192.168.0.120:6691 after failure
32947:S 12 Dec 2022 11:12:17.971 * MASTER <-> REPLICA sync started
32947:S 12 Dec 2022 11:12:17.971 * Non blocking connect for SYNC fired the event.
32947:S 12 Dec 2022 11:12:17.971 * Master replied to PING, replication can continue...
32947:S 12 Dec 2022 11:12:17.971 * (Non critical) Master does not understand REPLCONF listening-port: -NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.971 * (Non critical) Master does not understand REPLCONF capa: -NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.971 * Partial resynchronization not possible (no cached master)
32947:S 12 Dec 2022 11:12:17.971 # Unexpected reply to PSYNC from master: -NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.971 * Retrying with SYNC...
32947:S 12 Dec 2022 11:12:17.971 # MASTER aborted replication with an error: NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.971 * Reconnecting to MASTER 192.168.0.120:6691 after failure
32947:S 12 Dec 2022 11:12:17.971 * MASTER <-> REPLICA sync started
32947:S 12 Dec 2022 11:12:17.971 * Non blocking connect for SYNC fired the event.
32947:S 12 Dec 2022 11:12:17.971 * Master replied to PING, replication can continue...
32947:S 12 Dec 2022 11:12:17.971 * (Non critical) Master does not understand REPLCONF listening-port: -NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.971 * (Non critical) Master does not understand REPLCONF capa: -NOAUTH Authentication required.
32947:S 12 Dec 2022 11:12:17.971 * Partial resynchronization not possible (no cached master)
32947:S 12 Dec 2022 11:12:17.971 # Unexpected reply to PSYNC from master: -NOAUTH Authentication required.
3. 问题原因
原因是master节点设置了密码,而在从节点的配置中,没有配置masterauth参数导致的。

当进行主从配置的时候,如果master节点开启了安全机制并设置了密码的话,就需要在从节点配置文件中配置masterauth参数,该参数就是master节点的密码(即master节点中requirepass参数的值),否则的话,master节点会拒绝同步请求。redis一直抛异常,文件不断增大,直至磁盘空间占满。
4. 解决办法
三个从节点的masterauth参数均配置密码后,重启redis集群,问题解决。

redis集群:MASTER aborted replication with an error: NOAUTH Authentication required.的更多相关文章
- redis安全 (error) NOAUTH Authentication required
Redis 安全 我们可以通过 redis 的配置文件设置密码参数,这样客户端连接到 redis 服务就需要密码验证,这样可以让你的 redis 服务更安全. 实例 我们可以通过以下命令查看是否设置了 ...
- Redis报错 : (error) NOAUTH Authentication required.
原文:Redis报错 : (error) NOAUTH Authentication required. 这个错误是因为没有用密码登陆认证 , 先输入密码试试 . 127.0.0.1:6379> ...
- Redis (error) NOAUTH Authentication required.
首先查看redis设置密码没 127.0.0.1:6379> config get requirepass 1) "requirepass" 2) "" ...
- Redis集群master选举时长测试
在一台物理机上启动6个Redis实例,组成3主3从集群,端口号依次为:1379 ~ 1384,端口号1379.1380和1384三个为master,端口1379的进程ID为17620.现将进程1762 ...
- Redis (error) NOAUTH Authentication required.解决方法
当设置redis密码后,打开客户端,需要使用密码验证 auth 123456 就是设置的密码
- redis 执行操作时提示(error) NOAUTH Authentication required.
(error) NOAUTH Authentication required. 出现认证问题,设置了认证密码,输入密码即可 127.0.0.1:6379> auth 123456
- Redis报(error) NOAUTH Authentication required.问题解决
启动后 输入auth+空格+密码 ok
- REdis MASTER aborted replication NOAUTH Authentication required
对于REdis集群,如果设置了requirepass,则一定要设置masterauth,否则从节点无法正常工作,查看从节点日志可以看到哪下内容:19213:S 22 Apr 2019 10:52:17 ...
- 在windows上搭建redis集群
一 所需软件 Redis.Ruby语言运行环境.Redis的Ruby驱动redis-xxxx.gem.创建Redis集群的工具redis-trib.rb 二 安装配置redis redis下载地址 ...
- docker 实现redis集群搭建
摘要:接触docker以来,似乎养成了一种习惯,安装什么应用软件都想往docker方向做,今天就想来尝试下使用docker搭建redis集群. 首先,我们需要理论知识:Redis Cluster是Re ...
随机推荐
- 2020-10-04:java中GC Root 对象有哪些?
福哥答案2020-10-04:#福大大架构师每日一题# 简单回答:1.局部变量.2.静态引用的对象.3.常量引用的对象.4.JNI引用的对象. 中级回答:1.虚拟机栈(栈帧中的本地变量表)中引用的对象 ...
- 2021-02-17:规定1和A对应、2和B对应、3和C对应...26和Z对应,那么一个数字字符串比如"111”就可以转化为:"AAA"、"KA"和"AK"。给定一个只有数字字符组成的字符串str,请问有多少种转化结果?
2021-02-17:规定1和A对应.2和B对应.3和C对应...26和Z对应,那么一个数字字符串比如"111"就可以转化为:"AAA"."KA&qu ...
- 【CF】Round #618 div2 C(文末有技巧)
目录 round #618 div2 C(文末有技巧) 题目: 样例输入输出 思路 小技巧(拿小本本记下来) round #618 div2 C(文末有技巧) 这是题目链接->链接 题目: 原题 ...
- 【python基础】新建/运行python项目
1.新建python项目 在编写程序之前,我们需要新建一个项目(Project),在桌面双击PyCharm的快捷方式,等待片刻,打开如下所示的软件界面.点击New Project 在弹出的对话框中,需 ...
- C#识别文字内容并分类输出0和1
这个代码最开始是为了处理在调查问卷的结果,问卷星等调查问卷有一部分是用汉字描述的多选题,问卷系统在输出问卷的时候直接就是将汉字进行输出,而我们在进行数据分析(二元logistic或多项logistic ...
- html+css实现二级导航栏效果,简单易看懂噢!
这应该是这几天以来看到的最简单易懂的有二级菜单栏的导航栏效果实现了 使用html+css实现,看了好几天导航栏的实现方式,要么是太复杂的需要JS或者框架的,要么是太简单仅仅使用div和超链接的, 再要 ...
- 生物信息培训之WGCNA-权重基因共表达网络分析
本文分享自微信公众号 - 生信科技爱好者(bioitee).如有侵权,请联系 support@oschina.cn 删除.本文参与"OSC源创计划",欢迎正在阅读的你也加入,一起分 ...
- jenkins中的坑_CreateProcess error=1392
环境:windows11,jdk1.8,jenkins_2.346.war 起因 最近在使用jenkins部署项目的时候,填写仓库的url地址时,发现填完后报500这个错误,于是我打开jenkins的 ...
- java匿名内部类的初解
java原生态中的匿名内部类 1.匿名内部类的定义 使用匿名内部类的两种的方法 建立父类,重写父类的方法 实现接口的方法 2.普通类的实现 1. 普通类实现 实现普通类需要先声明对一个类的对象,再调用 ...
- 【HarmonyOS】【ArkTS】如何使用HTTP网络请求获取动态数据刷新UI界面
[关键字] HttpRequest.ArkTS.网络数据请求.@ohos.net.http [前言] 在使用ArkTS开发HarmonyOS应用时,需要调用HTTP网络请求 @ohos.net.h ...