Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
-4 votes
0 answers
31 views

Configure Cloud Code with gcloud cli login

My gcp organization is connected to WIF and use a different identity provider than Google ID (Github as an OIDC Provider). I'm able to use the gcloud cli by the use of a config file based login, and ...
Tcharl's user avatar
  • 331
2 votes
1 answer
97 views

'str' object is not callable in Google SDK when trying to fetch a spreadsheet

I'm trying to fetch a spreadsheet with Google SDK. I'm logged into an account with a Service Account Token Creator role and the service account has access rights to the spreadsheet. This is my code: ...
Szymon Gołębiowski's user avatar
1 vote
1 answer
54 views

GCloud Error: Caller is missing permission 'iam.serviceaccounts.actAs' on service account [closed]

Situation This is pretty much my first experience with cloud tools. I'm trying to enqueue (schedule) a cloud task from a cloud function which gets called from my flutter app, the task would at the ...
ThisIsSidam's user avatar
0 votes
0 answers
66 views

Use Grpc-web with Cloud Endpoints gRPC for Cloud Run with ESPv2

I am creating a GRPC service that should be accessible from the web but have found no working guides for getting grpc-web to work with cloud-endpoints and ESPv2. I have used this guide to set ...
timebandit's user avatar
0 votes
1 answer
107 views

GCloud Pub/Sub Pull subscription limit of 5000 messages

Currently I am working on a project that publishes any received request contents to a pub sub topic and subsequent subscriber, in order to pull and batch process all of the messages at once every ...
William Wood's user avatar
2 votes
1 answer
336 views

`google.auth` python SDK not reading granted scopes from credentials file

I've run: gcloud auth application-default login --client-id-file google_oauth_client_id.json --scopes="https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/calendar....
Ian Burnette's user avatar
  • 1,092
0 votes
0 answers
78 views

gcloud CLI + flags-file: problems with repeated flags

I am using the gcloud CLI to create a new Workstation configuration. To simplify configuration management I am also using a yaml configuration file to specify flag values based on Google's ...
Toby's user avatar
  • 21
0 votes
0 answers
64 views

Oauth client authorization fails because of the Google ADC

I'm trying to work on my home project where I contact Google services like Gmail, Sheets, Drive. Services that are not Google Cloud per se. I've implemented GmailApi quickstart guide for python, but ...
Kacper's user avatar
  • 451
0 votes
1 answer
364 views

Vertex AI `gcloud ai models list` returns "Listed 0 items" on a fully activated project

I am trying to access Gemini models via the Vertex AI API but am unable to see any publisher models in my project. Project ID: virio-462215 The Core Problem: When I run the command gcloud ai models ...
Ed Landau's user avatar
  • 1,028
0 votes
1 answer
64 views

Git Config Issue related to Git Credential Helper

I have been facing some authentication issue. What is being used Windows machine Gcloud SDK is installed and configuration has been done Google Cloud source repository Git Bash terminal Repository ...
Santosh Kumar Doodala's user avatar
0 votes
1 answer
46 views

Can't connect to SQL server using gcloud

I have an SQL Server setup in GCP. It has a private IP. I have gcloud installed on ubuntu 20 (WSL2). When I run this command I get an error: > gcloud beta sql connect <instance name> --user=&...
Kevin Kraft's user avatar
0 votes
1 answer
108 views

Does appengine support WebSocketServer?

The google appengine documentation states websockets are supported, but in their example they use socket.io instead of a "regular" WebSocketServer. my (simplified) nodejs server is super ...
Basti's user avatar
  • 769
0 votes
1 answer
473 views

Google Cloud Organization Policy iam.allowedPolicyMemberDomains INVALID_ARGUMENT for Verified Domain

I'm trying to set the Google Cloud Organization Policy constraints/iam.allowedPolicyMemberDomains to restrict IAM members to my organization's verified domain, sksolution.app. However, I'm ...
CleanCodeOnline's user avatar
1 vote
1 answer
300 views

