连接到 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 (将#修改为@)