🐛 [Stream Firestore to BigQuery] Unable to stream Firestore DB to a different project #2140
Labels
extension: firestore-bigquery-export
Related to firestore-bigquery-export extension
type: bug
Something isn't working
[READ] Step 1: Are you in the right place?
Yes, for Stream Firestore to BigQuery extension, error during setup.
[REQUIRED] Step 2: Describe your configuration
us
project-name
(Different than location of Firestore DB)users
false
dataset-name
users
DAY
creation_timestamp
creation_timestamp
TIMESTAMP
Parameter not set
100
Parameter not set
Parameter not set
yes
yes
no
Parameter not set
[REQUIRED] Step 3: Describe the problem
The extension is stuck in "Configuring BigQuery Sync" when I check "Runtime status" in the extension management page.
When I check the cloud functions that were triggered, I see this error on the function: syncBigQuery
ext-firestore-bigquery-export-users2-syncBigQueryqu3g9rrcqx5t Unhandled error ApiError: Access Denied: Dataset project-name:dataset-name: Permission bigquery.datasets.get denied on dataset project-name:dataset-name (or it may not exist). at new ApiError (/workspace/node_modules/@google-cloud/common/build/src/util.js:75:15) at Util.parseHttpRespBody (/workspace/node_modules/@google-cloud/common/build/src/util.js:210:38) at Util.handleResp (/workspace/node_modules/@google-cloud/common/build/src/util.js:151:117) at /workspace/node_modules/@google-cloud/common/build/src/util.js:534:22 at onResponse (/workspace/node_modules/@google-cloud/common/node_modules/retry-request/index.js:259:7) at /workspace/node_modules/teeny-request/build/src/index.js:226:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 403, errors: [ { message: 'Access Denied: Dataset project-name:dataset-name: Permission bigquery.datasets.get denied on dataset project-name:dataset-name (or it may not exist).', domain: 'global', reason: 'accessDenied' } ],
Steps to reproduce:
Configure Big Query streaming from Firestore with the above configuration, BigQuery Project ID must be different than the Firestore source project.
I changed the dataset name to something else other than the default (which was firestore_export).
Expected result
Extension is properly initialized, i.e. Runtime status should say "Sync setup completed".
Actual result
Extension is not properly initialized due to permission errors across project, see above.
The text was updated successfully, but these errors were encountered: