Redis: Failed opening .rdb for saving: Permission denied
redis
Solution
You should check your redis.conf file to see the permissions in dir and dbfilename. If the file named in the dbfilename which is located in the path specified in the dir path exists and the permission is also right. then the problem should be fixed.
Hope this will help someone.
P.S.
To find the `redis.conf` file location, you can use the `#ps ax | grep redis` to check. Usually it will be passed to the `redis-server` as input file.
For the dir permissions:it should be `755`, for the dbfilename, it should be `644`
Sometimes you also need to use `top` command to check whether the `user:group` of the `redis-server` and the owner of dir are consistent. i.e. The `redis-server` is running by redis:redis, but the dir is under root:root. In this case, you need to `chown redis:redis -R dir`.
Problem
I have a redis server 2.8 installed using ubuntu apt-get on ubuntu 12.04. I have copied a dump.rdb from an other database. Now when I try to start the new server, I constantly get: ``` [35763] 04 Mar 01:51:47.088 * 1 changes in 900 seconds. Saving... [35763] 04 Mar 01:51:47.088 * Background saving started by pid 43313 [43313] 04 Mar 01:51:47.088 # Failed opening .rdb for saving: Permission denied ``` How can I solve this?