WebFaction
Community site: login faq

I used the tutorial here to install celery, erlang, and rabbitmq.

I'm trying to create a send_mail task. I know my email is properly configured as it sends when I don't link it to a celery task. My settings are as follows:

BROKER_HOST = "localhost"
BROKER_PORT = custom-app port
BROKER_USER = my username
BROKER_PASSWORD = os.environ.get("BROKER_PW", '')
BROKER_VHOST = hostname set during erlang config
CELERYD_CONCURRENCY = 1
CELERYD_NODES="w1"
CELERY_RESULT_BACKEND="amqp"

When I run python2.7 manage.py celeryd -l info, I get the following error:

[2014-05-20 03:47:44,197: ERROR/MainProcess] consumer: Cannot connect to amqp://guest@127.0.0.1:5672//: [Errno 111] Connection refused. Trying again in 2.00 seconds...

rabbitmqctl status seems to show that the nodes are fine.

When I press the send mail button (which adds it to the queue for celery) via the website, no error is presented, but the mail is never sent.

Any suggestions as to what may be going on?

asked 20 May '14, 03:53

thefirebird
23115
accept rate: 0%


The tutorial you used it pretty old, and probably doesn't work with the latest versions of celery and django.

Try following this instead: Using Celery with Django

permanent link

answered 20 May '14, 21:12

seanf
12.2k42136
accept rate: 37%

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: 20 May '14, 03:53

question was seen: 13,081 times

last updated: 20 May '14, 21:12

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