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
0answers
15 views

Using App Engine Standard with PHP7.4

I have Problems using php 7.4 with App Engine Standard. The Documentation states there is an beta Version (php74), but it does not work. I get the following error: ERROR: (gcloud.beta.app.deploy) ...
0
votes
1answer
30 views

Google Cloud load balancer redirect if from a certain region

I have two static pages (English, Danish) which are currently in Google Cloud Storage Bucket. This bucket contains en and dk folders for those static pages. Also, I have a Load Balancer with Google ...
0
votes
1answer
56 views

Gcloud compute snapshot of re-created disk is not complete?

I recently recreated a disk / vm image in google compute from a previous set of snapshots. Those snapshots are currently dated and sized as follows: - May 20 60 MB - May 21 372 MB - May 22 ...
0
votes
0answers
21 views

GCSFuse keeps generating dummy files on mounted bucket that can't be deleted due to retention policy

I'm currently setting up a GCP storage bucket on my instance which will be used for backups. I have currently configured fstab to mount the bucket on startup using the following config. cpanel1-vm-...
0
votes
1answer
94 views

Adding new acces config on SSH Connection

I have a problem on my Google Cloud Platform account In SSH connection, I can delete my existing access config but can not add new one. When I run the command below the sceen is waiting and noting ...
1
vote
1answer
27 views

In GCP, how can I identify all the subnets that have Flow Logs 'Off'?

I would like to identify which subnets are not logging VPC Flows. I have used the following gcloud command in one of my projects to try and identify which subnets do not have Flow logs enabled ...
0
votes
0answers
23 views

Export Google Cloud SQL slow logs to ELK stack

I stumbled upon an issue and decided to ask for advice and eventually find someone with the same business need (and problem). Summary - we’ve recently migrated the SQL service of one of our clients ...
0
votes
1answer
79 views

gcloud-console “You do not have permission to see this card” => cannot open SSH session?

New to gcloud, need to admin a compute engine. I have the following roles: Compute Admin Service Account Admin Organization Admin Yet when I view the dashboard, the Compute Engine card says "...
0
votes
0answers
44 views

try to connect ssh on VM ubuntu 18

I try to connect VM on ssh got Permission denied (publickey) so i try on cloudshell and try to make key on vm still got same problem [enter code here][1]to set key and update metadata when i put `...
0
votes
1answer
55 views

I am trying to import a virtual appliance. It concludes with a failure. What might me wrong?

I uploaded an ova file to my bucket. I open the Cloud Shell online terminal. I set region and zone successfully. Then I run the following command to start the import. gcloud compute instances import ...
1
vote
1answer
27 views

How can I identify what ALPHA/BETA features are being used in my GCP organisation?

I'd like to be able to regularly audit my gcp estate by verifying that no unapproved ALPHA/BETA features are enabled. I can't seem to find a gcloud command that could identify this. I recognise that ...
0
votes
1answer
45 views

gcloud app deploy source-context.json SHA mismatch

I have a Python 3 project which I am hosting on Google AppEngine Standard. Until a couple of days ago I was able to deploy normally (right since I did the initial setup in July 2019). Now I'm getting ...
0
votes
1answer
14 views

Gcloud images page not displaying properly in firefox

Probably just me, but when I went to start our gcloud instance this morning the start/stop/edit icons disappeared when I tried to click on them. I'm using the web interface using firefox on Linux. ...
0
votes
1answer
18 views

running gcloud command on a bash file on windows

Is there a way to automatically execute the command of starting a instance and connect to it via ssh when I launch the google cloud sdk shell ? How to do ? I was thinking about a bash file which will ...
1
vote
1answer
46 views

gcloud deploy not making dist folder

Admittedly, I'm a novice at GCloud. I "inherited" a project abandoned by the previous developer. I'm trying to deploy a node app on the app engine. The app won't start because it can't find the ...
0
votes
1answer
102 views

gcloud auth login: Limit Oauth2 scope

How can I limit the Oauth2 scope when logging in with my user principal using (non service account): gcloud auth login Background: I created a Gsuite Takeout, got the Takeout Bucket. Now I want to ...
1
vote
1answer
62 views

I am being billed for node usage if I cordon and drain the node?

I am learning GKE (Google Kubernetes Engine), and I have a cluster with 2 node pools: ➜ ~ gcloud container node-pools list NAME MACHINE_TYPE DISK_SIZE_GB NODE_VERSION pool-2 ...
0
votes
0answers
24 views

Google Cloud SQL instance failover failed

We attempted to failover a cloudsql instance and the operation failed with an unknown error. The instance state is now "status: failed" with
0
votes
1answer
44 views

Occasional permission denied when getting logs using gcloud through Jenkins running as GKE

We are using a Jenkins project to run "gcloud logging read ..." from a shell to get logs from a gcloud container and we occasionally see a permission error in the script: ERROR: (gcloud.logging.read) ...
0
votes
1answer
45 views

What does gcloud auth revoke actually do?

I'm trying to use a service account to allow a web app to upload files periodically to Cloud Storage with "gsutil cp". During the installation of the gcloud utilities on the web server, I ran a ...
1
vote
1answer
117 views

List NTP information of gcloud kubernetes

Is there an option to show, that metadata.google.internal is used as NTP when i connect to a pod or to the kubernetes VM? I tried the following: ntpq -p, which results in command not found, but was ...
1
vote
1answer
53 views

Will I be charged for a VM instance which was in a project I shut down recently?

I recently shut down a project in gcloud. I had a VM instance running in that. Will that project charge my free trial credit even after shut down?
1
vote
1answer
56 views

google route peering as nexthop

Using the google cloud web interface for add a custom route with a peering as nexthop,But in this interface and in gcloud too, we can select only as next hop: --next-hop-address=NEXT_HOP_ADDRESS --...
0
votes
0answers
33 views

Can no longer log into gcloud VM instance

I've logged into this computer 10 times. The instance is clearly started. It is worth pointing however that the last time I used the computer it crashed for stupid reasons. I got the error message '...
0
votes
1answer
14 views

Cannot move files from gcloud VM Instance to laptop

I can move files from my laptop to a gcloud VM instance just fine, the other way around however is not so easy. According to this website I am to use this syntax: scp -i ~/.ssh/my-ssh-key username@...
0
votes
1answer
489 views

How do i completely logout of Google Cloud? `gcloud auth revoke --all` doesn't cut it

Logging out of Google Cloud seems like it should be easy. If I run: $ unset GOOGLE_APPLICATION_CREDENTIALS $ gcloud auth revoke --all Revoked credentials: - [my account] $ gcloud auth list No ...
0
votes
1answer
94 views

Create tablespace in gcloud sql instances

I had created one PostgreSQL instance under gcloud database. Using default user (postgres) i want to create a tablespace but its not allowing me to create, says permission doesn't exist Can we ...
0
votes
2answers
124 views

Building Google Container

I'm trying to build a simple app container but am getting a 403 saying the project isn't associated with a billing account. I've confirmed the project linked to an active billing account, and even re-...
0
votes
1answer
144 views

Why my GCP regional TCP load balancer cannot connect to my target pool

I'm trying to put a GCP regional TCP load balancer on front of my service. My service expose 7933 port out. And I can get response from my service server's IP. The set up is based on this article. ...
1
vote
1answer
93 views

How to set instance group manager created instances not simultaneously?

I need instance group manager created multiple instances and then let each instance run a start-up script. But I hope this instance creation has some order or intervals. Cause if multiple nodes run ...
0
votes
1answer
53 views

kubectl not showing new context created in GCP

From client A, I created a new kubernetes cluster in GCP as follows: $ gcloud container clusters create my-new-cluster --num-nodes 3 From client A, I can see the new context was created: $ kubectl ...
0
votes
0answers
127 views

Error Deleting GCP Project

I am trying to delete a GCP Project in my account, but I am facing repeated errors. If I try to delete is from gcloud command line, I get the following error. ERROR: (gcloud.projects.delete) ...
0
votes
2answers
43 views

Google GCE Hosted Instance Group Setup Issue

Is there a way for Managed Instance Group (MIG) to force a VM to be retained without being replaced and re-created? Ispconfig is currently used to manage websites within a VM instance But it also ...
0
votes
1answer
77 views

gsutil error /bootstrapping/gsutil.py

gsutil is giving me the following error. It is installed in its latest version on a linux suse 12. Can you help me? gsutil Traceback (most recent call last): File "/root/google-cloud-sdk/bin/...
0
votes
1answer
39 views

Is it possible to add or change a GCP compute engine service account using powershell?

When migrating compute resources into GCP, they don't get assigned a service account or API access. I have some knowledge with powershell and I'd like to be able to assign a service account and set of ...
0
votes
1answer
43 views

No errors when a Dataflow job is hitting Pub/Sub Subscriber throughput quota

Is there a way to know that Dafaflow job reading from a Pub/Sub topic is hitting a quota Cloud Pub/Sub API Subscriber throughput, kB per minute. There were no indications of problems in the log, ...
0
votes
1answer
66 views

How to change location of staging bucket from Dataprep?

I created my Dataprep project but the staging bucket created by default is US located, when my source data is located in EU BigQuery tables. For that difference in the regions, I'm getting an error ...
0
votes
2answers
89 views

How to ssl a google compute engine server?

I have a docker image that looks like FROM ubuntu:18.04 RUN apt-get update; \ apt-get install -y libsnappy-dev software-properties-common; \ add-apt-repository universe ldconfig; \ add-apt-...
0
votes
1answer
74 views

Gcloud repository - how to make a repo stable?

We're using our gcloud cloud repositories to store modules and themes for our project which we get with composer. But I can't find a way to make a repository labelled as "stable" for this purpose; I ...
0
votes
1answer
113 views

GCP - create vm instance with two or more tags

Using the code below to create VM with two tags, only the last one remains. Documentations says to use --tags=TAG,[TAG,…] but that does not work. Any help would be great. Thanks. I have tried the ...
0
votes
1answer
27 views

Google Compule Engine: Running multiple containers

Is there a way to automate creation of a VM instance with more than one container running? I can create a VM with one container running when using gcloud. Basically, is there an easy way to achieve ...
1
vote
1answer
226 views

Use ansible gcp modules to create Cloud NAT

I am currently struggling to configure Cloud NAT in gcp via ansible. I was able to set up the Cloud NAT as described in the documentation: https://cloud.google.com/nat/docs/gke-example with gcloud ...
0
votes
1answer
57 views

SSH issue with GCE VM Instance

I've been trying to solve this for a few days without luck and similar questions/answers on this site don't solve the problem. I have 3 different VM Instances on GCE and everything works fine on two ...
0
votes
1answer
54 views

Set the Network Service Tier at the resource level for new Clusters

I'm working on a hobby Kubernetes project on GKE that I want to keep cheap (standard tier only). I would like to craft a gcloud container clusters create command that creates a cluster that will ...
0
votes
1answer
90 views

How can we have single user credentials to access multiple projects?

I have a project from which I want to copy few container images to another project using a node application. I use container-image-builder module for the same. The copying works with service account ...
0
votes
2answers
612 views

gcloud app deploy error --> ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred

I am new on gcloud apps, need help on deployment web apps. I create an app engine and a cloud sql(mysql), it is in different project. Lets call app engine as web1 and sql as mysql1 When i deployed ...
0
votes
0answers
15 views

Looking to verify a Google API application which is behind a login page

Context: I'm working on a Google API application which is pretty simple. It adds an event to the users google calendar. An email is what redirects the user to my application login page and then after ...
3
votes
1answer
399 views

gsutil rsync “too many values to unpack” error

I'm trying to sync a folder with over 3k files to a bucket on Google Cloud with gsutil. The problem is that less than half of the files are uploaded and then I get this error: too many values to ...
0
votes
1answer
219 views

GCP App Engine Flexible Environment Slow Disk I/O

Background/Overview: We have a Python Web Application with three environments in two projects staging/dev and production. These are hosted in GCP using Google App Engine Flexible Environment, Cloud ...
-2
votes
1answer
77 views

App engine website coming soon

App engine only works in US central. I accessed the site there, but when moved to the west coast, my website displays a "coming soon" page instead of the website I uploaded.