[Fixed]-Django/celery – celery status: Error: No nodes replied within time constraint

-3👍

I solved my problem, it was a very simple solution, but it was also a weird one:
What I did was:

$ /etc/init.d/celerybeat restart
$ /etc/init.d/celeryd restart
$ service celeryd restart

I had to do this in that order, other way I’d get an ugly Error: No nodes replied within time constraint.

1👍

Use the following command to find the problem :

C_FAKEFORK=1 sh -x /etc/init.d/celeryd start

This usually happens because there are problems in your source project(permission issues, syntax error etc.)

As mentioned in celery docs:-

If the worker starts with “OK” but exits almost immediately afterwards
and there is nothing in the log file, then there is probably an error
but as the daemons standard outputs are already closed you’ll not be
able to see them anywhere. For this situation you can use the
C_FAKEFORK environment variable to skip the daemonization step

Good Luck

Source: Celery Docs

👤rohan

0👍

its because the celery daemon might not be started. This is one reason. So kindly restart it using python manage.py celeryd –loglevel=INFO

Leave a comment