Created
September 17, 2014 08:37
-
-
Save alonisser/6801dc1fa9ca67af6a9d to your computer and use it in GitHub Desktop.
Fixing redis "ISCONF Redis is configured to save RDB snapshots"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check redis log /var/logs/redis/redis-server.log for write errors | |
can be permissions on the redis dbump dir or memory conditions or not enough place on disk | |
check place on disks: | |
http://www.cyberciti.biz/faq/check-free-space/ | |
``` | |
$ df -h | |
``` | |
fix memory condition: | |
``` | |
echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf # only one time! doesn't have to be every time.. if already exists won't help | |
sysctl vm.overcommit_memory=1 | |
``` | |
redis config settings to check (defaults to:) especially for permissions problem | |
``` | |
dbfilename dump.rdb | |
dir /var/lib/redis | |
``` | |
stop redis from stopping on this error (dangerous!) in /etc/redis/redis.conf | |
``` | |
stop-writes-on-bgsave-error yes | |
``` | |
or in redis-cli only for the running session | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment