Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackExchange.Redis.RedisTimeoutException: The message timed out in the backlog attempting to send because no connection became available #2786

Open
jejass opened this issue Sep 4, 2024 · 1 comment

Comments

@jejass
Copy link

jejass commented Sep 4, 2024

Hello there,

StackExchange is used to connect to Redis. and see this error message.

StackExchange.Redis.RedisTimeoutException: The message timed out in the backlog attempting to send because no connection became available, command=GET, timeout: 5000, outbound: 72KiB, inbound: 0KiB, inst: 0, qu: 7, qs: 0, aw: False, bw: CheckingForTimeout, rs: ReadAsync, ws: Idle, in: 0, last-in: 28, cur-in: 0, sync-ops: 4, async-ops: 32769357, serverEndpoint: xxx:xxx, conn-sec: 22760.71, aoc: 0, mc: 1/1/0, mgr: 10 of 10 available, clientName: xxx(SE.Redis-v2.7.20.59961), IOCP: (Busy=0,Free=1000,Min=200,Max=1000), WORKER: (Busy=37,Free=32730,Min=200,Max=32767), POOL: (Threads=47,QueuedItems=4,CompletedItems=924777304,Timers=32), v: 2.7.20.59961 (Please take a look at this article for some common client-side issues that can cause timeouts:
https://stackexchange.github.io/StackExchange.Redis/Timeouts)

after restarting client machine, the issue was gone.

please check the root cause and confirm if there is any configuration need to improved in client side.

@philon-msft
Copy link
Collaborator

"bw: CheckingForTimeout" indicates that StackExchange.Redis lost its connection to the Redis server so it started backlogging commands, waiting for the connection to be restored. While there are commands waiting in the backlog, SE.Redis periodically scans them checking to see if the timeout has elapsed for any commands. Ideally the connection is restored and backlogged commands are executed before any time out, but in this case the connection was not restored within the 5000ms timeout.
To find the root cause, you'll need to find out why the connection to Redis was lost and not restored quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants