您现在的位置是: 首页 > 运维 Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
2020-05-21 【运维】 5698人已围观 9282次浏览
简介Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
在使用 Redis 的过程中提示下面的报错信息
org.springframework.data.redis.RedisSystemException: Error in execution;
nested exception is io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.
Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option).
Please check the Redis logs for details about the RDB error.\norg.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.
Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error
大致意思就是说
Redis配置为保存RDB快照,但它当前无法在磁盘上持久化。可以修改数据集的命令被禁用,因为此实例配置为在RDB快照失败时报告写入期间的错误(停止对bgsave error的写入选项)
原因是因为强制关闭 Redis 快照导致不能持久化(之前部署Redis的机器断电过,猜测是因为这个导致的)
解决方案就是重启Redis后,登录进去,将stop-writes-on-bgsave-error设置为no
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
但需要注意的是,执行这个命令只能暂时解决无法 set 的问题,具体的问题还是要看 Redis 的 log 信息详细排查错误才行
很赞哦! (0)
相关文章
- Docker 批量操作命令
- Windows CMD 常用命令
- sentinel directive while not in sentinel mode 问题解决
- LNMP定时备份任务教程(支持排除指定文件夹)
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- Linux no space left on device 出现设备上没有空间问题
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
- 解决443端口被VMWare Workstation占用
- Oracle ORA-12541:TNS:no listener错误解决方法
- linux下各文件夹的结构说明及用途介绍
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- npm 出现 Unexpected token < in JSON at position 21330
- win10 cmd下运行python命令弹出windows应用商店问题
- 解决Mac突然没声音的问题
- Oracle ORA-12541:TNS:no listener错误解决方法
- SpringBoot 定时任务 多线程
- mysql 索引过长1071-max key length is 767 byte
- 删除Git仓库所有历史提交记录,成为一个干净的仓库
- Chrome 谷歌浏览器清除HTTPS证书缓存
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- SpringBoot 2.x Security security.basic.enabled=false 失效问题解决