Hi. Sorry for my english. I have this issue with FreeBSD server.
When my admins start redis, it starts ok and i see this in log every 5-6 minutes
30965:M 11 Dec 15:05:04.687 # Server started, Redis version 3.0.5
30965:M 11 Dec 15:05:04.907 * DB loaded from disk: 0.220 seconds
30965:M 11 Dec 15:05:04.907 * The server is now ready to accept connections on port 6379
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.0.5 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 32201
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
32201:M 11 Dec 15:07:13.558 # Server started, Redis version 3.0.5
32201:M 11 Dec 15:07:13.558 * The server is now ready to accept connections on port 6379
32201:M 11 Dec 15:12:14.075 * 1000 changes in 300 seconds. Saving...
32201:M 11 Dec 15:12:14.077 * Background saving started by pid 35032
35032:C 11 Dec 15:12:15.142 * DB saved on disk
32201:M 11 Dec 15:12:15.192 * Background saving terminated with success
32201:M 11 Dec 15:17:16.019 * 1000 changes in 300 seconds. Saving...
32201:M 11 Dec 15:17:16.020 * Background saving started by pid 37936
37936:C 11 Dec 15:17:17.638 * DB saved on disk
32201:M 11 Dec 15:17:17.731 * Background saving terminated with success
32201:M 11 Dec 15:22:18.062 * 1000 changes in 300 seconds. Saving...
32201:M 11 Dec 15:22:18.063 * Background saving started by pid 40828
40828:C 11 Dec 15:22:20.630 * DB saved on disk
My dump.rdb file is growing up and everything is ok but then after 10-12 hours i see this in log:
94647:C 10 Dec 20:00:01.094 # Failed opening .rdb for saving: Permission denied61508:M 10 Dec 20:00:01.102 * Background saving started by pid 9464761508:M 10 Dec 20:00:01.209 # Background saving error61508:M 10 Dec 20:00:07.077 * 1 changes in 900 seconds. Saving...61508:M 10 Dec 20:00:07.083 * Background saving started by pid 9469694696:C 10 Dec 20:00:07.083 # Failed opening .rdb for saving: Permission denied61508:M 10 Dec 20:00:07.189 # Background saving error
And my dump.rdb file is 18bytes only and doesnt grow up.
Then i ask admin to restart redis. Then it was restarted and again it works fine for 10-12 hours in a row and then permission errrors again.
My redis run with redis permissions. My db file is also redit permissions and my database dir (/var/db/redis/) is also have redis permissions. So it seems to be fine with permissions and my admins says that its ok with permissions. But i dont know why after some hours i get that permissions errors.
And why my dump.rdb resets to 18bytes size.
So i restart my redis many times already but i always get that errors after some hours.
My admins checked filesystem and its ok.
For me it seems that after some hours something CHANGES directory of my dump file to somewhere and thats why redis cant write anymore because redis has no permissions to this directory.