Questions tagged [gcloud]

gcloud is the main command line tool of Google Cloud SDK, which allows you to manage resources on Google Cloud Platform and perform various developer workflow tasks.

0
votes
1answer
12 views

gcloud functions deploy always says: --region: NAME must be specified

If I do cloud functions deploy --trigger-http --env-vars-file .env.yaml --region=europe-west2 .env.yaml : runtime: nodejs10 region: europe-west2 I get this error ERROR: (gcloud.functions.deploy) ...
0
votes
0answers
11 views

How to access Google Cloud Storage Bucket from AI Platform job

My Google AI Platform / ML Engine training job doesn't seem to have access to the training file I put into a Google Cloud Storage bucket. Google's AI Platform / ML Engine requires you store training ...
0
votes
0answers
21 views

I am getting “ImportError: No module named utils” in my Centos 7 machine in Gcloud

I am using Gcloud for Twitter streaming. I have made the script in Python but when I run it it gives me an error stating: "ImportError: No module named utils" OS: Centos 7 Python version : 2.7.5 ...
0
votes
0answers
9 views

Failed to load resource: the server responded with a status of 404 () google cloud app engine deployment with react express

im trying to deploy my react express app to google app engine and am currently getting this error: Failed to load resource: the server responded with a status of 404 () I was wondering if this were ...
0
votes
0answers
19 views

Deploying React express App on Google app engine: 404 error

I'm trying to deploy my React express app to Google clouds app engine and I am currently getting a 404 status error: Failed to load resource: the server responded with a status of 404 () along with ...
0
votes
0answers
7 views

ASP.NET system can not find the static file after deployment on docker-container on gcloud

In the root folder of the project, I have the file (AOXImport-65a1b14a95af.p12) that I use to connect to Google spreadsheets. I can open this file during debugging, also during debugging in the docker ...
1
vote
2answers
39 views

“./” does not work in “gcloud compute ssh test --command”

We have one main script in Google Cloud Ubuntu VM that executes many other scripts. I am trying to execute main script from Windows Google Cloud SDK with command: gcloud compute ssh vm --command="./...
0
votes
1answer
25 views

MicroDb not restarting. Stuck at 'Instance being restarted' for several hours

MySQL microDB instance of Cloud SQL is stuck in restarting for several hours. It is showing 'Instance is being restarted' for a long time. I am not able to connect, take backup, restore or clone it. ...
0
votes
1answer
15 views

Is GCloud Serverless VPC connector available outside us-central1?

Has anyone managed to create a serverless VPC connector in google cloud outside region us-central1? I only seem to be able to choose us-central1 (see image attached).
0
votes
1answer
13 views

How the VM instance set up on gcloud contains the fast.ai tutorials already?

I am just about to start the fast.ai course and have followed the instruction to set up the VM instance on Google Compute Cloud. Surprisingly I found that when I started the instance and opened ...
1
vote
1answer
18 views

Can I specify the model (e.g. “video”) in the Google Cloud Speech-to-Text api when using the gcloud tool?

Google's speech-to-text service has several possible models to use for transcribing speech to text (standard, video, phone call, etc). Google provides documentation here on using these models when ...
0
votes
1answer
19 views

google cloud Batch prediction only supports Tensorflow.FRAMEWORK_CUSTOM_CLASS

I am trying to do some image batch predictions on a custom model prediction routine. I have followed this tutorial for creating the routine wrapper. I have deployed my model as a tar.gz on google ...
-1
votes
1answer
34 views

kubectl cannot connect GKE, failing with x509: certificate signed by unknown authority

I can't connect from my machine to any GKE cluster. From remote machine, it's working, but not from mine and I can't figure out why. If some of you have any idea... I have installed kubectl from ...
1
vote
0answers
42 views

Gcloud ai-platform, can't create model with own prediction-class

I try following AI Platform tutorial to upload a model and a prediction routine but one part fail and I don't understand why. My prediction class is the same as in their tutorial: %%writefile ...
0
votes
0answers
26 views

Volley timeout with gcloud (good with postman and iOS…)

I'm having timeout error when POSTing with Volley on gcloud app engine. With setRetryPolicy(new DefaultRetryPolicy(0, 2, 0)) the request works but takes 6s (instead of 200ms on postman or iOS). ...
0
votes
1answer
16 views

Can you change the default network in gcloud?

Is there an equivalent gcloud config setting to change the name of the default network and assign a default subnet? I've deleted the initially configured network named "default" so when I run command ...
0
votes
1answer
39 views

