I have Airflow 1.9 running inside a virtual environment, set up with Celery and Redis and it works well. However, I wanted to daemon-ize the set up and used the instructions her
Your airflow-worker.service
is trying to run the airflow worker as the root
user. In order to run airflow worker as root, you must set C_FORCE_ROOT="true"
in your airflow environment file (/etc/default/airflow
). However, this is not recommended and I suspect it is not the best fix for you.
When trying to run airflow worker manually as root you should see a warning about this. Because you have not seen this warning I suspect that you are able to start the worker without issue manually because you are running it as a properly configured airflow
user and not as root
. Thus, the recommended solution would be to change the following lines in your airflow-worker.service
file:
User=airflow
Group=airflow