You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But from time to time I encounter the following error:
StackExchange.Redis.RedisConnectionException: No connection is active/available to service this operation: HMGET MesBus:TokenBLK:2b290cab2815ab802a7e18e01bf679e1, inst: 0, qu: 0, qs: 0, aw: False, bw: SpinningDown, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 72, async-ops: 227416, serverEndpoint: 127.0.0.1:6379, conn-sec: 4370.5, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: hc-phytiumft20004(SE.Redis-v2.7.10.12442), IOCP: (Busy=0,Free=1000,Min=8,Max=1000), WORKER: (Busy=3,Free=32764,Min=16,Max=32767), POOL: (Threads=12,QueuedItems=0,CompletedItems=1155132,Timers=11), v: 2.7.10.12442
at StackExchange.Redis.ConnectionMultiplexer.ThrowFailed[T](TaskCompletionSource`1 source, Exception unthrownException) in /_/src/StackExchange.Redis/ConnectionMultiplexer.cs:line 2037
When I got this exception, I found that my project could not reconnect to the redis server correctly, and I used redis cli to check that the server had no slowlog, and the server was working normally (I have two programs written in rust that also use the redis server, both using db0)
Moreover, I checked the client list and there are still two MesBus_Api connections. When I restart the redis server, I can see that there is a MesBus_Api connection and my API project still tries to initiate a connection to redis because I detect that there is a TCP connection in my server to the Redis server, although They all end up as Time_Wait and they are unable to establish a normal connection to redis. Unless I restart my API project, at this point I can see that two connections named MesBus_Api have been established in redis. And the exception disappears in the project and all code works normally.
How should I troubleshoot or check this issue? Thank you for your help. ps.I checked the server's CPU usage and it wasn't too high.
The text was updated successfully, but these errors were encountered:
Nothing leaps out here as being obviously casual - looks fairly healthy (other than not working): the time and ops show you aren't spinning up a multiplexer per context, and you're making good use of async. The fact that it hasn't fixed itself suggests something networking related, but this seems to be loopback, which cuts out a lot of things there. Is this reproducible on demand or at least reasonably, i.e. "leave it for 12 hours, it'll start happening around then" or something like that? I was wondering about maybe when this happens, try connecting a second multiplexer with the "log" parameter which gives us a bit more info. There are also some connection failed events on the multiplexer that might provide context.
Nothing leaps out here as being obviously casual - looks fairly healthy (other than not working): the time and ops show you aren't spinning up a multiplexer per context, and you're making good use of async. The fact that it hasn't fixed itself suggests something networking related, but this seems to be loopback, which cuts out a lot of things there. Is this reproducible on demand or at least reasonably, i.e. "leave it for 12 hours, it'll start happening around then" or something like that? I was wondering about maybe when this happens, try connecting a second multiplexer with the "log" parameter which gives us a bit more info. There are also some connection failed events on the multiplexer that might provide context.
This problem is completely random and I haven't found a way to reproduce it yet. I'm enabling "LOG" so I can get more information the next time I encounter it.
Hi everyone, I have a net8 api project that runs locally. Through docker deployment, Redis Serve is also deployed in docker on the same host.
StackExchange.Redis Version 2.8.22
The connection string in the code is as follows
"127.0.0.1:6379,DefaultDatabase=0,allowAdmin=true,abortConnect=false,connectRetry=5,connectTimeout=3000,syncTimeout=3000,asyncTimeout=3000,name=MesBus_Api,keepAlive=30"
Under normal circumstances, I will see two client connections named MesBus_Api in Redis Serve.looks like this
But from time to time I encounter the following error:
When I got this exception, I found that my project could not reconnect to the redis server correctly, and I used redis cli to check that the server had no slowlog, and the server was working normally (I have two programs written in rust that also use the redis server, both using db0)
Moreover, I checked the client list and there are still two MesBus_Api connections. When I restart the redis server, I can see that there is a MesBus_Api connection and my API project still tries to initiate a connection to redis because I detect that there is a TCP connection in my server to the Redis server, although They all end up as Time_Wait and they are unable to establish a normal connection to redis. Unless I restart my API project, at this point I can see that two connections named MesBus_Api have been established in redis. And the exception disappears in the project and all code works normally.
How should I troubleshoot or check this issue? Thank you for your help.
ps.I checked the server's CPU usage and it wasn't too high.
The text was updated successfully, but these errors were encountered: