Directory for redis dump file

redis

#1

Why I can’t customize a directory for saving redis .rdb file? I changed the “dir” parameter to “/home/ubuntu/workspace” in the config file, but when i call SAVE command into a terminal it displays an error (seems like redis has no permission to modify files in this folder). The log files are also unavialible.

UPD: Managed to download log file. 02 Mar 08:23:15 the system was suddenly rebooted and the .rdb file became unavialible:

[1496] 02 Mar 08:23:15.831 # Server started, Redis version 2.8.4
[1496] 02 Mar 08:23:15.831 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
[1496] 02 Mar 08:23:15.834 * DB loaded from disk: 0.003 seconds
[1496] 02 Mar 08:23:15.834 * The server is now ready to accept connections on port 6379
[1496] 02 Mar 08:24:16.012 * 10000 changes in 60 seconds. Saving…
[1496] 02 Mar 08:24:16.013 * Background saving started by pid 1688
[1688] 02 Mar 08:24:16.020 * DB saved on disk
[1688] 02 Mar 08:24:16.021 * RDB: 0 MB of memory used by copy-on-write
[1496] 02 Mar 08:24:16.113 * Background saving terminated with success
[1496] 02 Mar 08:25:17.013 * 10000 changes in 60 seconds. Saving…
[1496] 02 Mar 08:25:17.013 * Background saving started by pid 1691
[1691] 02 Mar 08:25:17.013 # Failed opening .rdb for saving: Permission denied
[1496] 02 Mar 08:25:17.113 # Background saving error
[1496] 02 Mar 08:25:23.013 * 10000 changes in 60 seconds. Saving…
[1496] 02 Mar 08:25:23.014 * Background saving started by pid 1704
[1704] 02 Mar 08:25:23.014 # Failed opening .rdb for saving: Permission denied
[1496] 02 Mar 08:25:23.114 # Background saving error
[1718] 02 Mar 08:25:28.018 # Creating Server TCP listening socket 127.0.0.1:6379: bind: Address already in use
[1496] 02 Mar 08:25:29.013 * 10000 changes in 60 seconds. Saving…
[1496] 02 Mar 08:25:29.013 * Background saving started by pid 1722
[1722] 02 Mar 08:25:29.013 # Failed opening .rdb for saving: Permission denied