gcloud secrets create always fails with “INVALID_ARGUMENT: The provided Project ID ... does not match the expected format [projects/*]”

I'm trying to create a new secret in Google Cloud Secret Manager using the ⁠gcloud CLI, but I always get the following error: echo -n "my-secret-value" | gcloud --project=[MY_PROJECT_ID] ...
SebastienPattyn's user avatar
0 votes
0 answers
32 views

Gcloud SDK For PowerShell Gcloud Error Duplicate Line Created In Config_* File

Every week, not all the time, I am getting this error in the my Powershell ps1 logs This is a Windows Server A few people have ps1 programs in this server They may be using other service accounts The ...
Liquid Nitrogen's user avatar
0 votes
1 answer
77 views

How to preserve only timestamp and mode of the file, an not other posix metadata when using "gcloud storage" command line interface?

When I use -P options with gcloud storage cp -r -P gs://some/bucket/object ./ It tries to convert the user id also and fails with the following message ERROR: Root permissions required to set UID ...
amisax's user avatar
  • 126
1 vote
0 answers
69 views

Google TTS Long Audio

I newbie working with Google TTS, I have code that allows me to use the long audio TTS and get the file from a bucket, however, when I am trying to do it with a long file that may give me 20 minutes ...
RayStar's user avatar
  • 11
0 votes
1 answer
40 views

GCP Compute Engine custom image import from Trend Vision Zero Trust fails at translate-disk step (CentOS 7 DNS issue)

I'm trying to import a custom VM image (from Trend Micro Vision One Zero Trust Private Access) into Google Cloud Platform using the gcloud compute images import command. However, the process fails ...
Gibran Firdausy's user avatar
0 votes
0 answers
106 views

Permission Denied for Org Admin trying to disable Organization Policy (iam.allowedPolicyMemberDomains) - even in Cloud Shell

I am an Organization Administrator (roles/resourcemanager.organizationAdmin) for my Google Cloud Organization, but I'm encountering a persistent "permission denied" error when trying to ...
Shark Team's user avatar
0 votes
0 answers
120 views

Google Cloud and project ID from google.auth.default() in docker container

I'm playing Whac-A-Mole with Google Cloud authentication. Sorry for the lengthy question but since I have no idea where the problem is, I'm trying to give enough context. With Python, calling google....
teppo's user avatar
  • 716
0 votes
0 answers
35 views

UnicodeDecodeError on macOS while Google Cloud SDK Homebrew installation

I'm encountering a UTF-8 decode error while installing Google Cloud SDK via Homebrew on macOS. Initially, I tried to download files from Google Cloud Storage using `gsutil -m cp* and received this ...
aoezdTchibo's user avatar
1 vote
0 answers
124 views

gcloud storage cp downloads exceed file size and result in corrupt file (e.g. 12.7GiB for 9.2GiB file)

I’m trying to download a .tar.gz file from a public Google Cloud Storage bucket using the gcloud CLI tool. Here’s the command I use: gcloud storage cp gs://my-bucket/large-file.tar.gz ./ The file is ...
Maximilian Burr's user avatar
-1 votes
1 answer
90 views

NODE_ENV in Google App Engine in TypeScript apps (React)

How does GAE (Google App Engine) treat NODE_ENV on deployment and run with a NodeJS runtime? Google docs clearly states that some variables are automatically set and cannot overridden except the `...
Георги Кременлиев's user avatar
1 vote
2 answers
648 views

Cloud SQL Proxy SSL error: `certificate had CN "", expected "<project>:<region>:<instance>"` when connecting to PostgreSQL 14

We're encountering an issue with Cloud SQL Proxy (v1 and v2) when connecting to a newly created PostgreSQL 14 Cloud SQL instance via a Kubernetes deployment on GKE. The error we see in the logs is: ...
ladhari's user avatar
  • 557
-1 votes
1 answer
103 views

gcloud CLI: Permission denied moving project between organizations

I’m trying to move a Google Cloud project from our org (Org ID: ORG_ID_1) into the client’s org (Org ID: ORG_ID_2) with: gcloud beta projects move PROJECT_ID --organization=ORG_ID_2 but I immediately ...
Arkej's user avatar
  • 2,261
0 votes
2 answers
89 views

The --update-labels argument of gcloud functions deploy does absolutely nothing

Maybe this is a bug because it's supposed to work: https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--update-labels This command completes without issue: gcloud alpha functions deploy &...
red888's user avatar
  • 32.3k
0 votes
2 answers
125 views

Support to node crypto module is required - gcloud sql connector

Any idea on what can cause the following issue? We're trying to migrate to the official Cloud SQL Node.js Connector but for some reason I'm getting the following issue when running a test connection ...
Dzsonah's user avatar
  • 135
-1 votes
1 answer
130 views

Running Terraform against Google Cloud in GitLab

I am trying to run terraform from a Gitlab pipeline job against my Google Cloud instance. I have authenticated Gitlab to Google Cloud with Federated Id and can impersonate a service account connected ...
Galen Howlett's user avatar
0 votes
1 answer
261 views

Cannot setup local development for dataform cli - dataform init-creds fails

I cannot setup my local development environment with Dataform CLI because the creation of the df-credentials.json fails. I follow the steps described here: https://cloud.google.com/dataform/docs/use-...
leo1445's user avatar
0 votes
1 answer
101 views

How to deploy a gen2 Google Cloud function that triggers on Auth events (e.g. user.create)

Using gen1 it looks like this gcloud functions deploy AuthUserCreate --runtime dotnet6 --no-gen2 --entry-point AuthUserHandler --trigger-event providers/firebase.auth/eventTypes/user.create but a) ....
Mark's user avatar
  • 570
0 votes
2 answers
213 views

Can't use service account impersonation for invoking a cloud function with the gcloud cli

I have granted the "roles/cloudfunctions.invoker" role and even "roles/cloudfunctions.admin" to the service account but still get this error: gcloud functions call <function> ...
red888's user avatar
  • 32.3k
1 vote
1 answer
238 views

Google cloud: run app locally as service account whilst still running gcloud commands as my user

I am developing a cloud run service on google cloud and want to run it locally for testing using the service account I have configured cloud run to run the service as. My user has permission to ...
Michael's user avatar
  • 455
-1 votes
1 answer
85 views

Docker image running in k8s which needs gcloud auth credentials

I need run a python app in docker container on k8s. This app needs to use gcloud stuff like gemini-2.0-flash, google_vertexai and vertexai.init(project=os.environ.get("GOOGLE_CLOUD_PROJECT"),...
khteh's user avatar
  • 4,280
0 votes
0 answers
75 views

Use oAuth2 for Google Cloud on a Docker container

I'm working on a small personal project where I don't want to use Service Accounts. Is there any way to enable authentication using oauth2 to login into google services inside a docker container? ...
MathLal's user avatar
  • 402
0 votes
1 answer
278 views

Google Cloud PubSub Emulator

I'm running into an issue when trying to use the Google Cloud Pub/Sub Emulator. I am able to start the emulator successfully, but I cannot create topics or interact with it using gcloud commands. I ...
Rosscoasks's user avatar
0 votes
0 answers
15 views

Firebase Firestore Export direct subcollections [duplicate]

In our Firestore two top level Collections (blueprints & copies) have the exact same structure of subcollection-names. blueprints plans instructions copies plans instructions When we export - ...
Severin Klug's user avatar
0 votes
0 answers
75 views

Cannot Deploy API on GAE Standard: "failed to initialize analyzer" with gcr disabled

I am trying to deploy an API on Google App Engine (GAE) Standard Environment, but I keep encountering the following error: ERROR: failed to initialize analyzer: validating registry read access: ensure ...
shuhskw's user avatar
0 votes
0 answers
26 views

Successful login to Google Cloud Platform through Docker on Windows, but with errors

I would like to understand why this error occurs during login via the Google Cloud SDK CLI. The login is successful, but unfortunately, with some errors. Is it simply a matter of missing permissions ...
Marco's user avatar
  • 11
1 vote
2 answers
190 views

gcloud functions deploy with go runtime fails on downloading dependencies from non-public repositories

I'm not able to deploy a Golang-based Google Cloud Function by running gcloud functions deploy. The reason in that my code imports packages from non-public GitHub repositories, and gcloud is not happy ...
Vicente Gavara's user avatar
2 votes
1 answer
186 views

How to get the latest key version in Google Cloud KMS?

Assuming you have a key name what is the best way to find the latest version of that key? I had assumed: masterKeyVersionIterator := client.ListCryptoKeyVersions(ctx, &kmspb....
Aidan's user avatar
  • 504
1 vote
1 answer
100 views

gcloud command formatting - selecting values from a list

I'm trying to select some values, from the status of the cloud routers to show the bgp peerings, however while I can return the ASN number correctly, trying to get any other value from the same output ...
djsmiley2kStaysInside's user avatar
0 votes
0 answers
36 views

Why can't the Job Template confirguration JSON file be read when trying to make the template ID?

Sorry this is elementary. I have a JSON file saved both to my machine as well as in the google 'bucket'. I need to create 3 variants of the MPEG DASH and 3 variants of HLS playlists so I needed to ...
Neha Dave's user avatar
0 votes
0 answers
123 views

Cannot connect to gcloud instance in VSCode

I have an instance running in gcloud and I'm trying to connect to the instance using VSCode, but I keep getting an error that says: "Could not establish connection to 'host name'." I have ...
Keegan's user avatar
  • 65
0 votes
0 answers
106 views

gcloud functions call my-cf-gen-2 --data my-data or --cloud-event my-data is not working anymore with gen2 CF. How my-data should be constructed?

I created a Cloud Function gen2 using the code from the documentation https://cloud.google.com/functions/docs/running/direct https://cloud.google.com/functions/docs/tutorials/pubsub https://cloud....
Dr. Fabien Tarrade's user avatar
0 votes
1 answer
232 views

Google "gcloud functions deploy" command gives error gcloud crashed (TypeError): expected string or bytes-like object, got 'NoneType'

I am trying to create cloud functions using my existing scripts I run commands as shown below to create a cloud function <my_function> "gcloud functions deploy <my_function> --no-gen2 ...
Yogesh Devi's user avatar
0 votes
0 answers
62 views

ERROR: gcloud crashed (UnicodeDecodeError): 'utf-8' codec can't decode byte 0xa2 in position 37: invalid start byte

I was trying to deploy an application using the gcloud app deploy command, and it gave me this error: utf-8' codec can't decode byte 0xa2 in position 37: invalid start byte. I am not sure whats going ...
Bharat_karri's user avatar
0 votes
0 answers
83 views

Facing Issues in pushing microservice to artifact registry

all. I am currently facing issues in pushing a microservice to artifact registry using github actions workflow. Here is my github workflow file: name: Deploying Astra-Frontend to Artifact Registry on:...
MAckenzie's user avatar
0 votes
0 answers
71 views

getting error gcloud not found in nodejs application

I am trying to execute the gcloud commands in node js and getting gcloud is not found. the image is deployed using cloud run. gcloud auth activate-service-account --key-file=/src/keys.json /bin/sh: ...
user3145555's user avatar
0 votes
0 answers
158 views

Artifact Registry Precondition check failed

I have an issue with Artifact Registry when want to redirect back it to Container registry. gcloud artifacts settings disable-upgrade-redirection --project=xx IAM roles are set roles/artifactregistry....
oleksim's user avatar
0 votes
1 answer
789 views

Make `gcloud storage cp` quiet

I recently switched from using gsutil cp to gcloud storage cp for moving files from a GCS bucket to a VM (and vice-versa). I am moving a large number of files and I don't want the copy operation to ...
sdg's user avatar
  • 462

1
2 3 4 5
92