How to solve celerybeat is down: no pid file found?

Viewed 1479

I have followed instructions from https://pythad.github.io/articles/2016-12/how-to-run-celery-as-a-daemon-in-production It works pretty well for celeryd, however when starting celerybeat it says pid file not found.

I've used this tutorial on my previous projects and it did fine for both celeryd and celerybeat. The difference of this project only is all project files including the django project are owned by root. I fail at finding more details about the issue.

1 Answers

You also need to change permissions of the log directories that celery writes to:

sudo chmod 755 /var/log/celery/ /var/run/celery/
sudo chown root:root /var/log/celery/ /var/run/celery/
Related