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.
Memory overflow can cause the Redis service to crash. During peak time, the Redis service may require more memory than what is currently allocated.
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.
From version 3.2 onwards, Redis has TCP keepalive ( SO_KEEPALIVE socket option) enabled by default and set to about 300 seconds.
I SOLVED the problem by deleting the /home/marco/dump.rdb file from redis folder.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With