tags:

views:

70

answers:

1

When running the SAVE command in redis-cli for Redis 1.3.15 it just returns "(error) ERR", BGSAVE does not appear to do anything either. The SHUTDOWN command returns "(error) ERR Errors trying to SHUTDOWN. Check logs.". Killing the Redis process and starting Redis again does not change the save error.

Naturally I have tried to check the logs, but I havent been able to find any. Any hints where I can find the logs or what might be the problem would be greatly appreciated.

+1  A: 

Hello, to check where the log files are located you should check the redis.conf file.

If BGSAVE or SAVE are failing there is maybe a problem with permissions of directory or alike, this kind of problems will be reported in the log file of course.

antirez
Andreas
The only permission requirement is that Redis should be able to create files in the configured directory, and of course there must not be a file named dump.rdb already that is not can't be overwritten. Probably your Redis is not running as root, but the current file dump.rdb is instead root rw-r-r so there is no way the Redis instance is able to rewrite it.
antirez
Thanks for your help! The problem turned out to be that I stated redis with the incorrect user. Now it all works like a charm.
Andreas