Failed opening the RDB file ... Read-only file system Failed opening the RDB file ... Read-only file system linux linux

Failed opening the RDB file ... Read-only file system


You need to add the following to your /etc/systemd/system/redis-server unit file:

ReadWriteDirectories=-/var/lib/redis

Note that /var/lib/redis is the default, but if in your /etc/redis/redis.conf you set a different dir config option, you will need to set ReadWriteDirectories to that.


Error says Read-only file systemSo, check the mounting (/ or /var) of file system, if it is read only, remount the FS with rw mode(read and write mode)Take backup of important data before mounting.