Redis given connection MISCONF Redis is configured to save RDB s

连接redis报错MISCONF Redis is configured to save RDB snapshots

date: Mon Nov 11 16:11:24 CST 2019
笔者:张首富

Program given as follows

redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.

translation:

redis.exceptions.ResponseError: MISCONF Redis RDB configured to save a snapshot, but it is currently not persisted on disk. Disabling the command may modify the data set, because this instance is configured to report errors (stop-writes-on-bgsave-error option) during the writing process when RDB snapshot fails. Check Redis log for more information about RDB wrong.

Analytical Processing

From the information given above we can clearly see out during the trial redis RDB persistence operations when written to disk when there is a problem, such problems have probably following situations:
1, the disk is damaged (rarely appears)
2, write persistent data on disk is full
3, less than the disk access (for remote storage)
4, less than (it should be up to the occurrence of access to the disk)

We see redis redis log on to the fourth point above findings are consistent with, so we had to modify permissions to the directory, then the problem is solved

Guess you like

Origin blog.51cto.com/13447608/2449473