WebFaction
Community site: login faq

Hi,

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

[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:

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 18 Jun '12, 19:01

8ksoft
515
accept rate: 0%


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.

permanent link

answered 18 Jun '12, 21:33

johns
5.4k412
accept rate: 23%

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

(19 Jun '12, 08:53) 8ksoft
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×21
×12

question asked: 18 Jun '12, 19:01

question was seen: 5,720 times

last updated: 19 Jun '12, 08:53

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM