解决redis磁盘满了无法持久化错误not able to persist on disk

今天,不少开发同事反馈给我,dev环境启动应用连接redis时,发生如下异常:

2017-06-19 17:10:01,479 ERROR 725476 --- [pool-4-thread-1] [o.s.s.s.TaskUtils$LoggingErrorHandler   ] [org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler:95] : [1989115370671066272] Unexpected error occurred in scheduled task.
org.springframework.dao.InvalidDataAccessApiUsageException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.; nested exception is redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
at org.springframework.data.redis.connection.jedis.JedisExceptionConverter.convert(JedisExceptionConverter.java:44) ~[spring-data-redis-1.6.4.RELEASE.jar:na]
at org.springframework.data.redis.connection.jedis.JedisExceptionConverter.convert(JedisExceptionConverter.java:36) ~[spring-data-redis-1.6.4.RELEASE.
……
Caused by: redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
at redis.clients.jedis.Protocol.processError(Protocol.java:117) ~[jedis-2.8.0.jar:na]
at redis.clients.jedis.Protocol.process(Protocol.java:151) ~[jedis-2.8.0.jar:na]
at redis.clients.jedis.Protocol.read(Protocol.java:205) ~[jedis-2.8.0.jar:na]
at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:297) ~[jedis-2.8.0.jar:na]
at redis.clients.jedis.Connection.getIntegerReply(Connection.java:222) ~[jedis-2.8.0.jar:na]
at redis.clients.jedis.BinaryJedis.del(BinaryJedis.java:201) ~[jedis-2.8.0.jar:na]
at org.springframework.data.redis.connection.jedis.JedisConnection.del(JedisConnection.java:726) ~[spring-data-redis-1.6.4.RELEASE.jar:na]
... 30 common frames omitted

 

在以上这段错误信息中,关键错误信息:MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.  大致含义已经很明确了,提取关键字,保存快照,不能持久化,那为什么不能持久化呢?

 

 

于是找到运维排查机器硬盘存储空间是否满了,果然,还真是硬盘内存满了,导致持久化保存快照时,发生异常。

 

解决方法: 增加磁盘存储空间,或者清理磁盘,留出足够硬盘空间,即可解决。

 

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值