This kind of error can be reproduced by, for example, running this version of the clean_dbt makefile recipe that will delete the /airflow/dbt/target/ directory (which contains compiled dbt models/resources). Then run a DAG that includes a dbt task, which will recreate the /airflow/dbt/target/ and then try to write compiled models to that directory, but the permissions of the newly created directory won't allow that write.
It's simple enough to just tack on mkdir airflow/dbt/target to the clean_dbt recipe, but I want to use this issue to track appearances of this issue, help reliably understand the cause, and account for it.
This kind of error can be reproduced by, for example, running this version of the clean_dbt makefile recipe that will delete the
/airflow/dbt/target/
directory (which contains compiled dbt models/resources). Then run a DAG that includes a dbt task, which will recreate the/airflow/dbt/target/
and then try to write compiled models to that directory, but the permissions of the newly created directory won't allow that write.It's simple enough to just tack on
mkdir airflow/dbt/target
to theclean_dbt
recipe, but I want to use this issue to track appearances of this issue, help reliably understand the cause, and account for it.