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
8 views

Gcloud beta emulators datastore. WARNING: Stream Error. Stream closed before write could take place

I have a project on google app engine technologies using datastore, written in py38 For local development, I use dev_appserver.py and also a google data warehouse emulator (https://cloud.google.com/...
user avatar
0 votes
0 answers
11 views

Internal IP is use by HTTP internal load balance, but IP address show "none"

I created an Internal HTTP Load balance by the code below. I can see Internal HTTP Load balance is running with internal IP(var.my_iip) But in VPC network > IP addresses, the "in use by" ...
user avatar
0 votes
0 answers
12 views

How to return in normal mode in GCP VM after shield VM issue

After ugrading SSD size for a GCP VM, an integrity check issue occurs. This problem had been solve but my VM after many restart is always in emercy mode. I'm not able to SSH it. What is possible now ...
user avatar
0 votes
0 answers
39 views

Cannot ssh after resizing CPU and memory of my VM

I followed the recommandation to reduce the size of my VM (number of CPU from 4 to 2 and memory from 16GO to 8 Go). After updating the configuration and restarting the VM i was not able to access the ...
user avatar
0 votes
0 answers
71 views

gcloud compute commands sometimes getting stuck in WSL

I am running various gcloud compute commands from the linux subsystem on Windows 11 using Debian. In general, it works great. However, sometimes the gcloud command simply does not return, even after ...
user avatar
0 votes
0 answers
16 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-...
user avatar
  • 1
2 votes
2 answers
669 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 ...
user avatar
0 votes
0 answers
156 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 ...
user avatar
0 votes
1 answer
24 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 ...
user avatar
0 votes
0 answers
150 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 ...
user avatar
  • 1
0 votes
3 answers
126 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 ...
user avatar
0 votes
0 answers
101 views

How to redirect gsutil/gcloud stdout without elevated permissions

On Ubuntu 20.04, I'm trying to capture stdout of gsutil ls, but oddly it gives me a permission error. $ gsutil ls -b gs://my-bucket > /tmp/x.txt Exception ignored in: <_io.TextIOWrapper name='&...
user avatar
  • 109
1 vote
1 answer
46 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 ...
user avatar
1 vote
2 answers
176 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 ...
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 ...
user avatar
  • 101
0 votes
0 answers
77 views

Issue while ssh to gcloud server from my windows10 machine

I am using windows 10, Trying to connect gcloud by ssh from my windows machine i am facing issue of "remote side unexpectedly closed network connections"
user avatar
0 votes
1 answer
112 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 ...
user avatar
1 vote
1 answer
134 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 ...
user avatar
0 votes
0 answers
20 views

Can I start gcloud shell in a specific region or zone?

It seems that running gcloud cloud-shell --project project-name always seems to start the shell instance near me rather than in the default region/zone for the project. Is there any way to specify ...
user avatar
  • 197
0 votes
0 answers
168 views

Permission denied (publickey). ERROR: exited with return code [255]

I have been trying to figure out this problem for some time now. I have been connecting to my VM to access RStudio (an IDE). Furthermore, I run the following command: gcloud beta compute --project &...
user avatar
  • 101
0 votes
1 answer
186 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 ...
user avatar
0 votes
1 answer
232 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 ...
user avatar
  • 119
1 vote
1 answer
131 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 ...
user avatar
0 votes
2 answers
397 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]. ...
user avatar
0 votes
1 answer
595 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 ...
user avatar
0 votes
1 answer
93 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=...
user avatar
  • 11
2 votes
0 answers
46 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 ...
user avatar
  • 183
2 votes
1 answer
2k 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-...
user avatar
1 vote
1 answer
394 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 ...
user avatar
  • 323
1 vote
1 answer
41 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 ...
user avatar
  • 11
0 votes
0 answers
358 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 ...
user avatar
2 votes
0 answers
49 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) ...
user avatar
  • 121
0 votes
1 answer
79 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
user avatar
  • 5
1 vote
1 answer
4k 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/...
user avatar
  • 12.2k
0 votes
1 answer
159 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 "...
user avatar
  • 1
0 votes
1 answer
105 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 ...
user avatar
0 votes
1 answer
966 views

Setting password for MySQL root user in CLoudSQL with private IP address

How to change the password for MySQL root user in GCP CloudSQL DB instance with private IP address . I am able to change the password using the below command from Cloud Shell with Public IP gcloud ...
user avatar
  • 419
0 votes
1 answer
211 views

How can I create a C2 VM on GCP?

When I try to create a c2-standard-4 VM in the central region, I always get an error "Quota 'C2_CPUS' exceeded. Limit: 1.0 in region us-central1." (other regions have limit 0.0). There is ...
user avatar
  • 101
0 votes
1 answer
611 views

How to find out who added a user or modified IAM roles of a specific user in GCP?

I tried but could not figure out that how to find out who added a user or modified IAM roles of a specific user in GCP. is anyone aware of any method?
user avatar
  • 90
2 votes
3 answers
6k views

Permission denied (publickey). (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255]. exited with return code [255]

try to connect the virtual machine with gcloud but failed. Please advise username@22.233.168.202: Permission denied (publickey). ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255]...
user avatar
1 vote
1 answer
1k views

Google App Engine HTTPS listening ports 8443 or 3443

I am testing an application in the App Engine Flexible Environment, and at some point I will need to process some WebHooks sent on TCP ports 8443 or 3443. As long as I could test, App Engine load ...
user avatar
0 votes
1 answer
76 views

Can I export a GCloud drive image to store locally and restore later?

Can I export a GCloud drive image to store locally and restore later ? I need to save money for drives that I most rarely use. Seems the SSD-Drives amass the bulk costs that I need to avoid without ...
user avatar
  • 1
1 vote
1 answer
421 views

How to get GDAL to work with Google GCLOUD

I am getting the below error trying to deploy my app to gcloud app engine. The whole problem is from trying to add the GDAL library to my app. File "/opt/python3.7/lib/python3.7/ctypes/init.py&...
user avatar
0 votes
1 answer
179 views

Impact on GCP Cloud functions during label change

What is the impact for CLoud functions during deployment ? Does the function become unavailable during deployment or any trigger during this deployment time will fail ? I can deploy using GCP Console ...
user avatar
  • 419
0 votes
1 answer
74 views

How to automatically start/stop an instance (vm) based on some event/trigger in google cloud?

We are employing a GPU instance in google cloud to run a machine learning related service. Google cloud has these un-scheduled maintenance plans for their GPU instances. Before the instance is down ...
user avatar
1 vote
1 answer
2k views

gsutil from gcloud/Google Cloud SDK failing with "SyntaxError: invalid syntax" error in bcrypt

Trying to use gsutil today I got the following error: + gsutil cp -nra public-read a gs://b /usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python ...
user avatar
0 votes
2 answers
275 views

How to suppress `gcloud compute firewall-rules update` output when there are no errors?

I have a bash script running as cron job which has some gcloud commands in it. eg. gcloud compute firewall-rules update allow-ssh--source-ranges=$(echo "${mylocations[@]}" | tr ' ' ',') I ...
user avatar
  • 858
0 votes
1 answer
774 views

apt-get is stuck with mysql after creating a vm from snapshot in Google cloud

I'm using Google cloud and I have a vm (Ubuntu 18.04) that is working fine. The apt-get command works totally fine and mysql service is running well. Let's call it vm-1 I needed to create another a ...
user avatar
0 votes
1 answer
64 views

Changing parameters for GCP CLoud run with gcloud command

When we change labels for existing CLoud Run serivces using gcloud command , it does a deployment as well as revision change $gcloud run services update test --update-labels env=prod,test=test1 ...
user avatar
  • 419
0 votes
1 answer
1k views

Getting "server refused our key" when connecting to GCloud using Putty

I've just set up a new test instance on Google cloud... it's Debian, the default Google build. I've been able to connect successfully to the instance using the SSH console (from Chrome) and the gcloud ...
user avatar

1
2 3 4 5