Questions tagged [gcloud]

Questions relating to the usage of the Google Cloud SDK's `gcloud` command-line tool.

Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

network unreachable for gcloud compute engine instance

I've just configured my first google cloud server with an ipv6 address. When I try to run wget to the address it fails: wget -6 https://[2600:1900:4180:bfa7:0:0:0:0] --2024-03-04 18:20:39-- https://[...
Brett Sutton's user avatar
0 votes
1 answer
65 views

Server error 502 - problems with .net core web app deploy made on GCloud's GKE using OAuth 2.0 Authentication

I have an MVC .net core 6 web application that uses Google's OAuth2.0 authentication and I cannot publish it with Kubernetes. Project context: Locally it compiles and runs normally, including creating ...
LostMyMind's user avatar
0 votes
0 answers
41 views

Google Cloud Standard App Engine 404 Error

I have a project set up on Google Cloud App Engine Standard as a Flask web app and when I deploy it and access the website, it always returns a 404. I have tested the deployment locally and it works ...
PopsicleSnow's user avatar
1 vote
1 answer
96 views

Strongswan IPsec site-to-site on Gcloud

I am trying to initialise an IPsec tunnel between an Ubuntu VM on Google Cloud and a remote site. The connection is correctly established but from the Ubuntu machine on Google Cloud I cannot reach a ...
Pietro395's user avatar
  • 161
0 votes
1 answer
209 views

How do I filter the command gcloud container operations list? What's the syntax?

If you have 20 GKE clusters, gcloud container operations list returns too much data. Google Cloud's official docs lack good examples of how to do filtering: Their docs just mention --filter=[...
neoakris's user avatar
  • 153
1 vote
0 answers
18 views

GCloud SDK `--filter` option appears to be case SEnsitive, docs say opposite: what am I missing?

First, my gcloud --vesion output: Google Cloud SDK 425.0.0 bq 2.0.89 core 2023.03.31 gcloud-crc32c 1.0.0 gsutil 5.21 Next, a GCloud command line that is doing case sensitive filtering: gcloud compute ...
CrashNeb's user avatar
  • 113
0 votes
0 answers
725 views

ERROR: gcloud.run.deploy Revision is not ready and cannot serve traffic

I am new with GoogleCloud & GoogleCloudRun, I have deployed two applications at my Google active Project - Next.JS app running at 3000 port Express.js app running at 8080 port When I tried to ...
VBReddy's user avatar
0 votes
0 answers
23 views

on using gcloud services i am facing AUTH_PERMISSION_DENIED

I want to enable video-stitcher api after checking and enabling all the required conditions i am unable to enable it. Every time i am trying to enable it shows following error: "Enable services: ...
Unibots GA's user avatar
0 votes
0 answers
68 views

gcloud sql connect using access token got further but now fails when running psql

GCP recommends forcing SSL for database so I did. Now, when trying to connect, I run #This cmd is the same with other options too -> gcloud sql generate-login-token gcloud auth application-...
Dean Hiller's user avatar
0 votes
0 answers
10 views

Cannot see google storage buckets when connecting to VM through SFTP

Let's call sftp user Bob. On the VM itself, I can see and access the bucket no problem. Permissions are bob:bob. But when connecting via sftp directory buckets don't even show. fstab config: Bucket /...
Daniel Barber's user avatar
0 votes
0 answers
240 views

gcloud command completion for zsh adds extra (breaking) escape characters

How do I get gcloud compute ssh to stop adding unnecessary escape characters for spaces when I use command-line completion? For example, when I type gcloud compute ssh and then hit <tab> this is ...
Greg Smethells's user avatar
0 votes
1 answer
945 views

Permission denied to enable service [cloudaicompanion.googleapis.com]

As account owner, I run the command: gcloud services enable cloudaicompanion.googleapis.com --project xxxx and get the error message: ERROR: (gcloud.services.enable) PERMISSION_DENIED: Permission ...
Shay Zalman's user avatar
0 votes
1 answer
117 views

