C# MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.

mac2024-03-10  27

关于在使用redis 持久化时 出现的如下错误

 

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.

missf redis已配置为保存rdb快照,但当前无法在磁盘上持久化。可以修改数据集的命令被禁用。有关错误的详细信息,请检查redis日志。

 

错误信息:

2019/10/31 9:17:12 捕获异常堆栈信息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. 在 ServiceStack.Redis.RedisNativeClient.ExpectSuccess() 在 ServiceStack.Redis.RedisNativeClient.ExpectSuccessFn() 在 ServiceStack.Redis.RedisNativeClient.SendReceive[T](Byte[][] cmdWithBinaryArgs, Func`1 fn, Action`1 completePipelineFn, Boolean sendWithoutRead) 在 ServiceStack.Redis.RedisNativeClient.SendExpectSuccess(Byte[][] cmdWithBinaryArgs) 在 ServiceStack.Redis.RedisNativeClient.Set(Byte[] key, Byte[] value, Int32 expirySeconds, Int64 expiryMs) 在 ServiceStack.Redis.RedisClient.<>c__DisplayClass141_0`1.<Set>b__0(RedisClient r) 在 ServiceStack.Redis.RedisClient.Exec(Action`1 action) 在 ServiceStack.Redis.RedisClient.Set[T](String key, T value, TimeSpan expiresIn) 在 mcwords.Controllers.Filter.McFilter.OnActionExecuting(ActionExecutingContext filterContext) 位置 D:\开发中的项目\merchantwords\mcwords\Controllers\Filter\McFilter.cs:行号 117 在 System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.InvokeActionMethodFilterAsynchronouslyRecursive(Int32 filterIndex) 在 System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.InvokeActionMethodFilterAsynchronouslyRecursive(Int32 filterIndex) 在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass7_0.<BeginInvokeActionMethodWithFilters>b__0(AsyncCallback asyncCallback, Object asyncState) 在 System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) 在 System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters, AsyncCallback callback, Object state) 在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.<BeginInvokeAction>b__0(AsyncCallback asyncCallback, Object asyncState)

 

解决方法如下:修改redis 配置文件中的  stop-writes-on-bgsave-error 设置为 no 然后重新启动 redis  即可

 

最新回复(0)