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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
