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
3 votes
2 answers
3k views

gcloud storage cp is not working for larger files

I am trying to use gcloud storage cp command for copying large files to gcp bucket. The command is working fine for smaller files. But it gives permission issue for larger files. gcloud storage cp ...
kavya's user avatar
  • 105
10 votes
1 answer
5k views

gcloud app deploy complains about missing staging bucket

I've been used since months or years to delete staging and artifacts buckets after gcloud app deploy command to save on billing costs. These temporary files rest in there forever and I get billed for ...
neurino's user avatar
  • 12.5k
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
0 votes
1 answer
223 views

How to access the Google Analytics Data API via bash script using gcloud

On a Ubuntu server I want to regularly execute a script which calls the Google Analytics Data API in order to extract the 20 most visited pages of a website. I have successfully installed the gcloud ...
basZero's user avatar
  • 4,294
5 votes
2 answers
2k views

cffi package broken in mac M2 arm chip - "but is an incompatible architecture (have 'arm64', need 'x86_64')"

I have installed gcloud sdk for arm64 mac and I have set up the auth-plugin as well. When I try to run kubectl version I get the below error F0212 08:33:03.283222 5921 cred.go:145] print credential ...
lucifer_123'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
69 votes
1 answer
62k views

Running `apt update` raises: "GPG error: cloud-sdk is not signed" [closed]

While running sudo apt update the following Warning, followed by an Error raises: W: GPG error: http://packages.cloud.google.com/apt cloud-sdk InRelease: The following signatures couldn't be verified ...
dwightjl's user avatar
  • 2,334
17 votes
6 answers
13k views

Login to firebase using gcloud service account

I have functions deployed to gcloud functions and i want to configure CI/CD for deploying this functions from gitlab. To do any operations from gitlab i need to get firebase auth token with firebase ...
Vitali Skripka's user avatar
1 vote
2 answers
7k views

Why cant gke-gcloud-auth-plugin retrieve my credentials?

I am trying to connect to my GKE cluster via Kubectl on Windows 11 but am having problems with the gke-gcloud-auth-plugin. I have followed the instructions in this article https://cloud.google.com/...
Eoin Molloy's user avatar
0 votes
1 answer
134 views

How can I restrict permission of a service account in Google Cloud Platform?

How can I restrict a service account to, for example, Places Autocomplete (Google Maps API)? I find GCP permissions really confusing, and I wonder if it is even possible to configure them the way I ...
Raf's user avatar
  • 694
2 votes
1 answer
301 views

How to use gcloud run deploy to specify a particular Dockerfile?

I have a directory that contains multiple Dockerfiles, such as api.Dockerfile and ui.Dockerfile. When using gcloud run deploy, I want to specify which Dockerfile should be used for building the ...
Dinesh Sonachalam's user avatar
0 votes
1 answer
425 views

problem passing arguments to `bq add-iam-policy-binding`

Why bq doesn't see my params? I run: bq add-iam-policy-binding <PROJECT>:<DATASET>.<TABLE> \ --member='user:<EMAIL>' \ --role='roles/bigquery.dataViewer' \ --...
Kossak's user avatar
  • 1,458
0 votes
1 answer
99 views

Java client does not retrieve unacked messages from GCP Pub/Sub topic

I have a Spring Boot client configured with spring: cloud: gcp: pubsub: publisher: enable-message-ordering: true subscriber: flow-control: ...
Brian's user avatar
  • 7,673
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
1 vote
1 answer
68 views

ERROR: (gcloud.compute.os-config.vulnerability-reports.describe) NOT_FOUND on gcloud compute os-config vulnerability-reports describe

We have several vms at google gcloud in the same project some give a nice vulerability report but some give: gcloud compute os-config vulnerability-reports describe [vm-name] --location=[zone] --...
Jvo's user avatar
  • 93
0 votes
0 answers
99 views

Can't deploy cloud function with firestore document creation trigger

My deployment command: gcloud functions deploy send-verification-mail ^ --gen2 ^ --runtime=python312 ^ --trigger-location=asia-south2 ^ --region=asia-south2 ^ --source=. ^ --entry-point=...
Tanav Gupta's user avatar
54 votes
5 answers
31k views

How to stop gcloud container engine clusters

I use gcloud to provision kubernetes clusters, and use container engine to do so. Aside from the production cluster, I would like to create short-lived clusters, for testing etc'. Instead of ...
pazams's user avatar
  • 1,119
0 votes
1 answer
305 views

The method `run_in_transaction` of Spanner client library for Python returned a message "Transaction is not begun."

After I obtain my authenticate key with gcloud CLI, I try to execute the below Python code to create a table in my instance of Spanner. However, Spanner returned a message "Transaction is not ...
Kazuma Kusu's user avatar
0 votes
1 answer
85 views

How to get all projects in Cloud Functions?

When I run the following code in Cloud Functions, I can only get the current project. from google.cloud import resourcemanager_v3 client = resourcemanager_v3.ProjectsClient() # Search ...
Joey's user avatar
  • 1
0 votes
1 answer
384 views

Error while deploying gcloud update command for EventArc trigger on GCS bucket

I am getting the following error while running the command to update existing google cloud eventarc trigger for a Cloud Service application. ERROR: (gcloud.eventarc.triggers.update) INVALID_ARGUMENT: ...
VKarthik's user avatar
  • 1,439
11 votes
6 answers
22k views

Error while trying to authenticate with `gcloud init`

I am trying to athenticate to the gcloud sdk using : gcloud init. I get a URL I'm supposed to access in order to copy a token and return it to the CLI... but instead of a token, I get this error : ...
Imad's user avatar
  • 2,811
32 votes
5 answers
12k views

How to include files in .gcloudignore that are ignored in .gitignore

I have certain folders that I ignore in my .gitignore as I do not want it to be published on Github. However, these files are essential for when deploying to Google Cloud (local packages). If I take ...
WJA's user avatar
  • 7,054
1 vote
1 answer
114 views

Google Cloud VMware engine vCenter password expiry

GCVE documentation says that vCenter passwords expire after 365 days after which it has to be reset using gcloud vmware private-clouds vcenter credentials reset command. Is there a way to know whether ...
Deepa Sreekumar's user avatar
1 vote
1 answer
249 views

Create compute engine from instance-template using gcloud CLI

I want to create a compute engine from a instance-template using the gcloud CLI. I have created a instance template named it-collector-server. When I try to create a server with the instance template ...
Europa's user avatar
  • 1,418
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
26 votes
8 answers
33k views

Specify Dockerfile for gcloud build submit

I understand gcloud uses the Dockerfile specified in the root directory of the source (.) as in the command: gcloud builds submit --tag gcr.io/[PROJECT_ID]/quickstart-image . but I am trying to ...
idrisadetunmbi's user avatar
5 votes
5 answers
50k views

gcloud auth login throwing error: gcloud crashed (ConnectionError): HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded

gcloud builds submit failed for me yesterday. Then I tried gcloud config set project, that also failed. So I thought login might have expired so tried gcloud auth login. In all cases, it always ...
Vichitr Gandas's user avatar
12 votes
4 answers
6k views

Working Poetry project with private dependencies inside Docker

