[rabbitmq-discuss] Socket Error 104 when connecting to rabbit cluster

Brett Cameron brett.r.cameron at gmail.com
Fri Jul 12 10:22:21 BST 2013


Robert,

Curious. The connection_closed_abruptly log messages typically indicate
that the client has done something strange; they are just (relatively
innocuous) warnings from RabbitMQ's perspective. Can you connect from
another server?

Brett


On Fri, Jul 12, 2013 at 9:07 PM, Rubo Liang <liangrubo at bytedance.com> wrote:

> Hi Brett,
>
> message from rabbit log file:
> =INFO REPORT==== 12-Jul-2013::17:00:34 ===
> accepting AMQP connection <0.4818.7> (10.4.16.221:61833 ->
> 10.4.16.221:5672)
>
> =WARNING REPORT==== 12-Jul-2013::17:00:34 ===
> closing AMQP connection <0.4818.7> (10.4.16.221:61833 -> 10.4.16.221:5672
> ):
> connection_closed_abruptly
>
> It seems to be a socket problem, but I can immediately connect to the
> server with telnet.
>
> Thanks.
>
> On Fri, Jul 12, 2013 at 4:16 PM, Brett Cameron <brett.r.cameron at gmail.com>wrote:
>
>> Robert,
>>
>> For what it is worth "Socket Error on fd 3: 104" equates to "Connection
>> reset by peer". Chances are there will be something in RabbitMQ's log files
>> that will provide more information about what is going on - could be a
>> timeout or something like that.
>>
>> Brett
>>
>>
>> On Fri, Jul 12, 2013 at 7:19 PM, Rubo Liang <liangrubo at bytedance.com>wrote:
>>
>>> Hi,
>>>
>>> I have a rabbit cluster with 3 servers. I got error message like
>>> following when trying to connect to it (the cluster has worked well for 2
>>> days):
>>>
>>> Socket Error on fd 3: 104
>>>
>>> Details:
>>>
>>> The cluster has 3 servers: A, B, C. Clients connect to server A. I run 'rabbitmqctl
>>> stop_app; rabbitmqctl reset; rabbitmqctl start_app' on Server A to bring
>>> the service back. Then I try to connect to server B but get the same error.
>>>
>>> I can telnet rabbit port on server B.
>>>
>>> ~$ rabbitmqctl list_queues
>>> Listing queues ...
>>> ha.snssdk.log   0
>>> ha.snssdk.log.dispatch  0
>>> ha.snssdk.log.output    0
>>> ...done.
>>>
>>> 'rabbitmqctl report' output:
>>>
>>> https://gist.github.com/liangrubo/5982515
>>>
>>> pika stacktrace:
>>>   File
>>> "/usr/local/lib/python2.7/dist-packages/pika/adapters/base_connection.py",
>>> line 61, in __init__
>>>     super(BaseConnection, self).__init__(parameters, on_open_callback)
>>>   File "/usr/local/lib/python2.7/dist-packages/pika/connection.py", line
>>> 513, in __init__
>>>     self._connect()
>>>   File "/usr/local/lib/python2.7/dist-packages/pika/connection.py", line
>>> 804, in _connect
>>>     self._adapter_connect()
>>>   File
>>> "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py",
>>> line 146, in _adapter_connect
>>>     self.process_data_events()
>>>   File
>>> "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py",
>>> line 88, in process_data_events
>>>     if self._handle_read():
>>>   File
>>> "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py",
>>> line 184, in _handle_read
>>>     super(BlockingConnection, self)._handle_read()
>>>   File
>>> "/usr/local/lib/python2.7/dist-packages/pika/adapters/base_connection.py",
>>> line 300, in _handle_read
>>>     return self._handle_error(error)
>>>   File
>>> "/usr/local/lib/python2.7/dist-packages/pika/adapters/base_connection.py",
>>> line 264, in _handle_error
>>>     self._handle_disconnect()
>>>   File
>>> "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py",
>>> line 181, in _handle_disconnect
>>>     self._on_connection_closed(None, True)
>>>   File
>>> "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py",
>>> line 235, in _on_connection_closed
>>>     raise exceptions.AMQPConnectionError(*self.closing)
>>> pika.exceptions.AMQPConnectionError: (0, '')
>>>
>>> Any help is appreciated.
>>>
>>> Thanks.
>>> Robert
>>>
>>>
>>> _______________________________________________
>>> rabbitmq-discuss mailing list
>>> rabbitmq-discuss at lists.rabbitmq.com
>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>>
>>>
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>>
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130712/27f22811/attachment.htm>


More information about the rabbitmq-discuss mailing list