You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/28 10:26:34 UTC
[GitHub] [airflow] idnoclip commented on issue #11309: FileNotFoundError: [Errno 2] No such file or directory: 'airflow': 'airflow'
idnoclip commented on issue #11309:
URL: https://github.com/apache/airflow/issues/11309#issuecomment-1080474228
I had similar issue on Raspberry Pi - it seemed that somehow service used different PATH variable than the user running it. I managed to work it around by modyfing /etc/systemd/system/airflow-scheduler.service file, replacing the line:
`ExecStart=/bin/bash -c '/path/to/airflow scheduler'`
with
`ExecStart=/bin/bash -c 'PATH=$PATH:/path/to/airflow; /path/to/airflow scheduler'`
This way i was sure that the PATH variable contains path to the airflow executable.
Then I had to stop services, reload service daemon and start them again:
`sudo service airflow-webserver stop`
`sudo service airflow-scheduler stop`
`sudo systemctl daemon-reload`
`sudo service airflow-webserver start`
`sudo service airflow-scheduler start`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org