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

来源:互联网 发布:淘宝商品被降权怎么办 编辑:程序博客网 时间:2024/06/08 01:21

今天,不少开发同事反馈给我,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.  大致含义已经很明确了,提取关键字,保存快照,不能持久化,那为什么不能持久化呢?


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


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


阅读全文
0 0
原创粉丝点击