ssh into VM instance with different username from local

I wanted to be able to ssh into my VM instance. I was able to change my ssh config by, gcloud compute config-ssh. This changed my ssh config and said that I could ssh by, ssh server-name-some-stuff ...
Nikhil Shenoy's user avatar
0 votes
2 answers
550 views

Google Cloud Platform authentication - unable to list projects or set project

I had previously authenticated with Google Cloud Platform and everything was working correctly, however all of a sudden, today I started receiving errors mentioning google-gax in a Node app: 2023-09-...
Mike's user avatar
  • 689
0 votes
1 answer
150 views

Failed to reset Windows password on Google Cloud VM: "Did not receive password in a reasonable amount of time"

I have created two Google Cloud virtual machines: instance1 (Windows Server 2022) instance2 (Windows Server 2019) Through instance1, I need to manage instance2 using the service account XXXXXXXXXXXX-...
El_Merendero's user avatar
0 votes
0 answers
106 views

Error creating Windows virtual machine on Google Cloud: Not included with the free trial

I'm trying to create a virtual machine on Google Cloud using the following command: gcloud compute instances create my-server-1 \ --zone=europe-west3-b \ --machine-type=n1-standard-16 \ --...
El_Merendero's user avatar
0 votes
0 answers
51 views

GCloud compute snapshots list doesn't show creation type

Trying to sort out the GCP disk snapshots i have, and filter which snapshots had made by policy or backup software like veeam, or these snapshots made manualy by persone. While in the console i can ...
yosisviva's user avatar
0 votes
2 answers
189 views

How to get a google issued certificate for my service behind l4 load balancer

I am running a mqtt broker behind gke LoadBalancer type service. The lb type service is a l4 load balancer and I need to handle the tls termination at my service/broker level. I have associated an A ...
java_doctor_101's user avatar
0 votes
0 answers
122 views

GCP Cloud Build installation of composer fails because checksums don't match

