Redis Server Failure when server starts
Asked Answered
N

4

11

When I start redis on OSX, it exits because it says it can't handle RDB format version 7. Here's the output:

Server started, Redis version 3.0.7
Can't handle RDB format version 7
Fatal error loading the DB: Invalid argument. Exiting.

The redis gem version in the gemfile was 3.2.2, but I changed it to 3.0.7 to see if that would make it work. It didn't.

How do I fix this? I don't have anything important in there so I'm fine with resetting it to another version or uninstall and reinstall redis.

Nanci answered 1/10, 2016 at 17:36 Comment(4)
Simply delete the dump.rdb file - it is incompatible with the version that you're runningTace
where to find this file?Shu
@ArunGowda It is here on Win10 - C:\Program Files\RedisMarvelous
@ArunGowda In Linux, type "CONFIG get dir" in redis-cli prompt to get location detail. Default location will be "/var/lib/redis"Hughie
T
12

I SOLVED the problem by deleting the /home/marco/dump.rdb file from redis folder.

Tajuanatak answered 3/1, 2020 at 11:11 Comment(2)
I too deleted my dump.rdb file from Redis folder and it worked for me.Marvelous
A location for dump.rdb could be found in /etc/redis/redis.conf, search for "dir", a working directory. For me it was /var/lib/redis/ on Ubuntu and deleting dump.rdb got me over this error.Extrorse
N
2

Thanks Itamar. I ended up uninstalling and reinstalling via Homebrew. That was easiest solution for me since I didn't have any important info in the db.

 brew uninstall redis
 brew install redis 

3.0.x is incompatible with 3.2.x so upgrading to 3.2.4 fixed it for me.

Nanci answered 2/10, 2016 at 21:13 Comment(0)
R
2

I had this in docker upon changing redis versions. Had to completely stop the container and remove volumes and restart it.

docker-compose.yml

services:
  redis:
    image: redis:6.2.6-alpine
docker-compose down -v redis
docker-compose up redis
Rosauraroscius answered 2/2, 2023 at 15:0 Comment(1)
docker-compose down fixed it for meOrelle
F
1

The same issue happened to me on 6.2.4 & I solved using this process

  1. Search the Dump.rdb file

    sudo find / -name *.rdb

For Ubuntu20 You'll find it under /var/lib/redis/dump.rdb

  1. Delete the file dump.rdb

    sudo rm /var/lib/redis/dump.rdb

  2. Restart Redis & Check the Status

    sudo systemctl restart redis-server

    systemctl status redis-server.service

Fluoresce answered 2/8, 2022 at 8:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.