carrot
carrot copied to clipboard
Creating AMQPConnection hangs in busy loop
When I try to do this straight from the introduction:
from carrot.connection import AMQPConnection amqpconn = AMQPConnection(hostname="localhost", port=5672, userid="test", password="test", vhost="test")
the whole thing ends up in a busy loop:
File "
It won't time out or anything. Am I doing something wrong or missing something obvious?
Tried on OS X 10.5.7, against RabbitMQ 1.6.0 which otherwise seems to be working just fine. This happens both with Python 2.6.2 (from Macports) and Python 2.5.1 (from Apple)
This is believed to be a problem with amqplib. It usually happens when it can't connect, or authenticate to the server. See: http://github.com/ask/celery/issues#issue/9
I'm keeping the issue open until we can find a solution, either for carrot or for amqplib.
I got the same problem on OS X 10.5.7. It happened when the client failed authentication and also when authentication succeeded but the user didn't have permissions to access the vhost.
It seems this is actually a RabbitMQ issue that will be fixed in 1.7
Good to know. Thank you for the heads-up.
Was this fixed in 1.7? I'm hitting it and I'd like to know if I should upgrade rabbitmq.
Oh, and are you sure it's not a bug that carrot is ignoring the connect_timeout arg?
I'm not sure about the status of this, someone hit it recently but I don't know what RabbitMQ version they were running.
AFAICT it doesn't ignore the connect_timeout flag?