Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [gcloud]

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

0
votes
0answers
3 views

vm.max_map_count problems on GKE ElasticSearch StatefulSet

A problem appeared on working ElasticSearch cluster on GKE. Nodes with "data" roles began to crash unexpectedly with an error: max virtual memory areas vm.max_map_count [65530] is too low, increase ...
0
votes
0answers
7 views

Problems trying to SSH/reset SSH for gcloud compute

I'm trying to SSH into gcloud. I'm currently inside ~/.ssh and have some VNC keys stored in there that was given to me. I have followed instructions with gauth login and set my project id to clear-...
0
votes
1answer
23 views

terraform IAM vs cloud console IAM

I am using a Terraform google_project_iam_policy resource to manage a number of roles for a project. I have noticed that it does not always remove a member from a role when I am expecting it to - ...
0
votes
1answer
38 views

How to get application_default_credentials.json file in GCP?

I'm developing an application locally(python), I want to list the details of all the projects & their instances. In order to perform this, I have generated application_default_credentials.json ...
0
votes
1answer
19 views

Encrypted config kubernetes on Google Cloud

I recently saw this page on the ability to encrypt secrets at rest. I am currently running kubernetes on Google Cloud, but I can't figure out how to set it up with the kube-apiserver. Any help is ...
0
votes
0answers
72 views

504 Gateway Time-out Nginx -> PHP-FPM kubernetes

I've been trying to get my nginx connection to work with php-fpm for several days now. The problem is, he always gives me a 504 and gives me the next error log: 2018/07/09 10:57:25 [error] 5#5: *10 ...
0
votes
1answer
58 views

Giving friendly names to authorised networks via gcloud command

I'm authorising instances access to PostgreSQL via the gcloud command: gcloud sql instances patch blah-sql-dev --authorized-networks 10.1.1.2/32,10.1.1.3/32,..... What I'm seeing under Cloud SQL's ...
0
votes
0answers
18 views

Error 22, gcloud deploy app; wrong slashes? From installing python tools with linux and using gloud shell on windows?

On Windows 10, I run glcoud app deploy And it fails, the stack trace starts like this ERROR: gcloud crashed (IOError): Got exception Traceback (most recent call last): File "C:\Program Files (...
0
votes
0answers
57 views

Configured libreswan(openswan) in google cloud vpn not working, what could be the issue?

I need to connect to a vpn from my gcloud vps. I configured openswan in a centos 7. Enabled ip forwarding by editing /etc/systemctl.conf by adding ip forwarding rule and reloaded systemctl. Added ...
0
votes
0answers
69 views

How to get the Compute Engine logs to end up in the structured jsonPayload instead of the textPayload?

I'm running an API on a Linux VM as a Compute Instance in the Google Cloud. The API is being run with systemd, and it's logging to syslog. I run the StackDriver logging agent to transfer the logs to ...
0
votes
3answers
93 views

How ssh Kubernetes engine instances and check public IPs of Kubernetes engine?

How can I access through ssh to the machine running the Kubernetes Engine? How can I check a public IP of the machines running the Kubernetes engine?
0
votes
1answer
63 views

gcloud compute instances describe self

I am in google cloud, in google compute engine. I am inside an instance in a managed instance group, What is the best command for giving me the output of... gcloud compute instances describe my-...
5
votes
1answer
73 views

How to obtain project quotas states (ssd disks, cpu)?

I try to obtain project quotas info for my GCP projects via gcloud or API: gcloud compute project-info describe --project [my-project-id] Unfortunately there is no data for CPUs and ssd disks. I ...
12
votes
1answer
4k views

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB

My environment: # uname -a Linux app11 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux # # cat /etc/*release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/...
1
vote
1answer
131 views

When creating a regional node pool with gcloud. The nodes do not register

When running the following gcloud command on my existing GKE cluster SCOPES=( https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/devstorage.read_write https://www.googleapis.com/...
0
votes
2answers
424 views

default ssh is not working from GCP Console and browser crashes or hang

After creating an instance in Google Cloud Platform(GCP), I was able to click on SSH and open the browser based SSH console to access the instance. (Auto key copying and connect from console itself ...
0
votes
1answer
130 views

Sync files between GCLOUD instances of same group

Have four instances in GCLOUD with SO: Linux (Ubuntu). I have to replicate the files uploaded through ftp to one machine and then to the remaining 3 machines. I have been thinking to use Rsync, but I ...
0
votes
0answers
349 views

Cannot edit VM or access it via SSH. error:Supplied fingerprint does not match current metadata fingerprint

I have a Linux machine on Google Cloud, created with Bitnami. It was working well, and it could be accessed through SSH, usign the web console or putty. However suddenly today it can not be accessed ...
0
votes
1answer
205 views

Gcloud kubernetes nginx unable to find upstream host after cluster upgrade

I have just upgraded my cluster and nodes to v1.7.12 and recreated all pods successfully except for my nginx pod which keeps on failing with the error: nginx 2018-02-17T08:38:07.965745644Z nginx: [...
0
votes
1answer
255 views

How to block port 80 in Google AppEngine

I want to block port 80 in Google AppEngine For example, when I run: sudo nmap -O <project-id>.appspot.com It shows: Starting Nmap 7.60 ( https://nmap.org ) at 2018-02-06 16:36 EST Nmap scan ...
0
votes
1answer
783 views

Open 443 on Google Compute Instance?

For some reason I can't open port 443 on my google compute instance. I have HTTPS server enabled on the instance, and using gcloud compute firewall-rules list returns the rules below: NAME ...
0
votes
0answers
58 views

Dynamic firewall rules in Google cloud - granting access from all kubernetes nodes to one instance

Let's say that you have a kubernetes cluster with a few nodes in a project in google cloud, and you have one separate instance in that project that all the nodes should have access to. How do you go ...
0
votes
1answer
552 views

How ephemeral (short lived) is the IP on a gcloud Compute Engine?

VM instance details report the external IP is ephemeral. Dictionary says this means "lasting for a very short time". Does anyone know how short? Static enough to aim DNS to this? If not very short, ...
0
votes
1answer
213 views

gcloud docker — push request canceled while waiting for connection

Trying to push docker image to gcloud and started getting this error. gcloud docker -- push us.gcr.io/purple01-192114/purple_cloud:80only The push refers to repository [us.gcr.io/purple01-192114/...
1
vote
2answers
1k views

Google Cloud Platform - SSH Connection Refused

After clearing a project and instance of SSH key metadata and running gcloud compute ssh (which will create a new key pair and update project metadata), I am no longer able to SSH in without getting ...
0
votes
3answers
149 views

can't access from rdp after change MAC address with powershell on Google compute enginge

I have changed the MAC address of a Google compute engine vm. After that, I can't access from rdp to that vm any more. The vm is not pingable also. I've tried to access from serial port with no luck. ...
0
votes
0answers
121 views

`gcloud docker` command refreshing access token on each invocation

macOS Google Cloud SDK 183.0.0 beta 2017.09.15 bq 2.0.27 core 2017.12.08 gcloud gsutil 4.28 kubectl I have tried revoking the login and logging in again but every command of gcloud docker refreshes ...
0
votes
1answer
84 views

gcloud ubuntu instance not receiving port traffic

I have an Ubuntu 16.04 GCloud Compute Engine instance. I was using port 8085 with that instance with no issues until one day I stopped the instance and then started it again, right now I cannot access ...
0
votes
1answer
55 views

gcloud command to change instance type?

Looking for a quick gcloud example to change an instances type. For example I would like to change an instance from 32vcpus/64GB RAM to 2vcpus/4GB RAM. I know how to do it in the web interface.
0
votes
1answer
162 views

unable to establish remote connection to mariadb (mysql) on centos7 on gcloud from mac or gscipt

newbie here - Issue: unable to establish remote connection to mariadb (mysql) on centos7 from a mac or a gscript - setup: I got 2 lamp machines: one test (107) and another one production (35) 107 - ...
0
votes
1answer
114 views

I can no longer SSH to a VM on GCP after breaking ssh configuration

I am starting to use GCP. I fixed a server (redhat), connected to it (using SSH, directly from GCP console) and deployed my application, everything worked well To try to fix something I played with ...
1
vote
1answer
236 views

Copy list of files (-I flag) with gsutil preserving path

I am trying to copy all pictures and static files to a bucket of mine in Google Cloud Platform. I am attempting this command from the root dir of my app: find -regextype posix-extended -iregex ".*\.(...
2
votes
1answer
56 views

What should I do to keep a common file cache server ? is NFS good idea? [closed]

I am not any networking or devops guy but I have to do this for my company because my company can't afford one, so pardon me for mistakes. I have got a web app hosted in google cloud and I use load ...
0
votes
1answer
396 views

Connection to server times out with SSH and takes down any possible connection to the same server within the working network

After updating and re-initiating gcloud and its SSH connections with gcloud update, gcloud init and then gcloud compute config-ssh --remove && gcloud compute config-ssh, sometimes and ...
1
vote
1answer
2k views

gcloud SSH connection asks for password instead of passphrase

I've got two VMs set up on Google Cloud Platform. server1 uses an Ubuntu 16.04 image [g1-small (1 vCPU, 1.7 GB memory)]; and the newly created VM, called server2, uses a CoreOS Stable image [f1-micro (...
0
votes
1answer
46 views

instances/setMachineResources equivalent in gcloud

From what I can tell the REST API has support for setting machine resources for existing instances (https://cloud.google.com/compute/docs/reference/beta/instances/setMachineResources), but I cannot ...
1
vote
0answers
199 views

gcloud compute forwarding-rule: 1st entry allows for address by name. 2nd+ only allow by IP address

When using the 'gcloud compute forwarding-rules create' command, the --address flag allows for you to set the address by name or IP. If you set a forwarding rule --address by name in the first entry, ...
1
vote
1answer
251 views

“over quota” error, how to find quota name or logs

App engine all apps are failing in 2 hours of work after quota reset on Midnight. App version redirected to 503 "Over Quota This application is temporarily over its serving quota. Please try again ...
0
votes
1answer
96 views

internal error while trying to move an instance across zones

I'm trying to move instance across zones in same region. I'm using following command: gcloud compute instances move <instance_name> --zone europe-west1-c --destination-zone europe-west1-b --...
0
votes
1answer
56 views

Where is my gcloud database

This'll be a settling in problem: I've created a wordpress site using gcloud's installer. I can see my files but not my database. I expected the database to be sitting in https://console.cloud.google....
0
votes
1answer
33 views

Changing an instance description in google cloud

If you do: gcloud compute instances list--format=flattened There is a field called description. I would love to be able to add descriptions to my instances and then be able to display them when I ...
0
votes
2answers
224 views

windows - gcloud ssh throwing potential security breach error

Please note - this is platform specific. I tried this on >>> print sys.platform 'darwin' and the code has no issue. Yet, on >>> print sys.platform 'win32' I get the issue. ...
1
vote
1answer
210 views

GKE can't tag cluster with Terraform config

I want to create similar configuration as described here: https://cloud.google.com/compute/docs/vpc/special-configurations#natgateway with Terraform but "no-ip" instances are in Kubernetes cluster. ...
0
votes
0answers
42 views

Mounted old disk folder /var/lib/mysql automagically synced up with new active /var/lib/mysql

noob here while working on a production server (old), i messed up a command and lock myself out of the gcloud compute engine instance (I know. dumb, stupid. I deserved them all). I setup a new ...
24
votes
4answers
4k views

gcloud docker — push results in login attempt failed with 404

I am trying to push a docker image to Google's container registry but keep getting a error about Docker login having failed. I run gcloud docker -- push gcr.io/<my-project-id>/test-image I ...
0
votes
1answer
61 views

GAE configuration & Billing

Google App Engine: Few weeks back I have developed an RoR application in GAE with aditional resources as CloudSQL and Storage Bucket. Our application is very simple CMS site. Here the app size ...
6
votes
3answers
5k views

How to use GOOGLE_APPLICATION_CREDENTIALS with gcloud on a server?

What is the simplest way to use the gcloud command line non-interactively with a Service Account outside of GCE? Preferably without littering the file system with credentials files, which is what ...
1
vote
0answers
21 views

Error following “gcloud app deploy” with Golang app - more info [duplicate]

Windows 10 Pro 64 bit Insider Edition build 16184 Please note that although the question title is almost identical to a previous question, reading it will reveal that the content now substantially ...
0
votes
1answer
639 views

Error in google app engine deployment

I have a Laravel web application for which I have added a app.yaml file, but I receive the following error whenever I try to deploy the app using gcloud app deploy: Details: [ [ { [enter ...
0
votes
2answers
46 views

gcloud beta compute disks create example-disk --csek-key-file example-file.json” is failing

When I am running the command "gcloud beta compute disks create example-disk --csek-key-file example-file.json" to create the encrypted disk using CSEK, it fails with the following error: ERROR: (...