adrian-edbert opened a new issue, #54175: URL: https://github.com/apache/airflow/issues/54175
### Apache Airflow version 3.0.3 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? GitDagBundle on run_as_user failed with permission denied when acquiring locks ### What you think should happen instead? Task run should succeed without any errors GitDAGBundle should run without any issue with run_as_user ### How to reproduce Task don't have permission on lock file - Prepare two user, one is 'worker' user, one is the 'run_as_user' target - Set sudoers, 'worker' user allow sudo into 'run_as_user' - Set dag_processor.dag_bundle_storage_path with specific path - Spawn a Celery Worker run as 'worker' user - Create a DAG on Airflow 3.0.3 with 'run_as_user' set on the run_as_user parameter - Run the task targeting the worker that is run by 'worker' user - Task should throw an error - PermissionError: [Errno 13] Permission denied: 'dag_processor.dag_bundle_storage_path'/_locks/git_path.lock ### Operating System Debian GNU/Linux 12 (bookworm) ### Versions of Apache Airflow Providers apache-airflow-providers-git==0.0.4 ### Deployment Docker-Compose ### Deployment details image: apache/airflow:3.0.3-python3.12 ### Anything else? _No response_ ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
