Questions tagged [gcloud]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 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
18 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
7 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
50 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
508 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
31 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
348 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
82 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
74 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
38 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
114 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
76 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
327 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
  • 103
0 votes
0 answers
96 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
10 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
0 answers
66 views

I cannot export an image from Gcloud, to bucket storage

Good morning: I am trying to export an image from Gcloud, but when it takes two hours to export, it gives error. I have tried several times and it always gives error after two hours. I do not know how ...
Angel Aguado's user avatar
0 votes
0 answers
64 views

Accessing local host Dashboards (GCP VM) from my Laptop

I have 2 VM instances on Google Cloud Platform. 1st VM is used as a Kubernetes Master Node and 2nd as Worker Node. I have Prometheus and Grafana Deployed on the cluster. I want to access the ...
Anvay's user avatar
  • 13
0 votes
0 answers
41 views

resource.labels.containerName: sidecar-injector-webhook Error: failed to start patch cert loop the server could not find the requested resource

After updating GKE to version 1.23.1400 it started showing the error resource.labels.containerName: sidecar-injector-webhook Error: failed to start patch cert loop the server could not find the ...
Rayane Stefanie 's user avatar
0 votes
1 answer
205 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
2 votes
1 answer
5k 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
  • 21
0 votes
0 answers
138 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
  • 234
0 votes
0 answers
351 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
23 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
5k 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
187 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
933 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
650 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
112 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
274 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
690 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
412 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
1k 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
560 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
354 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
900 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
183 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
79 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
  • 233
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
884 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
539 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
120 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
0 votes
1 answer
347 views

In glcoud cli is there a way to list Instance created in last one hour?

I am looking for a gcloud CLI command to retrieve all the instance created in the last one hour gcloud compute instances list
Eva's user avatar
  • 105
2 votes
1 answer
6k views

CryptographyDeprecationWarning: Python 3.5 support will be dropped in the next release of cryptography. Please upgrade your Python

I'm trying to use docker-compose (which was installed via pip3), yet running into following warning everytime I do anything: # docker-compose version /usr/local/lib/python3.5/dist-packages/paramiko/...
alexus's user avatar
  • 13.2k
0 votes
1 answer
271 views

Google Cloud Speech-to-Text API key error

I tried to use the Google Cloud Speech-to-Text API but without any success. I have an API key error. Here is my api call : curl -s -H "Content-Type: application/json" \ -H "...
Newty's user avatar
  • 1
0 votes
1 answer
307 views

Closing port 22 on Google Cloud

I see when creating a new Google Cloud account, the firewall rules are set to allow traffic from all locations to SSH default-allow-ssh IP ranges: 0.0.0.0/0 Can these rules be deleted safely or does ...
Jan Vladimir Mostert's user avatar

1
2 3 4 5