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

storage-resize-image won't deploy because "Some services used by this extension have not been set up on your Firebase project." #2253

Open
seanmavley opened this issue Jan 13, 2025 · 1 comment

Comments

@seanmavley
Copy link

Below is the error and next is the steps I've taken so far.

The error

Error: Some services used by this extension have not been set up on your Fire base project. To ensure this extension works as intended, you must enable the se services by following the provided links, then retry this command 

* Firebase Storage: store and retrieve user-generated files like images, audio, and video without server-side code. https://console.firebase.google.com/project/moyato-7f9c9/storage
This is the full log firebase deploy

=== Deploying to 'moyato-7f9c9'...

i deploying storage, firestore, functions, hosting, extensions
Running command: npm --prefix "$RESOURCE_DIR" run lint

lint
eslint src/**.ts

Running command: npm --prefix "$RESOURCE_DIR" run build

build
tsc

✔ functions: Finished running predeploy script.
i storage: ensuring required API firebasestorage.googleapis.com is enabled...
✔ storage: required API firebasestorage.googleapis.com is enabled
i firebase.storage: checking storage.rules for compilation errors...
✔ firebase.storage: rules file storage.rules compiled successfully
i firestore: reading indexes from firestore.indexes.json...
i cloud.firestore: checking firestore.rules for compilation errors...
✔ cloud.firestore: rules file firestore.rules compiled successfully
i functions: preparing codebase default for deployment
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
i artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
✔ functions: required API cloudfunctions.googleapis.com is enabled
✔ artifactregistry: required API artifactregistry.googleapis.com is enabled
✔ functions: required API cloudbuild.googleapis.com is enabled
i functions: Loading and analyzing source code for codebase default to determine what to deploy
Serving at port 8951

i extensions: ensuring required API firebaseextensions.googleapis.com is enabled...
✔ extensions: required API firebaseextensions.googleapis.com is enabled
i functions: Loaded environment variables from .env.moyato-7f9c9.
i functions: preparing functions directory for uploading...
i functions: packaged /home/khophi/Development/Personal/moyato/barter/functions (126.58 KB) for uploading
i functions: ensuring required API run.googleapis.com is enabled...
i functions: ensuring required API eventarc.googleapis.com is enabled...
i functions: ensuring required API pubsub.googleapis.com is enabled...
i functions: ensuring required API storage.googleapis.com is enabled...
✔ functions: required API storage.googleapis.com is enabled
✔ functions: required API eventarc.googleapis.com is enabled
✔ functions: required API pubsub.googleapis.com is enabled
✔ functions: required API run.googleapis.com is enabled
i functions: generating the service identity for pubsub.googleapis.com...
i functions: generating the service identity for eventarc.googleapis.com...
i extensions: ensuring required API firebaseextensions.googleapis.com is enabled...
✔ extensions: required API firebaseextensions.googleapis.com is enabled
i extensions: ensuring required API compute.googleapis.com is enabled...
✔ extensions: required API compute.googleapis.com is enabled
The following extension instances will be configured:
storage-resize-images (firebase/[email protected])

i extensions: By installing an extension instance onto a Firebase project, you accept the Firebase Extensions User Terms of Service: https://firebase.google.com/terms/extensions/user
i storage: latest version of storage.rules already up to date, skipping upload...
i firestore: deploying indexes...
i firestore: latest version of firestore.rules already up to date, skipping upload...
✔ firestore: deployed indexes in firestore.indexes.json successfully for (default) database
✔ functions: functions folder uploaded successfully
i hosting[moyato-7f9c9]: beginning deploy...
i hosting[moyato-7f9c9]: found 54 files in dist/barter/browser
✔ hosting[moyato-7f9c9]: file upload complete

Error: Some services used by this extension have not been set up on your Firebase project. To ensure this extension works as intended, you must enable these services by following the provided links, then retry this command

Firebase Storage: store and retrieve user-generated files like images, audio, and video without server-side code.
https://console.firebase.google.com/project/moyato-7f9c9/storage

How I got to that point:

  1. Installed the https://extensions.dev/extensions/firebase/storage-resize-images extension. Filled out all the required fields
  2. Synced it to local via firebase ext:export
  3. firebase deploy throws the above error

I have firebase storage setup and already in use, so an extension complaining my storage isn't setup is weird.

What am I doing wrong?

@seanmavley seanmavley changed the title storage-resize-image won't deploy because "Some services used by this extension have not been set up on your Fire base project." storage-resize-image won't deploy because "Some services used by this extension have not been set up on your Firebase project." Jan 13, 2025
@seanmavley
Copy link
Author

seanmavley commented Jan 14, 2025

Update: Trying to install via web console throws this error sometimes. Retrying the install "succeeds" and the error no longer shows up. But deployment from cli fails, although the extension functions

Use the details below to help resolve this error, then retry installing 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-storage-resize-images/resources/backfillResizedImages: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"500","ResourceErrorMessage":"Gen1 operation for function projects/moyato-app/locations/us-central1/functions/ext-storage-resize-images-backfillResizedImages failed: Build failed: com.google.net.rpc3.client.RpcClientException: <eye3 title='/ArgoAdminNoCloudAudit.CreateBuild, INTERNAL'/> CLIENT_ERROR;google.devtools.cloudbuild.v1/ArgoAdminNoCloudAudit.CreateBuild;projects/-/serviceAccounts/117789708590500044065 can not be accessed by IAM. Please ensure it exists. If this is a new resource or recently had IAM changes, please retry in accordance with https://cloud.google.com/iam/docs/access-change-propagation.;StartTimeMs=1736889381141;unknown;ResFormat=uncompressed;NoServerTime;LogBytes=256;Non-FailFast;EndUserCredsRequested;EffSecLevel=privacy_and_integrity;ReqFormat=uncompressed;ReqID=3681076c9ede3c62;GlobalID=0;Server=[2002:a05:6600:6e44:b0:398:5dd6:162]:4001\n\tSuppressed: CriticalInputFailure: com.google.cloud.build.api.service.CreateBuildAction.produceMaybeResultWrite failed while trying to inject @com.google.cloud.build.api.service.CreateBuildAction$FromBuildBackend com.google.longrunning.Operation\n\tSuppressed: CriticalInputFailure: com.google.cloud.build.api.service.CreateBuildAction.produceFinalResult failed while trying to inject @com.google.cloud.build.api.service.CreateBuildAction$FromBuildBackend com.google.longrunning.Operation\n\tSuppressed: com.google.common.labs.concurrent.LabsFutures$LabeledExecutionException: GraphFuture{[email protected]$FinalResult com.google.longrunning.Operation} failed: com.google.net.rpc3.client.RpcClientException: <eye3 title='/ArgoAdminNoCloudAudit.CreateBuild, INTERNAL'/> CLIENT_ERROR;google.devtools.cloudbuild.v1/ArgoAdminNoCloudAudit.CreateBuild;projects/-/serviceAccounts/117789708590500044065 can not be accessed by IAM. Please ensure it exists. If this is a new resource or recently had IAM changes, please retry in accordance with https://cloud.google.com/iam/docs/access-change-propagation.;StartTimeMs=1736889381141;unknown;ResFormat=uncompressed;NoServerTime;LogBytes=256;Non-FailFast;EndUserCredsRequested;EffSecLevel=privacy_and_integrity;ReqFormat=uncompressed;ReqID=3681076c9ede3c62;GlobalID=0;Server=[2002:a05:6600:6e44:b0:398:5dd6:162]:4001\n."}; RESOURCE_ERROR at /deployments/firebase-ext-storage-resize-images/resources/generateResizedImage: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"500","ResourceErrorMessage":"Gen1 operation for function projects/moyato-app/locations/us-central1/functions/ext-storage-resize-images-generateResizedImage failed: Build failed: com.google.net.rpc3.client.RpcClientException: <eye3 title='/ArgoAdminNoCloudAudit.CreateBuild, INTERNAL'/> CLIENT_ERROR;google.devtools.cloudbuild.v1/ArgoAdminNoCloudAudit.CreateBuild;projects/-/serviceAccounts/117789708590500044065 can not be accessed by IAM. Please ensure it exists. If this is a new resource or recently had IAM changes, please retry in accordance with https://cloud.google.com/iam/docs/access-change-propagation.;StartTimeMs=1736889370463;unknown;ResFormat=uncompressed;NoServerTime;LogBytes=256;Non-FailFast;EndUserCredsRequested;EffSecLevel=privacy_and_integrity;ReqFormat=uncompressed;ReqID=7c791b5718f108c4;GlobalID=0;Server=[2002:a05:6600:6aa2:b0:394:ce89:faf2]:4001\n\tSuppressed: CriticalInputFailure: com.google.cloud.build.api.service.CreateBuildAction.produceMaybeResultWrite failed while trying to inject @com.google.cloud.build.api.service.CreateBuildAction$FromBuildBackend com.google.longrunning.Operation\n\tSuppressed: CriticalInputFailure: com.google.cloud.build.api.service.CreateBuildAction.produceFinalResult failed while trying to inject @com.google.cloud.build.api.service.CreateBuildAction$FromBuildBackend com.google.longrunning.Operation\n\tSuppressed: com.google.common.labs.concurrent.LabsFutures$LabeledExecutionException: GraphFuture{[email protected]$FinalResult com.google.longrunning.Operation} failed: com.google.net.rpc3.client.RpcClientException: <eye3 title='/ArgoAdminNoCloudAudit.CreateBuild, INTERNAL'/> CLIENT_ERROR;google.devtools.cloudbuild.v1/ArgoAdminNoCloudAudit.CreateBuild;projects/-/serviceAccounts/117789708590500044065 can not be accessed by IAM. Please ensure it exists. If this is a new resource or recently had IAM changes, please retry in accordance with https://cloud.google.com/iam/docs/access-change-propagation.;StartTimeMs=1736889370463;unknown;ResFormat=uncompressed;NoServerTime;LogBytes=256;Non-FailFast;EndUserCredsRequested;EffSecLevel=privacy_and_integrity;ReqFormat=uncompressed;ReqID=7c791b5718f108c4;GlobalID=0;Server=[2002:a05:6600:6aa2:b0:394:ce89:faf2]:4001\n."}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant