System.AggregateException - None of the brokers could be reached (No such host is known.) #214
Replies: 4 comments 7 replies
-
means that the consumer can't look up the DNS name. You need to check if the client can look up server's DNS name. |
Beta Was this translation helpful? Give feedback.
-
@fishberg5051 Great that you solved it. The client should be able to look up the server's name somehow. This part of the post explains how it works.
Ok, I suppose the clients can't look up the server's name. In this case, you can pick one. It would be better to have an LB/Proxy with this configuration. The current load-balancer configuration accepts only one address atm. We could consider adding more IP/DNS we will think about that. |
Beta Was this translation helpful? Give feedback.
-
Hi, we're receiving the same issue, so I'll add here instead of creating a new issue. Since all our node servers are not supposed to be reachable via DNS, there isn't a valid property we can attach in the advertised_host configuration property. Only solution we thought would work is to put the server IP address inside in the advertised_host. The IP address is private of course. Digging through your code we found out that the underlying issue is the following line in the RoutingClient.cs In the broker.Host we already have a valid (private) IPAddress we would like to use. Can we have an option to bypass the DNS validation (our address will never be DNS valid) and directly use the value set in the advertised_host property in the following CreateClient method. |
Beta Was this translation helpful? Give feedback.
-
closed via #218 |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm using RabbitMQ.Client 6.4.0 and RabbitMQ.Stream.Client 1.0.1 to perform a POC.
Following the documentation / examples therein I'm running into an issue I'm having a hard time troubleshooting.
I can create a StreamSystem object, and verify it connects in our rabbit server. I can verify a stream exists by calling the "system".StreamExists method.
However, when I attempt to create a Consumer, I'm always getting an System.AggregateException - None of the brokers could be reached (No such host is known.).
We are on a windows server, RabbitMQ 3.11.2, Erlang 25.1.
Pulling all our values from a database config.
Our "cluster" only has one node for this experiment.
I have ran the plugin to enable streams, with all the default ports/listeners.
I would really welcome any feedback, issues, or corrections on how to solve this.
Please let me know if there are any other details I can provide.
Beta Was this translation helpful? Give feedback.
All reactions