celery daemon - permission denied on log file

核能气质少年 提交于 2019-12-05 09:40:21

According to the documentation:

The init scripts can only be used by root, and the shell configuration file must also be owned by root"

So, you need to run:

sudo chown root:root /etc/default/celeryd

and

sudo /etc/init.d/celeryd start

By the way, you have invalid syntax in your celeryd config file:

CELERY_BIN = "/mix_daemon/venv/bin/celery"

spaces is not allowed with "=" operator, the correct is:

CELERY_BIN="/mix_daemon/venv/bin/celery"

Also check, that you have your bin in /mix_daemon not /home//mix_daemon

It helps me:

sudo chown -R myuser:root /var/run/celery/
sudo chown -R myuser:root /var/log/celery/
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!