-
Notifications
You must be signed in to change notification settings - Fork 123
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
Permission Denied for DBT Directory #897
Comments
Hey @mkeightleyentrata! Fancy seeing you here again, diving into the depths of permission mysteries. Let's decode this enigma together! 🕵️♂️ The difference between the
The permission error in To avoid this error in the latest official release, you can:
The specific differences in the codebase between the
The specific permissions required by the
Unfortunately, I wasn't able to find specific changes made in the Sources
|
Hi @mkeightleyentrata, thanks for reporting the issue! Is this error happening when you try to execute tasks? Please share the steps/code so we can reproduce the problem you're facing. It would also be helpful if you could share more lines of the log stack trace. This usually helps us reproduce and fix the issue. By default, Cosmos attempts to run dbt commands using a Python subprocess when using Could you try making the system environment variables available to the the process running the dbt command by setting operator args?
|
Hi @tatiana , thanks for your help. I get the following error on the run step of a model
Here is the dag that I'm attempting to run. I decided to take out the invocation_mode argument so that I can run on what I understand to be the latest official release of 1.3.2. I am able to run this successfully with or without
|
Hi @mkeightleyentrata Cosmos 1.4 was officially released:
Please, could you also share your |
I had trouble getting cosmos dags to run on version 1.3.2. I would always end up with
PermissionError: [Errno 13] Permission denied: /path/to/dbt_project
.I tried
chmod -R 777 /path/to/dbt_project
in my Dockerfile with no luck.The one solve I found was this version
astronomer-cosmos==1.4.0a1
. I addedinvocation_mode=InvocationMode.DBT_RUNNER
to my ExecutionConfig and things started running as expected. Per the Invocation Modes section of these docs there is the DBT_RUNNER invocation mode and the SUBPROCESS mode. While things run in the DBT_RUNNER mode, the SUBPROCESS mode still gives me the permission error.I am wondering what the difference between the DBT_RUNNER and SUBPROCESS modes where the SUBPROCESS mode throws the permission error but the DBT_RUNNER mode does not. And if there's a way to avoid the permission error in the latest official release since Invocation Modes can't be used until 1.4 is released
The text was updated successfully, but these errors were encountered: