login community faq

Hi,

I'm having some problems when trying to run celeryd from a Django application:

1
2
3
4
5
6
[user@web]$ python2.7 manage.py celeryd --loglevel=info
[2012-06-18 19:59:48,352: WARNING/MainProcess]
[2012-06-18 19:59:48,432: INFO/PoolWorker-1] child process calling self.run()
[2012-06-18 19:59:48,435: WARNING/MainProcess] celery@web184.webfaction.com has started.
[2012-06-18 19:59:51,489: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 2 seconds...
[2012-06-18 19:59:56,490: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 4 seconds...

I have RabbitMQ installed and configured (I think) properly:

  1. Custom apps listen on port
  2. Exported environment variables: ERL_EPMD_PORT=custom epmd port number, RABBITMQ_NODE_PORT=custom rabbitmq port number, ERL_INETRC=$HOME/.erl_inetrc

When checking the status with "rabbitmqctl status" i got that is ok.

Also, on settings.py I have the values:

1
2
3
4
5
BROKER_HOST = "Web1xx"
BROKER_PORT = custom port number for rabbitmq
BROKER_USER = "guest"
BROKER_PASSWORD = "guest"
BROKER_VHOST = "/"

Any idea about my [Errno 111]?

asked Jun 18 '12 at 19:01

8ksoft's gravatar image

8ksoft
31


I notice it says 'celery@web184.webfaction.com' for the host information. Try changing the host from 'web184.webfaction.com' to 'localhost'. It is possible it is trying external routing because of the URL, which would have the port blocked. The port is only open for localhost, unless we open it upon request.

answered Jun 18 '12 at 21:33

johns's gravatar image

johns ♦♦
340427

Thanks, johns! Changing the host to 'localhost' makes celeryd is running now!

(Jun 19 '12 at 08:53) 8ksoft 8ksoft's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited