-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Run Airflow DAGs/Tasks as Different User #655
Comments
Airflow log folder needs to have 777 permissions After >> import os
>> directory='/etc/airflow/logs/dag_id=unit_validation_Lyft/run_id=backfill__2020-07-01T10:00:00-04:00/task_id=Collision.BasicValidation.raw_data_detection'
>>> oct(os.lstat(directory).st_mode)
'0o40777'
>>> oct(mode)
'0o777' |
setting AIRFLOW__CORE__DEFAULT_IMPERSONATION isn't working. Also setting |
This issue might be resolved in Airflow version >= 2.6.0 |
A temporary solution (for testing DAGs) might be to save logs somewhere else by setting env AIRFLOW__LOGGING__BASE_LOG_FOLDER='~/logs' airflow dags backfill dag_id |
Running/backfilling DAGs as any other user rather than Airflow always fails with
PermissionError
(tested on Airflow 2.5.1 on Morbius)The text was updated successfully, but these errors were encountered: