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

🐛 [firestore-bigquery-export] Resource Error when updating from v1.46 to v1.47 through Firebase extensions console #2017

Closed
amungi opened this issue Mar 26, 2024 · 0 comments · Fixed by #2018
Labels
type: bug Something isn't working

Comments

@amungi
Copy link

amungi commented Mar 26, 2024

[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: v0.1.46
  • Configuration values (redact info where appropriate):
    • BigQuery Dataset location: redacted
    • BigQuery Project ID: redacted
    • Collection path: redacted
    • Enable Wildcard Column field with Parent Firestore Document IDs (Optional): false
    • Dataset ID: redacted
    • Table ID: redacted
    • BigQuery SQL table Time Partitioning option type (Optional): NONE
    • BigQuery Time Partitioning column name (Optional): Parameter not set
    • Firestore Document field name for BigQuery SQL Time Partitioning field option (Optional): Parameter not set
    • BigQuery SQL Time Partitioning table schema field(column) type (Optional): omit
    • BigQuery SQL table clustering (Optional): Parameter not set
    • Maximum number of synced documents per second (Optional): 100
    • Backup Collection Name (Optional): Parameter not set
    • Transform function URL (Optional): Parameter not set
    • Use new query syntax for snapshots: yes
    • Exclude old data payloads (Optional): no
    • Import existing Firestore documents into BigQuery?: yes
    • Existing Documents Collection (Optional): redacted
    • Use Collection Group query (Optional): no
    • Docs per backfill: 200
    • Cloud KMS key name (Optional): Parameter not set

[REQUIRED] Step 3: Describe the problem

When upgrading the firestore-bigquery-export@0.1.46 extension to firestore-bigquery-export@0.1.47 in the Firebase Extensions console in the browser (Firebase -> Build -> Extensions -> click Manage button next to the "Stream Firestore to BigQuery" extension entry, and then click the Update Extension button), the upgrade process fails with the following error:

Error updating. Some extension resources might not be deployed. View the error details above to help you retry the update.

Use the details below to help resolve this error, then retry updating the extension. If you continue to get this error, we recommend uninstalling the extension to remove any extension resources that might be deployed.

; RESOURCE_ERROR at /deployments/firebase-ext-firestore-bigquery-export/resources/fsimportexistingdocs: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"Function failed on loading user code. This is likely due to a bug in the user code. Error message: Function 'fsimportexistingdocs' is not defined in the provided module.\nDid you specify the correct target function to execute?\nCould not load the function, shutting down.. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation."}

Steps to reproduce:

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

  1. Open the Firebase Extensions console in the browser (Firebase -> Select Your Project -> Build -> Extensions).
  2. firestore-bigquery-export Extension version: v0.1.46 should be installed and configured.
  3. Click Manage button next to the "Stream Firestore to BigQuery" extension entry
  4. On the Extension details page, click the Update Extension button to initiate the process to upgrade the extension to v0.1.47.
  5. On the next screen, review / update the required parameter details, and click the Update Extension button.
  6. The extension starts getting updated and shows the message that it will take 3-5 minutes to update.

The extension update fails with the RESOURCE_ERROR message given above, and in the attached screenshot.

Expected result

firestore-bigquery-export Extension version: v0.1.46 should get updated to firestore-bigquery-export Extension version: v0.1.47 without any errors.

Actual result

The extension update fails with the RESOURCE_ERROR message given above, and in the attached screenshot.

FirebaseExt_Screenshot 2024-03-26 224648

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant