(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to

An error occurred while running redis today. The error information is as follows:

(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

Redis is configured to save database snapshots, but it cannot be persisted to the hard disk at present. The command used to modify set data cannot be used. Please check the detailed error information in redis logs.

reason:

The redis snapshot cannot be persisted because it is forcibly closed.

Solution:

After running the config set stop writes on bgsave error no command, close the configuration item stop writes on bgsave error to solve the problem.

[email protected] :/usr/local/redis/bin# ./redis-cli
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> lpush myColour “red”
(integer) 1

Read More: