简体   繁体   English

没有指定的端点可以访问

[英]None of the specified endpoints were reachable

There is intermittent issue in rabbitmq while publishing message from .net application. 在从.net应用程序发布消息时,rabbitmq中存在间歇性问题。 It is creating lots of noise in the system. 它在系统中产生大量噪音。 I have tried googling but could not found root cause of an issue. 我试过谷歌搜索,但无法找到问题的根本原因。

Here is the error I can see in application log, 这是我在应用程序日志中看到的错误,

None of the specified endpoints were reachable
Endpoints attempted:
------------------------------------------------
endpoint=amqp-0-9://localhost:5672, attempts=1
System.TimeoutException: Connection to amqp-0-9://localhost:5672 timed out
   at RabbitMQ.Client.Impl.SocketFrameHandler_0_9.Connect(TcpClient socket, AmqpTcpEndpoint endpoint, Int32 timeout)
   at RabbitMQ.Client.Impl.SocketFrameHandler_0_9..ctor(AmqpTcpEndpoint endpoint, ObtainSocket socketFactory, Int32 timeout)
   at RabbitMQ.Client.Framing.Impl.v0_9_1.ProtocolBase.CreateFrameHandler(AmqpTcpEndpoint endpoint, ObtainSocket socketFactory, Int32 timeout)
   at RabbitMQ.Client.ConnectionFactory.FollowRedirectChain(Int32 maxRedirects, IDictionary`2 connectionAttempts, IDictionary`2 connectionErrors, AmqpTcpEndpoint[]& mostRecentKnownHosts, AmqpTcpEndpoint endpoint)
================================================
Stack trace:
   at RabbitMQ.Client.ConnectionFactory.CreateConnection(Int32 maxRedirects)
   at RabbitMQ.Client.ConnectionFactory.CreateConnection()

我已经通过使RabbitMQ Connection对象单例来确保重用连接而不是每次都建立新连接来解决这个问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 RabbitMq:“没有一个指定的端点是可达的” - RabbitMq: "None of the specified endpoints were reachable" RabbitMQ:无法访问指定的端点 - RabbitMQ: None of the specified endpoints were reachable RabbitMQ C#连接故障:指定的端点均不可访问 - RabbitMQ C# connection trouble: None of the specified endpoints were reachable RabbitMQ.Client.Exceptions.BrokerUnreachableException:“指定的端点均不可访问” - RabbitMQ.Client.Exceptions.BrokerUnreachableException: 'None of the specified endpoints were reachable' AppHarbor MassTransit CloudAMQP引发异常指定的端点均不可访问 - AppHarbor MassTransit CloudAMQP throws Exception None of the specified endpoints were reachable 使用多线程时RabbitMQ的问题:没有指定的端点可访问 - Issue with RabbitMQ when using Multithreading: None of the specified endpoints were reachable RabbitMQ Docker 撰写 指定的端点均不可到达 - RabbitMQ Docker Compose None of the specified endpoints were reachable RabbitMQ 连接错误“指定端点均不可到达” - RabbitMQ Connection Error " None of the specified endpoints were reachable" 如何解决此错误:RabbitMQ.Client.Exceptions.BrokerUnreachableException: 'None of the specified endpoints arereachable' - how to solve this error: RabbitMQ.Client.Exceptions.BrokerUnreachableException: 'None of the specified endpoints were reachable' 无法从本地访问WCF服务端点 - WCF Service Endpoints not reachable from local
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM