I get this in my Redis logs:
1182:M 30 Nov 14:27:00.028 * 1 changes in 900 seconds. Saving... 1182:M 30 Nov 14:27:00.029 * Background saving started by pid 1920 1920:C 30 Nov 14:27:00.029 # Failed opening .rdb for saving: Read-only file system 1182:M 30 Nov 14:27:00.130 # Background saving error
Redis is configured to use this directory:
ubuntu@XXXXX:~$ redis-cli 127.0.0.1:6379> config get dir 1) "dir" 2) "/mnt/persistent/redis-data"
If I become the redis user I can write to that directory fine:
ubuntu@XXXXX:~$ sudo su - redis redis@XXXXX:~$ touch /mnt/persistent/redis-data/caniwrite redis@XXXXX:~$ ls /mnt/persistent/redis-data/caniwrite /mnt/persistent/redis-data/caniwrite
It appears to be mounted as read-write:
root@XXXXX:~# mount -l | grep /mnt/persistent /dev/xvdh on /mnt/persistent type ext4 (rw,relatime,data=ordered)
This is a mounted AWS Elastic Block Store. I'm running Ubuntu.
Any ideas why Redis server would report it can't write, but the redis user can?