[go: nahoru, domu]

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [firestore-bigquery-export] Access Denied: BQ Project:Dataset Name: Permission bigquery.datasets.get denied on dataset BQ Project:Dataset Name: (or it may not exist). #1861

Closed
Hunnainwali opened this issue Nov 30, 2023 · 2 comments
Assignees
Labels
extension: firestore-bigquery-export Related to firestore-bigquery-export extension type: bug Something isn't working

Comments

@Hunnainwali
Copy link
Hunnainwali commented Nov 30, 2023

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs for a specific extension in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • To file a bug against the Firebase Extensions platform, or for an issue affecting multiple extensions, please reach out to
    Firebase support directly.

[REQUIRED] Step 2: Describe your configuration

  • Extension name: firestore-bigquery-export
  • Extension version: 0.1.41

Cross project connection between Firestore and BigQuery with below configuration settings.

Screenshot 2023-11-30 at 2 06 29 PM

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

I attempted to establish a cross-project connection between Firestore and BigQuery.

After installation, contrary to expectations, no dataset was created. The Error Logs in the Firestore collection indicated "Not found: Dataset..."

For another instance, instead of defining a new dataset, I used the same dataset and location region that already existed in BigQuery. However, the Error Logs in the Firestore collection now state "Access Denied: Dataset Project_Name:Dataset_Name: Permission bigquery.datasets.get denied on dataset Project_Name:Dataset_Name (or it may not exist)."

Expected result

I have two different project in google cloud, one for Firestore and other for BigQuery, but extension is not creating any dataset or table, nor able to access existing dataset in BigQuery.

Note:
Permission for
Dataset shows
BigQuery Data Owner -> firebase-measurement@system.gserviceaccount.com has BigQuery
Google Project
IAM -> BigQuery Data Owner/Editor

Actual result

No dataset and table is being created. And Firestore logs produce error that either dataset does not exist or don't have permission to access.

@Hunnainwali Hunnainwali added the type: bug Something isn't working label Nov 30, 2023
@pr-Mais pr-Mais added the extension: firestore-bigquery-export Related to firestore-bigquery-export extension label Nov 30, 2023
@jauntybrain jauntybrain self-assigned this Jan 12, 2024
@jauntybrain
Copy link
Contributor

Hi @Hunnainwali, thanks for providing a detailed issue report!

I see you specified that firebase-measurement@system.gserviceaccount.com has the BigQuery dataEditor role.

However, as per documentation, you need to grant the dataEditor role in the BigQuery project IAM to the following service account:

ext-${param:EXT_INSTANCE_ID}@${param:PROJECT_ID}.iam.gserviceaccount.com

@pr-Mais
Copy link
Member
pr-Mais commented Jan 26, 2024

Feel free to open a new issue if the issue persists after following @jauntybrain comment.

@pr-Mais pr-Mais closed this as completed Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension: firestore-bigquery-export Related to firestore-bigquery-export extension type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants