[rabbitmq-discuss] Rabbitmq up and running but connection_closed_abruptly

Ken Henry kenhen93 at gmail.com
Fri Sep 6 14:23:25 BST 2013


Simon, thank you very much for your help!

Yes I figured that if my connection was closed those connections would not
listed

I actually killed the connections yesterday and they kept coming back under
different pids

I started the zenoss service that connects to rabbitmq and it looks like
its trying to connect to a PID that does not exist which it sounds like
from your e-mail that that is ok?

sorry I am running a little slow this morning but I couldn't get that
command to work all together but was able to just run it with pid option

rabbitmqctl list_connections zenoss localhost client_properties pid
Listing connections ...
Error: {bad_argument,zenoss}

tail /var/log/rabbitmq/rabbit\@localhost.log
=ERROR REPORT==== 6-Sep-2013::08:56:25 ===
closing AMQP connection <0.7417.0> (127.0.0.1:50621 -> 127.0.0.1:5672):
{bad_header,<<94,93,13,10,4,4,4,255>>}

=INFO REPORT==== 6-Sep-2013::09:01:00 ===
accepting AMQP connection <0.7463.0> (127.0.0.1:50646 -> 127.0.0.1:5672)

=WARNING REPORT==== 6-Sep-2013::09:01:00 ===
closing AMQP connection <0.7463.0> (127.0.0.1:50646 -> 127.0.0.1:5672):
connection_closed_abruptly

rabbitmqctl list_connections pid
Listing connections ...
<rabbit at localhost.1.1042.0>
<rabbit at localhost.1.302.0>
<rabbit at localhost.1.1109.0>
<rabbit at localhost.1.352.0>
<rabbit at localhost.1.1126.0>
<rabbit at localhost.1.1062.0>
<rabbit at localhost.1.370.0>
<rabbit at localhost.1.306.0>
<rabbit at localhost.1.291.0>
...done.

Is there anyway to turn on more logging?



On Fri, Sep 6, 2013 at 6:34 AM, Simon MacMullen <simon at rabbitmq.com> wrote:

> On 05/09/2013 9:09PM, Ken Henry wrote:
>
>> RabbitMQ runs fine on both hosts and host B gets an error when the
>> Zenoss servers tries to connect to rabbitmq
>>
>> =INFO REPORT==== 5-Sep-2013::15:11:36 ===
>> accepting AMQP connection <0.470.0> (127.0.0.1:44024 -> 127.0.0.1:5672)
>>
>>
>> =WARNING REPORT==== 5-Sep-2013::15:11:36 ===
>> closing AMQP connection <0.470.0> (127.0.0.1:44024 -> 127.0.0.1:5672):
>> connection_closed_abruptly
>>
>
> That's to be expected if the connection is not actually talking AMQP. You
> can suppress these warnings, see 'log_levels' at http://www.rabbitmq.com/*
> *configure.html <http://www.rabbitmq.com/configure.html>
>
>  rabbitmqctl list_connections
>> Listing connections ...
>> zenoss  127.0.0.1       43982   running
>> zenoss  127.0.0.1       43981   running
>> zenoss  127.0.0.1       43979   running
>> zenoss  127.0.0.1       43989   running
>> zenoss  127.0.0.1       43994   running
>> zenoss  127.0.0.1       43980   running
>> zenoss  127.0.0.1       43969   running
>> zenoss  127.0.0.1       43988   running
>> zenoss  127.0.0.1       43985   running
>> ...done.
>>
>> I am guessing these connections were made originally before the
>> connection was closed abruptly?
>>
>
> So I assume the problem is that you don't think these connections should
> be listed, since you think they were short-lived not-really-AMQP
> connections from a monitoring tool?
>
> Connections which have been closed (abruptly or not) should really not
> make it to this list. You might want to attempt to correlate the connection
> pid (e.g. "<0.470.0>" from the log above) with the results of "rabbitmqctl
> list_connections user peer_host peer_port pid state". If you see the same
> pid in both, that's a bug.
>
> But actually I think those are real client connections that have somehow
> been routed to your host B, since the ones from zenoss should never have
> got as far as the 'running' state.
>
> "rabbitmqctl list_connections user peer_host peer_port client_properties"
> might be illuminating - this will add a column listing the self-declared
> client properties to the output, only real AMQP clients will have such
> properties.
>
> Cheers, Simon
>
> --
> Simon MacMullen
> RabbitMQ, Pivotal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130906/eca1b6d1/attachment.htm>


More information about the rabbitmq-discuss mailing list