[rabbitmq-discuss] RabbitMQ Cluster, option "-setcookie cookie" + EC2 experiences

Alex Clemesha clemesha at gmail.com
Sat Mar 14 02:03:50 GMT 2009


>>  Im getting: socket.gaierror: (8, 'nodename nor servname provided, or
>> not known') when trying to attach a client to second broker (in the
>> cluster).
> That looks like an error thrown by the python client library and, on the
> surface of it, does not appear to indicate a problem with the RabbitMQ
> broker. Do the connection attempts show up in the server logs at all?

I've gotten to the root of the problem - it has to do with the fact
that the second
rabbit broker is doing a redirect, i.e, from
/var/log/rabbitmq/rabbit.log I see:

INFO REPORT==== 14-Mar-2009::00:18:55 ===
connection <0.16842.0> redirecting to

So it looks like I need to solve this problem by either using my
clients correctly,
or they need to handle redirects better.

With py amqplib,  I can put "insist=True" inside of "amqp.Connection",
and I don't see
the failure anymore ( socket.gaierror: (8, 'nodename nor servname
provided, or not known'),
but I'm stilling wondering if the clients should handle the redirect

With txAMQP, I have not yet seen if you can even pass a "insist=True"
anywhere.  The txAMQP also
does not follow the redirect (as far as I can see), it just sort of
'hangs', but I'm probably
just using the client wrong ...I'm going to do more investigating.

Maybe the authors of either python client lib are around, and they
could set me straight
on this use case :-)


Alex Clemesha

More information about the rabbitmq-discuss mailing list