I have a Python library hosted in Google Cloud Platform Artifact Registry. Besides, I have a Python project, using Poetry, that depends on the library. This is my project file pyproject.toml: [tool....
logoff's user avatar
  • 3,452
0 votes
0 answers
60 views

Can I setup Gloud Cloud Build with a source repository shared to my github account?

I am setting up a GCloud function on Cloud Run for a client. He has shared his repo with me on github so I can access it. However, when choose the 'continuously deploy from a repository' option and ...
Dan Csharpster's user avatar
1 vote
1 answer
227 views

Creating Dataproc Cluster with public-ip-address using DataprocCreateClusterOperator in Airflow

I am trying to create a Dataproc Cluster in my GCP project within an Airflow DAG using the DataprocCreateClusterOperator. I am using the ClusterGenerator to generate the config for the cluster. ...
Mads's user avatar
  • 105
0 votes
1 answer
678 views

Why does `gcloud run jobs execute` punish you for waiting?

If I run: gcloud run jobs execute foo --project myproj --region us-central1 --format json It returns a big, beautiful data structure for the Execution resource that was generated in the cloud. This ...
odigity's user avatar
  • 8,558
5 votes
1 answer
4k views

gcloud auth how to check if logged in, in a headless manner?

I am trying to check if one's application credentials are still valid, in a headless manner. gcloud auth application-default print-access-token will prompt for a password, so it's not headless. ...
Intrastellar Explorer's user avatar
0 votes
0 answers
76 views

Cant create VM instance from artifact image via node sdk

I am trying to create a VM instance based on a artifact image which works fine in the console and creating VM instances works as well via the sdk even attaching the image works even tho this is no ...
Sebastian_B's user avatar
1 vote
1 answer
620 views

"Unsupported service account" errors from gcloud when deploying --gen2 functions with --build-service-account

gcloud --version Google Cloud SDK 488.0.0 alpha 2024.08.09 beta 2024.08.09 bq 2.1.8 core 2024.08.09 gcloud-crc32c 1.0.0 gsutil 5.30 istioctl 1.20.47 I'm at a loss for how to execute the gcloud ...
red888's user avatar
  • 32.3k
0 votes
1 answer
360 views

Grant service account access to a single cluster within a project

Use case We have a test-only cluster that we want to use as part of a Github Actions pipeline. We want the pipeline to be able to do pretty much whatever it likes within the cluster - create/delete ...
Alyssa's user avatar
  • 905
1 vote
1 answer
535 views

"The caller does not have permission" when trying to deploy Google Cloud Functions

I'm trying to deploy a cloud function from GitHub Actions using gcloud, this is my command: gcloud functions deploy delivery-channels \ --gen2 \ --runtime=nodejs20 \ --...
Fez Vrasta's user avatar
7 votes
2 answers
7k views

gcloud.functions.deploy Could not create or update Cloud Run service

I'm encountering this issue whenever I try to deploy a new Javascript function or an existing one on Google Cloud Functions using the gcloud-cli. Here's the command I'm running to deploy my function ...
Milo40's user avatar
  • 311
0 votes
1 answer
856 views

How do I create a Vertex AI Pipeline with the gcloud CLI?

As part of a CI/CD pipeline, I'd like to automatically deploy or update Vertex AI pipelines. However, I couldn't figure out how to create a Vertex AI pipeline with the gcloud CLI-tool. Using the ...
bayes2021's user avatar
  • 224
0 votes
0 answers
127 views

Unable to disable the readonly kubelet port in GKE

I've tried to follow this guide in accordance with the email that we have received about the unsecure readonly port exposed by kubelet. The script I used is pasted below: #!/bin/bash echo Please ...
Chiranjib's user avatar
  • 1,793
0 votes
1 answer
45 views

How to see app engine resource allocation

I'm deploying an app to google app engine (flexible environment). My app.yaml file doesn't specify cpu, memory, or disk space currently. I assume it's using some default. I want to know what the ...
toppsdown's user avatar
  • 410
23 votes
5 answers
27k views

How to list all enabled API services for Google Cloud Platform project

We manage a couple dozen GCP projects, and I've never figured out how to list all the enabled API services for each project on the website. There is a way to do it via Cloud Shell by running the ...
HSuke's user avatar
  • 331
1 vote
2 answers
688 views

NETWORK_NOT_PEERED trying to create an AlloyDB instance through gcloud CLI

I'm trying to create an AlloyDB instance using the gcloud CLI using these commands: gcloud alloydb clusters create default \ --region=$LOCATION \ --password=postgres gcloud alloydb instances ...
Fez Vrasta'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
1 answer
100 views

GCloud Local Server Setup (dev_appserver.py)

I've been trying to set the GCloud local development server up with php82 but is unsuccessful. I've installed Google Cloud SDK version 496.0.0 (latest) and Python 3.9.5 but it return the following ...
Nelson Rakson's user avatar
2 votes
1 answer
1k views

NextJS Continuous Deployment on Cloud Run not working

I am trying default next js app on github to be auto deployed on Google Cloud Run, but it gets stuck in Building and Deploying step: I have tried using both docker image and default nodejs repository....
Sandeep P.'s user avatar
1 vote
1 answer
2k views

"gcloud run deploy" vs "gcloud run services update"

What is the difference between these two commands when used to update a service? Is there a reason to prefer one over the other? https://cloud.google.com/sdk/gcloud/reference/run/deploy https://cloud....
odigity's user avatar
  • 8,558
0 votes
1 answer
186 views

How to use the Bigtable cbt CLI while connected to a VPN?

I am using the Bigtable cbt CLI locally to manage my Bigtable instances and tables. When doing this from my home network, I have no issues. When attempting to run commands while connected to a VPN (...
E. Monk's user avatar
  • 378
3 votes
3 answers
948 views

how to paginate in drive.permissions.list using google-api-python-client

My Problem I have a GDrive folder of which I want to list the users having access to it. Unfortunately the API doesn't return more than 100 users and the documented solutions to paginate don't work. (!...
Nico Albers's user avatar
  • 1,696
4 votes
2 answers
23k views

GCP - User ... does not have permission to access projects instance

I was using gcloud with a service account to try to figure out why my API Gateway endpoint didn't work when I ran into another problem. First I ran this export GOOGLE_APPLICATION_CREDENTIALS=/path/to/...
ChristianOConnor's user avatar
3 votes
1 answer
2k views

gcloud functions deploy fails: One or more users named in the policy do not belong to a permitted customer

I'm trying to deploy a Cloud Function named generate_image with gcloud functions deploy. Here is the command I am trying: gcloud functions deploy generate_image \ --gen2 \ --runtime=...
DarioB's user avatar
  • 1,649

1 2
3
4 5
92