Short read or OOM loading DB. Unrecoverable error, aborting now Short read or OOM loading DB. Unrecoverable error, aborting now linux linux

Short read or OOM loading DB. Unrecoverable error, aborting now


I solved the problem like this:

rm -rf /var/lib/redis/dump.rdbrm -rf /var/run/redis.pidservice redis-server start

Then it is OK.


Cause of this error might be similar to a known one.

Your disk is full so when redis tries to create a db file it fails because there is no space left on the disk and it creates zero sized db file. Starting redis fails because of zero sized db file, in CentOS db file path is like this

/var/lib/redis/dump.rdb

In newer versions of redis this bug is fixed, if you use older version of redis simply removing dump.rdb will work for you. But do this if dump.rdb file size is zero, otherwise do not because you might lose data.