W
W
WEBIVAN2012-11-06 13:28:48
NoSQL
WEBIVAN, 2012-11-06 13:28:48

Redis does not implement BGREWRITEAOF and BGSAVE. How to fix?

It costs Redis 2.4.17, appendonly is enabled.
Everything is added to the file, only BGREWRITEAOF and BGSAVE do not work, and the file begins to grow to obscene sizes.
The result of running the commands is below.

redis 10.1.1.9:6379> bgrewriteaof
(error) ERR
redis 10.1.1.9:6379> bgsave
(error) ERR
redis 10.1.1.9:6379> BGREWRITEAOF
(error) ERR
redis 10.1.1.9:6379> BGSAVE
(error) ERR


Config
pastebin.com/q9WmeYf0

Perhaps someone has come across a similar issue and found a solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vsespb, 2012-11-06
@WEBIVAN

1. You need about the same amount of free disk space as the aof file currently occupies.
2. Free memory should be twice as much as redis occupies (or you need to enable the sysctl vm.overcommit_memory=1 parameter)
3. The radish should have logs - something like /var/log/redis + in the config parameter regulating level logging. There will be a detailed error in the logs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question