MISCONF Redis is configured to save RDB snapshots

时间:2023-03-09 15:26:06
MISCONF Redis is configured to save RDB snapshots

今天客户突然反馈用我们的api出现了下面的这个错误

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., sPort: 52437, LastCommand:

MISCONF Redis is configured to save RDB snapshots

解决方案:

运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-writes-on-bgsave-error解决该问题。

./redis-cli

auth  passwordxx 
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> lpush myColour "red"
(integer) 1