Search code examples
linuxrediscentos

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


After restating my server I am not able to start the redis. From the log I found this message "Short read or OOM loading DB. Unrecoverable error, aborting now.". I am new to redis and don't know what to do to resolve the issue. Also I am not able to find any solid solution for this. Please help


Solution

  • Warning: This will permanently delete your database. Use only if you don't care about the data stored or if you have a backup.

    I solved the problem like this:

    rm -rf /var/lib/redis/dump.rdb
    rm -rf /var/run/redis.pid
    service redis-server start
    

    Then it is OK.