potiuk commented on issue #13200: URL: https://github.com/apache/airflow/issues/13200#issuecomment-749125767
Confirmed. The reason is "working_directory" parameter not set in DaemonContext https://github.com/apache/airflow/blob/97eee350e41f6f00ad3076489a5dac2e5beaa266/airflow/cli/commands/scheduler_command.py#L48 By default the "working_directory" is set to "/" which means that the pid file is attempted to be created as "/<FILE>" - which for non-root user will fail. This works for example in Breeze as we use root user there, but in productionsetup with non-root user it will fail. I think we should assume (extending to the code in https://github.com/apache/airflow/blob/97eee350e41f6f00ad3076489a5dac2e5beaa266/airflow/utils/cli.py#L222) than when relative path is specified, it is relative to ${AIRFLOW_HOME}. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
