We're running into a permission error when using Airflow, receiving the following error:
PermissionError: [Errno 13] Permission denied: '/usr/local/airflow/logs/scheduler/2019-12-18/../../../../home
We've tried using chmod 777 -R on the /usr/local/airflow/logs/schedule directory within the container but this doesn't seem to have done the trick.
We have this piece in our entrypoint.sh script:
export AIRFLOW__CORE__BASE_LOGS_FOLDER="/usr/local/airflow/logs
Has anyone else run into this airflow log permission issue? Can't seem to find much about this one in particular online.
Folder permission that is bind mounted could also result in this error.
For example:
docker-compose.yml (pseudo code)
service_name:
...
volumes:
- /home/user/airflow_logs:/opt/airflow/logs
Grant permission to the local folder, so that airflow container can write logs, create directory if needed etc.,
sudo chmod u=rwx,g=rwx,o=rwx /home/user/airflow_logs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With