Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redis Server Failure when server starts

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.

like image 763
HoodieOnRails Avatar asked Oct 01 '16 17:10

HoodieOnRails


People also ask

What causes Redis to crash?

Memory overflow can cause the Redis service to crash. During peak time, the Redis service may require more memory than what is currently allocated.

What if Redis server goes down?

When Redis goes down, you have to deal with it. It is the same as if your file system is gone or your SQL Server is down. A lot of those systems disable all writes and set their cluster in maintenance state.

How long does a Redis connection last?

From version 3.2 onwards, Redis has TCP keepalive ( SO_KEEPALIVE socket option) enabled by default and set to about 300 seconds.


2 Answers

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

like image 138
Khushali Avatar answered Oct 17 '22 22:10

Khushali


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.

like image 32
HoodieOnRails Avatar answered Oct 17 '22 20:10

HoodieOnRails