Could not open RDB file ... Read-only file system

I am trying to save or bgsave on my redis instance to start the backup / restore process. I get errors when I try to save:

532:M 28 Jun 23:58:30.396 # Failed opening the RDB file backup.rdb (in server root dir /var/lib/redis) for saving: Read-only file system

in the folder / var / lib / redis: $@ /var/lib$ ls -artl | grep redis drwxrwxrwx 3 redis redis 4096 Jun 28 23:58 redis $@ /var/lib$ ls -artl | grep redis drwxrwxrwx 3 redis redis 4096 Jun 28 23:58 redis permissions in the / var / lib folder: $@ /var$ ls -artl | grep lib drwxrwxrwx 31 root root 4096 Jun 28 23:44 lib $@ /var$ ls -artl | grep lib drwxrwxrwx 31 root root 4096 Jun 28 23:44 lib permissions in the / var $@ /$ ls -artl | grep var drwxrwxrwx 11 root root 4096 Jul 18 2016 var $@ /$ ls -artl | grep var drwxrwxrwx 11 root root 4096 Jul 18 2016 var

redis-cli config get dir: 1) "dir" 2) "/var/lib/redis"

redis-cli config get dbfilename: 1) "dbfilename" 2) "backup.rdb"

Error from redis: 532:M 28 Jun 23:58:30.396 # Failed opening the RDB file backup.rdb (in server root dir /var/lib/redis) for saving: Read-only file system

Any help would be greatly appreciated!

0
source share
1 answer

The error says the file system is read-only So, check the mount (/ or / var) of the file system, if it is read-only, remount the FS with rw mode (read and write mode) Before installing, back up important data.

0
source

Source: https://habr.com/ru/post/1268154/


All Articles