Create connection failed when queue is empty #1108
Replies: 10 comments 2 replies
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
-
on same time, same rabbitmq server, same rabbitmq consumer client and logic, the queue which have msg pump in, does not raise a connection failed exception |
Beta Was this translation helpful? Give feedback.
-
There is no evidence of a bug. There is evidence of a connection begin refused by the target RabbitMQ node:
Queue contents (or presence) do not matter at this point because the client failed to connect and "attach" to a virtual host. There is a dedicated doc guide for troubleshooting connections. |
Beta Was this translation helpful? Give feedback.
-
with a modern client that supports Authentication failure notifications can mean a genuine TCP connection failure. I now see there is a doc section that provides examples of server log messages in case of authentication failures. If you don't see any of those, follow the methodology described in Troubleshooting Networking. |
Beta Was this translation helpful? Give feedback.
-
here is rabbit mq server log after consumer start and some queue connection raise exception
|
Beta Was this translation helpful? Give feedback.
-
RabbitMQ 3.8.25 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@naughtyGitCat I edited or deleted your comments where you pasted large amounts of text. I first saved them in a file and attached the file to this comment. Please do not paste large amounts of text into comments on GitHub! Instead, save the text into files and attach the files. Here is the error that matters:
Notice that 5 seconds elapses between when that connection is established and when it times out. This means that your client application did not respond in time during connection establishment. Perhaps you are trying to start too many connections at once and your servers can't keep up. |
Beta Was this translation helpful? Give feedback.
-
sorry about the comment, I have the same consumer logic written by python, there is no same problem, Should I share the same connection across the different consumers? |
Beta Was this translation helpful? Give feedback.
-
add await Task.Delay(new TimeSpan(0,0,random.Next(1,30)), stoppingToken); on ConsumerBaseClass seems to works |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
version
RabbitMQ 3.8
RabbitMQ.Client 6.2.2
output
Beta Was this translation helpful? Give feedback.
All reactions