Closed billingross closed 2 months ago
Error:
API [cloudresourcemanager.googleapis.com] not enabled on project [216202600143].
Would you like to enable and retry (this will take a few minutes)? (y/N)?
ERROR: (gcloud.beta.functions.deploy) User [216202600143@cloudbuild.gserviceaccount.com] does not have permission to access projects instance [trellis-v2] (or it may not exist): Cloud Resource Manager API has not been used in project 216202600143 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=216202600143 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
- '@type': type.googleapis.com/google.rpc.Help
links:
- description: Google developers console API activation
url: https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=216202600143
- '@type': type.googleapis.com/google.rpc.ErrorInfo
domain: googleapis.com
metadata:
consumer: projects/216202600143
service: cloudresourcemanager.googleapis.com
reason: SERVICE_DISABLED
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/gcloud" failed: step exited with non-zero status: 1
I don't understand how I was able to deploy create-blob-node
functions without this but when trying to deploy db-query
it doesn't work
Enabled Cloud Resource Manager API
.
Error:
ERROR: (gcloud.beta.functions.deploy) OperationError: code=3, message=Could not create or update Cloud Run service trellis-db-query. Revision 'trellis-db-query-00001-hap' is not ready and cannot serve traffic. Problem connecting to VPC Connector projects/trellis-v2/locations/us-central1/connectors/trellis: Serverless VPC Access connector is not found. Please visit https://cloud.google.com/run/docs/troubleshooting for in-depth troubleshooting documentation.
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/gcloud" failed: step exited with non-zero status: 1
I'm not using a VPC yet so I'm just going to try disabling it and see if I can do without.
Error:
WARNING: Your account does not have permission to check or bind IAM policies to project [https://cloudresourcemanager.googleapis.com/v1/projects/trellis-v2]. If the deployment fails, ensure [service-216202600143@gcp-sa-pubsub.iam.gserviceaccount.com] has the role [roles/iam.serviceAccountTokenCreator] before retrying.
ERROR: (gcloud.beta.functions.deploy) ResponseError: status=[409], code=[Ok], message=[unable to queue the operation]
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/gcloud" failed: step exited with non-zero status: 1
I don't see this service account existing so I'm not sure what's going on. I'm going to try specifying the compute engine service account in the Cloud Build trigger.
Trying to use the default compute engine service account just spawned more stupid looking errors so I'm just going to try moving to using a 2nd gen trigger.