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

On redis When you delete a key value occurs:

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.;

nested exception is redis.clients.jedis.exceptions.JedisDataException:
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

liunx the following solutions:

By running config set stop-writes-on- bgsave-error no command, closing stop-writes-on-bgsave- error

 

windows following solutions:

Found redis.windows.conf file, locate the stop-writes-on-bgsave-  error yes

change into:

 

 

Reference Links: https://blog.csdn.net/yangfengjueqi/article/details/83856171

 

Guess you like

Origin www.cnblogs.com/amy720/p/11427983.html