Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating AMQPConnection hangs in busy loop #13

Open
azf opened this issue Jul 22, 2009 · 8 comments
Open

Creating AMQPConnection hangs in busy loop #13

azf opened this issue Jul 22, 2009 · 8 comments

Comments

@azf
Copy link

azf commented Jul 22, 2009

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 "", line 1, in
File "/Library/Python/2.5/site-packages/carrot-0.5.1-py2.5.egg/carrot/connection.py", line 92, in init self.connect()
File "/Library/Python/2.5/site-packages/carrot-0.5.1-py2.5.egg/carrot/connection.py", line 110, in connect connect_timeout=self.connect_timeout)
File "build/bdist.macosx-10.5-i386/egg/amqplib/client_0_8/connection.py", line 143, in init
File "build/bdist.macosx-10.5-i386/egg/amqplib/client_0_8/connection.py", line 477, in _x_open
File "build/bdist.macosx-10.5-i386/egg/amqplib/client_0_8/abstract_channel.py", line 64, in wait
File "build/bdist.macosx-10.5-i386/egg/amqplib/client_0_8/connection.py", line 201, in _wait_method
File "build/bdist.macosx-10.5-i386/egg/amqplib/client_0_8/method_framing.py", line 212, in read_method
File "build/bdist.macosx-10.5-i386/egg/amqplib/client_0_8/method_framing.py", line 127, in _next_method
File "build/bdist.macosx-10.5-i386/egg/amqplib/client_0_8/transport.py", line 105, in read_frame
File "build/bdist.macosx-10.5-i386/egg/amqplib/client_0_8/transport.py", line 191, in _read

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)

@ask
Copy link
Owner

ask commented Jul 29, 2009

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

@ask
Copy link
Owner

ask commented Jul 29, 2009

I'm keeping the issue open until we can find a solution, either for carrot or for amqplib.

@chrismiles
Copy link

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.

@ask
Copy link
Owner

ask commented Aug 26, 2009

It seems this is actually a RabbitMQ issue that will be fixed in 1.7

@azf
Copy link
Author

azf commented Aug 26, 2009

Good to know. Thank you for the heads-up.

@dbenamy
Copy link

dbenamy commented Jan 11, 2011

Was this fixed in 1.7? I'm hitting it and I'd like to know if I should upgrade rabbitmq.

@dbenamy
Copy link

dbenamy commented Jan 11, 2011

Oh, and are you sure it's not a bug that carrot is ignoring the connect_timeout arg?

@ask
Copy link
Owner

ask commented Jan 11, 2011

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants