I crossed my brains with this from the last few days, I saw other problems in stackoverflow (since this is a duplicate question), and I tried everything to make this work, the workers work fine, but celery doesn't start as a process.
I ran the command:
sudo service celeryd start
and I get:
celery init v10.1. Using config script: /etc/default/celeryd celery multi v3.1.23 (Cipater) > Starting nodes... > worker1@ip-172-31-21-215 : OK
I run:
sudo service celeryd status
and I get:
celery init v10.1. Using config script: /etc/default/celeryd celeryd down: no pidfiles found
celeryd down: no pidfiles found error is what i need to solve.
I know this question is a duplicate, but still combined with me on this because I tried them all and still could not solve it.
I am deploying this script on Amazon web services. I am using a virtual environment.
init.d script is taken directly from here , and then I gave it the necessary permissions.
Here is my configuration file:
# Names of nodes to start
I used this process to create a celery user using this article.
My project is a Django project, and I specified the DJANGO_SETTINGS_MODULE environment DJANGO_SETTINGS_MODULE in the celery settings file, as indicated in the documentation and also in the stackoverflow file.
Do I need to change something in the init.d script file or something else that needs to be added to the celery configuration file ... This concerns the celery user that I created, because I also tried to specify
CELERYD_USER = "" CELERYD_GROUP = ""
and also changing the value of DEFAULT_USER to "" in the init.d script. Nevertheless, the problem continued.
One answer also said that there might be some errors in the project ... but I did not find such errors in all tests.
PS: I indicated, and for privacy issues, they have their original names.