Skip to content
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 Errors When Specifying a Destination Folder in Google Drive Integration (PR #31885) #45853

Closed
2 tasks done
svrajesh21 opened this issue Jan 21, 2025 · 1 comment
Closed
2 tasks done
Labels
area:core kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet pending-response provider:google Google (including GCP) related issues

Comments

@svrajesh21
Copy link

Apache Airflow version

2.10.4

If "Other Airflow 2 version" selected, which one?

2.10.1

What happened?

When configuring an Airflow task to upload a file to Google Drive with a destination folder specified, the task intermittently fails with a permission error. This issue occurs even when the service account used has appropriate access rights to the target folder.

The error was not observed before the introduction of the destination folder feature in PR #31885.

What you think should happen instead?

The task should upload the file to the specified destination folder without encountering permission errors, provided the service account has the necessary access rights.

How to reproduce

Configure an Airflow task using GoogleDriveToGCSOperator or similar.
Specify a valid destination folder ID for the task.
Ensure the service account used has editor permissions for the destination folder.
Execute the task.
Expected Outcome:
The file should upload successfully to the specified folder.

Actual Outcome:
The task fails with a permission error.

Operating System

Ubuntu 22.04.1 LTS

Versions of Apache Airflow Providers

apache-airflow-providers-google==9.1.0

Deployment

Official Apache Airflow Helm Chart

Deployment details

Helm chart version: 1.7.0
Kubernetes version: v1.26.2
Custom configurations:
Service account with editor permissions for Google Drive.
DAGs mounted via NFS.

Anything else?

Adding detailed logs captured from the Airflow task and Google Drive API might help pinpoint the issue. The error appears to be intermittent, so further investigation into the conditions leading to the failure is necessary.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@svrajesh21 svrajesh21 added area:core kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet labels Jan 21, 2025
@dosubot dosubot bot added the provider:google Google (including GCP) related issues label Jan 21, 2025
@potiuk
Copy link
Member

potiuk commented Jan 21, 2025

There is lack of details - logs etc. - and then maybe @stiak might help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet pending-response provider:google Google (including GCP) related issues
Projects
None yet
Development

No branches or pull requests

2 participants