How do I run custom python script in Google App engine

Apologies for the long detailed question. Here goes... The file has the name send_daily_report.py and uses some libraries which are detailed in a requirements.txt file. My app.yaml looks as follows: ...
0
votes
1answer
40 views

gcloud - 500 internal server error with angular 1 + node js

I am getting following error logs - 2019-05-15 11:51:20 default[20190515t114916] { [Error: ENOENT: no such file or directory, stat '/srv/client/dist/client/index.html'] 2019-05-15 11:51:20 default[...
0
votes
1answer
22 views

Getting 'No such object' error when trying to download gcloud app engine builds

I have a Django application running on google app engine. Just because I don't know how to use Git, I usually download latest app engine version from google cloud build and work with different folder ...
0
votes
1answer
17 views

Why doesn't gcloud auth activate-service-account work on Windows?

I have a Google Cloud service account token, freshly downloaded. I'd like to activate it on Windows, Mac, and Linux as part of a CI pipeline. To do so, I do: gcloud auth activate-service-account --...
1
vote
2answers
43 views

gcloud - ERROR: (gcloud.app.deploy) Permissions error fetching application

I am trying to deploy node js app on google cloud but getting following error - Step #1: ERROR: (gcloud.app.deploy) Permissions error fetching application [apps /mytest-240512]. Please make sure you ...
0
votes
1answer
40 views

“Unable to read file [input.json]: [Errno 2] No such file or directory: 'input.json'” When running local predict

I am following the Google Cloud guide to upload my prediction model via this guide: https://cloud.google.com/ml-engine/docs/scikit/quickstart?fbclid=IwAR1HjyGajUj-...
2
votes
1answer
39 views

Why is `gcloud init` not displaying all texts?

I installed Google Cloud SDK and I'm initializing, ie running gcloud init, per the instructions on Windows 10 in Git Bash. However, the output text seems to be cut off. This is the only output $ ...
0
votes
1answer
18 views

google cloud gcloud app deploy gives me permission denied

I can't deploy an app anymore. I was able to yesterday, then I deleted the project, then today I re-enabled it. And now when I deploy with gcloud app deploy I get a build error, in the build error log ...
0
votes
1answer
15 views

GCloud AppEngine Cannot ssh into standard instance

Trying to ssh into AppEngine instance using cli. I have the right command but not sure how to allow ssh for a standard instance or if this is not possible at all. I am new to Gcloud (AWS Guy). Their ...
0
votes
0answers
17 views

Docker-credientials-gcloud not in system path

After the latest updates to gcloud and docker I'm unable to access images on my google container repository. Locally when I run: gcloud auth configure-docker as per the instructions after updating ...
0
votes
1answer
30 views

bq command is not able to authorize

From my server, I have set the project and also set the active service account. I am able to fire the gsutil command successfully, but getting an error when running the bq command. The error is ...
1
vote
1answer
52 views

Cloud ML Engine not working in command line and says it can't find a valid Python Path

I am trying to get prediction from a local model using the gcloud ai-platform command line tool, however I am getting an error "ERROR: (gcloud.ai-platform.local.predict) Something has gone really ...
0
votes
3answers
50 views

elasticsearch setup on Gcloud VM fails

I wish to run my elasticsearch remotely on gcloud VM, this is configured to run at 127.0.0.1 at a specific port 9200. How to access this from a website outside this vm? If I change the network host to ...
0
votes
1answer
31 views

How to call Docker and Push Images to GCR from Go in Google Cloud Builder

I am hoping to transition to Google Cloud Builder for building my project. The project contains numerous Docker images that I want built and pushed to Google Container Registry. I have a Cobra CLI ...
1
vote
1answer
48 views

How to specify the container name running on Google Compute Engine?

I am running one container on GCE via gcloud compute instances create-with-container [INSTANCE_NAME] --container-image='gcr.io/xxxxx' https://cloud.google.com/sdk/gcloud/reference/compute/instances/...
0
votes
2answers
77 views

How to Deploy Angular 7 Project to Google Cloud

I have built an Angular 7 application that works nicely when I do the ng serve command from my local mac or from a remote centos server. This application is using php files that access MySQL data ...
0
votes
1answer
19 views

Is there a way to add a new CIDR to authorized networks for cluster master access in GKE

When creating a new cluster in Google Kubernetes Engine with the gcloud container clusters create command, one can specify a list of authorized networks that can access the master using the --master-...
0
votes
1answer
45 views

gcloud sql import csv fails with permissions error when import file contains wildcard

According to the Google Cloud Platform SQL docs, I should be able to both export to and import from sharded files in a GCS bucket by putting a * in the filename. If I import a single file, it works ...
0
votes
1answer
21 views

Is there a way to filter entities that that have missing property in a gcloud datastore python api?

I am trying to run a query, that will return only entities that have a missing property. I have tried this: query = client.query(kind='IPs') query.add_filter('property_name','=',None) But this ...
0
votes
1answer
11 views

what file structure should I use for django app on google app engine

I can't get my django app to run on google app engine. It deploys successfully but throws an error when I try connect to it in my browser. main.py throws the following error: from wsgi import ...
0
votes
0answers
15 views

gcloud get credentials throws The system cannot find the path specified: u'H:\\' on Windows

I am trying to connect my local to my new GCP Kubernetes cluster using any on the the following commands: gcloud container clusters get-credentials my-best-cluster --zone=australia-southeast1 ...
0
votes
1answer
67 views

Change skaffold command for Cloud Code VSCode extension

I'm using the Cloud Code extension for VSCode and each time I'm deploying, the skaffold command executed is the following: skaffold run --enable-rpc -v info --rpc-http-port 33291 --default-repo gcr....
0
votes
1answer
26 views

How to copy files from Google Drive using gcp

How can you copy files from your google drive to your instance machine using the "gcloud" command? I authorised the google drive using - gcloud auth login --enable-gdrive-access But I can't find ...
0
votes
1answer
43 views

How to fix dialogflow authentication issue

I have a dialogflow project that I'm trying to access from Java with a rest call. It is giving me an authentication issue. I have followed all online instructions (and many forum suggestions) to no ...
1
vote
1answer
94 views

Google Cloud VPN Tunnel: The request contains invalid arguments: “undefined”. Error code: “undefined”

After creating a Google Cloud VPN Tunnel, I get the following cryptic error message: The request contains invalid arguments: "undefined". Error code: "undefined" Does anyone know what this error ...
0
votes
1answer
10 views

GCloud Compute Project-Info Add-Metadata Hangs

The following command doesn't exit on my system: gcloud compute project-info add-metadata --metadata=itemname=itemvalue I am using powershell on windows, and I've also tested on a linux container in ...
0
votes
1answer
24 views

Link gcloud with existing components

After installing gcloud, running gcloud components list list all installed component. Is there a way to associate kubectl (already install on the system using OS package manager) to this list? gcloud ...
0
votes
1answer
16 views

Google App Engine continuously starting removed version/instance

I've got a problem with incorrectly deployed Google App Engine instances - I deployed 3 instances with invalid entry point script which failed (error is raised and sent to Sentry). The application is ...
0
votes
0answers
13 views

Unable to run tf.contrib.saved_model.load_keras_model() with Google Bucket access

I am trying to run a python code with the following lines:- model_dir ='gs://my-bucket-001/project-folder002/keras_export/model-folder003' model = tf.contrib.saved_model.load_keras_model(model_dir) ...
1
vote
0answers
19 views

google.cloud.storage.Client in Spyder doesn't work while it works in Powercell

after some basic Google Authentication setup, I am now able to run below code by a simple comman line >python temp001.py in Powercell of Windows 10, which list my google buckets in cloud. I tried to ...
2
votes
1answer
86 views

How to setup log-driver gcplogs while using gcloud compute instance update-container or force it to use default driver?

Question How to send logs from docker container standard output, to GCP Stackdriver, if this container was deployed using gcloud compute instances update-container command? Most recent finding ...
0
votes
1answer
22 views

How do I access the output of a completed gcloud ml speech-to-text operation in Mac OS Terminal (or via Gcloud web UI?)

I successfully installed Gcloud for Mac OS (Terminal use). I figured out how to run the proper command to transcribe a 60-min 2-person interview MP3 file from speech to text. The job finished ...
0
votes
2answers
53 views

nginx: [emerg] getgrnam(“nobody”) failed

while installing letsencrypt certificate the output error is: nginx: the configuration file /jet/etc/nginx/nginx.conf syntax is ok nginx: [emerg] getgrnam(“nobody”) failed nginx: configuration file ...
0
votes
1answer
8 views

How to access google container registry across projects

I currently have two project stage and prod all my docker images are managed using container repository. I would like to be able to deploy my images from prod to staging to app engine. It looks like ...

http://mssss.yulina-kosm.ru