Error starting celeryd

I post this question (and answer), so if anyone else has this problem in the future, you can post it.

If you are trying to run celeryd in Django like this:

python manage.py celeryd

You may receive the following error immediately after it starts:

celery@eric-desktop-dev has started.
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  <... snip ...>
  File "/usr/local/lib/python2.6/dist-packages/amqplib-0.6.1-py2.6.egg/amqplib/client_0_8/connection.py", line 134, in __init__
    self._x_start_ok(d, login_method, login_response, locale)
  File "/usr/local/lib/python2.6/dist-packages/amqplib-0.6.1-py2.6.egg/amqplib/client_0_8/connection.py", line 704, in _x_start_ok
    args.write_longstr(response)
  File "/usr/local/lib/python2.6/dist-packages/amqplib-0.6.1-py2.6.egg/amqplib/client_0_8/serialization.py", line 352, in write_longstr
    self.write_long(len(s))
TypeError: object of type 'NoneType' has no len()

A rather cryptic error message that does not have real information about where to go to fix the problem. Below is the answer, so you do not spend a lot of time on this error, as today :)

+3
source share
1 answer

settings.py. ( "S" BROKER_PASSWORD). , , , :)

+1

Source: https://habr.com/ru/post/1748026/


All Articles