Skip to content

Instantly share code, notes, and snippets.

@alonisser
Created September 17, 2014 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alonisser/6801dc1fa9ca67af6a9d to your computer and use it in GitHub Desktop.
Save alonisser/6801dc1fa9ca67af6a9d to your computer and use it in GitHub Desktop.
Fixing redis "ISCONF Redis is configured to save RDB snapshots"
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