我使用 AppHarbor 作为 CI 环境来验证我的提交。我在 AppHarbor 中收到错误,因为 Redis 无法写入磁盘。
Error:
[RedisResponseException: 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: 58823, LastCommand: ]
ServiceStack.Redis.RedisNativeClient.CreateResponseError(String error) +133
ServiceStack.Redis.RedisNativeClient.ExpectSuccess() +135
ServiceStack.Redis.RedisNativeClient.SendExpectSuccess(Byte[][] cmdWithBinaryArgs) +88
ServiceStack.Redis.RedisNativeClient.SetEx(String key, Int32 expireInSeconds, Byte[] value) +153
ServiceStack.Redis.RedisClient.SetEntry(String key, String value, TimeSpan expireIn) +62
我已经在 AppHarbor 上启用了磁盘写入,这就是我通过代码启动 Redis 的方式:
var startInfo = new ProcessStartInfo(redisPath, conf);
startInfo.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory;
startInfo.WindowStyle = ProcessWindowStyle.Minimized;
startInfo.UseShellExecute = false;
var proc = Process.Start(startInfo);
在我的 redis.conf 中,我将 DB 目录设置为 App_Data
dir ./App_Data
它在本地按预期工作(RDB 保存到 App_Data 中)。有人以前见过这个或知道解决方法吗?
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)