The build of my Laravel 9 app is broken. During the deploy the build stage always fails because the installation of composer fails due to unmathing checksums. Build logs: === PHP - Composer - Install (...
Antonin Welvart's user avatar
0 votes
1 answer
507 views

With GCloud CLI -- how to list all instances associated with a particular schedule (i.e. resource-policy)?

Here is a picture of the WebUI for GCP, showing an "instance schedule" that has 3 instances currently associated with it: How can I list those same 3 instances using the GCloud CLI? I found ...
CrashNeb's user avatar
  • 113
0 votes
0 answers
130 views

Trying to update instance properties as per the google gcp documentation but getting error while importing the yaml file

Followed the instruction as per https://cloud.google.com/compute/docs/instances/update-instance-properties#updatable-properties ERROR: (gcloud.compute.instances.update-from-file) '...
Arunkumar Subbiah's user avatar
0 votes
0 answers
11 views

How to check if my Big Query is compatible when I update my Gcloud Version?

We are currently using Gcloud Version 359 at the moment, we want to upgrade it to the newest version 422. How do I check there will be no errors after I updating it? Since some tools or api might be ...
Lara19's user avatar
  • 101
0 votes
1 answer
272 views

DNS records could not be found. Certificate activation will retry automatically

Our website is down and it is showing certificate is expired. When I check the custom domain settings section in GCP, I am getting the following warning. We have removed the records and re-added them, ...
Sulagna Nandi's user avatar
3 votes
1 answer
7k views

Run a linux docker container on Windows Server 2022

I have a Windows Server 2022 running on GCP. I've installed docker as described here: https://cloud.google.com/compute/docs/containers#docker_on_windows Namely, I did this: Install-Module -Name ...
iiiooo's user avatar
  • 31
0 votes
0 answers
148 views

GCloud SQL timed out on a Docker container

I have a flask app in a Paperspace Deployment Docker container. It is connected to a Google Cloud SQL (MySQL). Here are the variables in the YALM parameters: env: - name: CLOUD_SQL_CONNECTION_NAME ...
NicolasSens's user avatar
0 votes
1 answer
1k views

What permissions to set in service account for project creation?

When I configure google cloud cli with my credentials, it is able to create a new project and create resources inside it. But, for automation purpose in a pipeline, not able to use with my credentials ...
Kalel's user avatar
  • 244
0 votes
0 answers
406 views

gcloud auth login fails with an unknown error

I deleted some folder on my pc by mistake. Now I have to reauthenticate to gcloud but when I run gcloud auth login, it fails with an unknown error. I am stuck and I don't know what to try
solsTiCe's user avatar
  • 113
0 votes
0 answers
24 views

Unable to stream data from Google Cloud to local machine

I'm trying to stream stdout from a VM on Google Cloud Compute Engine to a local machine using nc: $ mycommand | nc mydomain.net 12345 And listening on the local machine $ nc -l 12345 | analysis-...
seamux's user avatar
  • 1
3 votes
2 answers
6k views

ERROR: gcloud crashed (ConnectionError): HTTPSConnectionPool(host='oauth2.googleapis.com', port=443):

I have been using gcloud cli for last 3months on my system, but now I start facing this error while authenticating with gcloud auth login or gcloud init --console-only. After debugging it, I see some ...
shaishaw's user avatar
0 votes
0 answers
1k views

How can we remove Google cloud builder cache. I am trying to build an image but it gives an error from a previous build attempt

This is the error it gives but the thing is I corrected the "MKDIR" command to mkdir but the error didn't go away, there is no MKDIR command in my Dockerfile anymore but the error stays the ...
Sardar Arslan's user avatar
0 votes
1 answer
211 views

unable to connect mysql from gcloud app deployment

Getting below error while trying to communicate mysql database from gcloud django app deploy. Below is the error message: OperationalError at / (2002, "Can't connect to local MySQL server through ...
Sangram Sinha's user avatar
1 vote
0 answers
1k views

Getting a list of all project owners , folder path from GCP

I am trying to get a list of all GCP projects on the domain and the project owners and export it to a CSV, I have written a script which provide me details of projectid, name, projectnumber date and ...
vikash's user avatar
  • 11
0 votes
3 answers
692 views

GCP to AWS Hosted Zone migration

I have a publicly hosted zone in GCP for example.com. I want to move the hosted zone to AWS route 53. Is there a tool which can make this process easier? Alternate: I will export the records using gcp ...
Jeetendra Pujari's user avatar
1 vote
1 answer
126 views

Unable to finalize Container Registry Transition to Artifact Repository

I tried to create a Container Registry and it asked me to upgrade to the Artifact repository. When I tried to transition, the Finalize button did not work. It keeps on loading and loading. I tried ...
Khurram Qureshi's user avatar
1 vote
2 answers
281 views

load balancer mark "unhealty" new group member instance (ubuntu) after dist-upgrade

I've a some VMs (working as web server) behind an instance group on my GCloud. As usual maintenance I've update (apt dist-upgrade) my "vm-source-image", created a new template and add it to ...
Ivan Buttinoni's user avatar
0 votes
0 answers
57 views

How to check if any connection was made from my ubuntu server to a specific IP address? (I have the destination Ip address) [duplicate]

Server setup: Ubuntu 18.04.6 LTS running Gitlab self-hosted I received an email from gcloud saying the server(VM) might have been compromised and used for cryptocurrency mining. It also mentioned the ...
Manas's user avatar
  • 101
0 votes
1 answer
774 views

Google Cloud App Engine subdomain not working

Long story short- My subdomain is not working while domain is. Chrome just displays error- DNS_PROBE_FINISHED_NXDOMAIN. Here are images of config. Google cloud config Domain dns config Deploy.yaml ...
user2965243's user avatar
1 vote
1 answer
463 views

Mount docker volume on app engine docker image

I have a docker image that I deployed to app engine. I want to mount a volume to replace a file originally written when the image was built. I need the file to be mounted when the docker image is ...
Samuel Navarro's user avatar
0 votes
1 answer
2k views

gcloud CLI command shows error INVALID_ARGUMENT when listing assets for project ID for some accounts

I tried to run following command gcloud scc assets list projects/project-id and I got this error, ERROR: (gcloud.scc.assets.list) INVALID_ARGUMENT: Request contains an invalid argument. I have ...
Nihal Shantha's user avatar
0 votes
1 answer
621 views

What kind of server has 416 cores?

I was looking for something completely unrelated and found the gcloud m2-node-416-11776 which apparently has 416 cores and up to 12TiB of Memory. I then did some digging and found the Azure Mv2-series ...
Ant's user avatar
  • 119
1 vote
1 answer
401 views

Linux server not allowing more than 2048 concurrent connections

I tried to do load test on MQTT from my MACOS, and was able to successfully achieve more than 12k connections till my bandwidth got exhausted. I tried to do the same test on GCP machine and it gave me ...
Dhruv Sehgal's user avatar
0 votes
2 answers
1k views

gcloud compute ssh — avoid having to 2FA every time?

I use gcloud compute ssh to SSH into my instance, e.g.: $ gcloud compute ssh shell-server --project=XXXXXXXXXXXXXXXX No zone specified. Using zone [us-central1-f] for instance: [shell-server]. ...
Kannan Goundan's user avatar
0 votes
1 answer
934 views

ERROR: gcloud crashed (ModuleNotFoundError): No module named 'distutils.spawn'

When I am going to deploy app.yaml in GCP, suddenly getting error i.e. "ERROR: gcloud crashed (ModuleNotFoundError): No module named 'distutils.spawn'". Please suggest me the solution. I am ...
Sanchita Dey's user avatar
0 votes
1 answer
187 views

Error with GCP's KMS with gcloud command line: cryptography.hazmat.primitives.keywrap has no aes_key_wrap_with_padding attribute

I'm having problems using gcloud command line to import a key into Google KMS, on an Ubuntu instance (php/homestead/vagrant). I installed gcloud using the following commands: echo "deb [signed-by=...
DonnieG's user avatar
  • 11
2 votes
0 answers
83 views

GCP node schedule with zone fallback

I'm using preemptive machines for some node pools from my GKE Cluster, and I often get the following error saying the zone resources have been exausted: Error Type Error Message ...
Mauricio's user avatar
  • 243
4 votes
1 answer
4k views

Can't access static external IP for Google Cloud Run instance - followed guides (Router, Subnet, NAT, VPC, etc)

I'm trying to assign an external static IP address to our Cloud Run instance, so that I can use it with websockets (which I've read require a static IP in order to work, versus the self-appointed/load-...
Ryan Weiss's user avatar
1 vote
1 answer
960 views

Gcloud cannot detect network connection

I have internet connection on the ESXi server and I want to copy everything to GCP storage. But Gcloud couldn't authenticate. It looks like it can't reach the gloud login servers. I'm not if the esxi ...
user630702's user avatar
1 vote
1 answer
45 views

gcloud miss k8s master after the end of the trial

The master disappeared after the end of the trial period. Worker nodes and disk remain. Can I get the master back somehow? Already tied up and paid for in gcloud. At the moment, he proposes to make ...
Red's user avatar
  • 11
0 votes
0 answers
572 views

ssh connection refused for Google Cloud Platform instance

I am trying to connect to my Google Cloud VM instance through SSH. I didn't have any problem before I mounted a new 500GB zonal persistent disk and even then I was able to ssh and format the disk and ...
Mona Jalal's user avatar
2 votes
0 answers
126 views

Can I create a secure multi-app intranet on GCP using IAP?

My vision is to create an intranet at, say, https://intra.sample.com without a firewall where users authenticate via IAP to an https load balancer and users anywhere on the internet (i.e., at home) ...
dk.'s user avatar
  • 121

1
2 3 4 5