微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

连接到 Redis 服务器失败

如何解决连接到 Redis 服务器失败

我不断收到此错误

2021-05-15 19:53:25,203 [Hangfire:Redis:ConnectionManager:0] 错误 Hangfire.Pro.Redis.RedisStorage Multiplexer 断开连接:连接到 Redis 服务器未指定/本地主机:6379 失败:StackExchange.Redis.RedisConnectionException:本地主机上的 SocketFailure:6379/Interactive,来源:EndReading,输入缓冲区:0,未完成:0,上次读取:0 秒前,上次写入:0 秒前,未应答写入:从不,保持活动:60 秒,待处理: 0,state: ConnectedEstablished,in: 0,ar: 0,last-heartbeat: 0s ago,last-mbeat: 0s ago,global: 0s ago ---> System.IO.IOException: Unable to read data from the transport connection : 现有连接被远程主机强行关闭。 ---> System.Net.sockets.socketException: 一个现有的连接被远程主机强行关闭 在 System.Net.sockets.socket.EndReceive(IAsyncResult asyncResult) 在 System.Net.sockets.NetworkStream.EndRead(IAsyncResult asyncResult) --- 内部异常堆栈跟踪结束 --- 在 System.Net.sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 在 StackExchange.Redis.PhysicalConnection.EndReading(IAsyncResult 结果) --- 内部异常堆栈跟踪结束 ---。将在 00:00:00.0160000 重新连接 2021-05-15 19:53:26,435 [Hangfire:Redis:ConnectionManager:0] 错误 Hangfire.Pro.Redis.RedisStorage 无法连接到 Redis 服务器,将在 00:00:00.0420000 重新连接 StackExchange.Redis.RedisConnectionException:无法连接到 redis 服务器;要创建断开连接的多路复用器,请禁用 AbortOnConnectFail。 PING 上的 SocketFailure 在 StackExchange.Redis.ConnectionMultiplexer.ConnectImpl(Func1 multiplexerFactory,TextWriter log) at Hangfire.Pro.Redis.RedisStorage.CreateMultiplexer(EventWaitHandle reconnectEvent) at Hangfire.Pro.Redis.RedisStorage.ConnectLoop() 2021-05-15 19:53:27,641 [Hangfire:Redis:ConnectionManager:0] ERROR Hangfire.Pro.Redis.RedisStorage Couldn't connect to Redis Server,will reconnect in 00:00:00.0660000 StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s); to create a disconnected multiplexer,disable AbortOnConnectFail. UnabletoResolvePhysicalConnection on PING at StackExchange.Redis.ConnectionMultiplexer.ConnectImpl(Func1 多路复用器工厂,TextWriter 日志) 在 Hangfire.Pro.Redis.RedisStorage.CreateMultiplexer(EventWaitHandle reconnectEvent) 在 Hangfire.Pro.Redis.RedisStorage.ConnectLoop()

从根本上不确定问题是什么。我只需要知道通常会导致此问题的原因。我想我可以从那里找到它(或者可以提出更具体的问题)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。