microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http://redis.io
Other
20.81k stars 5.37k forks source link

"Background saving error" after upgrade from 2.8.2101 to 2.8.2400 #461

Closed jaccus closed 8 years ago

jaccus commented 8 years ago

Getting the following sequence repeating in my redis log file after upgrade 2.8.2101 to 2.8.2400:

[48668] 18 May 13:12:47.069 * 10000 changes in 60 seconds. Saving...
[48668] 18 May 13:12:47.074 * Background saving started by pid 31360
[48668] 18 May 13:12:47.777 # fork operation complete
[48668] 18 May 13:12:47.788 # Background saving error
[48668] 18 May 13:12:53.005 * 10000 changes in 60 seconds. Saving...
[48668] 18 May 13:12:53.009 * Background saving started by pid 8320
[48668] 18 May 13:12:53.712 # fork operation complete
[48668] 18 May 13:12:53.727 # Background saving error
[48668] 18 May 13:12:59.049 * 10000 changes in 60 seconds. Saving...
[48668] 18 May 13:12:59.053 * Background saving started by pid 828
[48668] 18 May 13:12:59.755 # fork operation complete
[48668] 18 May 13:12:59.768 # Background saving error
[48668] 18 May 13:13:05.085 * 10000 changes in 60 seconds. Saving...
[48668] 18 May 13:13:05.090 * Background saving started by pid 50880
[48668] 18 May 13:13:05.792 # fork operation complete
[48668] 18 May 13:13:05.805 # Background saving error

Keeps repeating, never succeeds.

Bug? Breaking change? Misconfiguration? Thanks

enricogior commented 8 years ago

Hi @jaccus is the error always occurring or are there some background saves that succeed?

jaccus commented 8 years ago

It never succeeds, log keeps repeating every ~6 seconds (updated description).

enricogior commented 8 years ago

@jaccus what are the values of the maxmemory, maxheap flags?

jaccus commented 8 years ago

maxmemory 262144000 maxheap // not configured

jaccus commented 8 years ago

Connected with redis-cli. Getting:

ping (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Ple ase check Redis logs for details about the error.

jaccus commented 8 years ago

had

save 900 1 save 300 10 save 60 10000

Deleted all my *.rdb files and it works.

Are rdb files not compatible between minor version upgrades?

enricogior commented 8 years ago

@jaccus nope, the rdb files are supposed to be compatible. The problem with the error log is that it doesn't report a more detailed information, therefore it's difficult to understand what may have caused it.

enricogior commented 8 years ago

Hi @jaccus a critical bug fix has just been released, it solves a problem similar to the one you reported. Please upgrade to 2.8.2401. If the problem persists, please reopen the issue. Thank you.

enricogior commented 8 years ago

@jaccus update: the latest release is 2.8.2402. Sorry about the double release in one day. Thank you.