gcloud

gcloud deploy function error code 3

大兔子大兔子 提交于 2019-12-12 10:55:58
问题 I'm doing the tutorial of basic fulfillment and conversation setup of api.ai tutorial to make a bot for facebook messenger, and when I try to deploy the function with the command: gcloud beta functions deploy testBot --stage-bucket testbot-e9bc4.appspot.com --trigger-http (where 'testBot' is the name of the project and 'testbot-e9bc4.appspot.com' is the bucket_name, I thought..) It return the following error message: ERROR: (gcloud.beta.functions.deploy) OperationError: code=3, message=Source

google cloud sdk: set environment variable_ python --> linux

女生的网名这么多〃 提交于 2019-12-12 08:39:33
问题 ERROR: Python 3 is not supported by the Google Cloud SDK. Please use a Python 2.x version that is 2.6 or greater. If you have a compatible Python interpreter installed, you can use it by setting the CLOUDSDK_PYTHON environment variable to point to it. I guess the first question we should be asking is "with all the money google makes off of their customers why can't they hire someone to ensure that their cloud sdk works with python 3?" How exactly to overcome this error on linux? What specific

Is it possible in google cloud web client to create an instance from image in different project?

岁酱吖の 提交于 2019-12-12 03:44:24
问题 I have several projects in gcloud, call them e.g. "staging-project" and "production-project". I have created an image, call it "stagign-image-1" in "staging-project", which I use for new instances. And I would like to use this image in "production-project" as well. As far as I know, it is possible to do it using gcloud command line tool - you log there using your private google account, which has access to both projects and do: gcloud config set project "production-project gcloud compute

Fastest way to fetch tags and status of GCE instances?

旧城冷巷雨未停 提交于 2019-12-12 03:28:29
问题 When I perform 3D graphics rendering using GCE Linux instances (CPU load >= 1.0), the describe command takes more than 30 seconds to execute. gcloud compute instances describe render-1 When running 50 such instances and querying each one individually, this takes more than 25 minutes. Is there a faster way to fetch this data? 回答1: gcloud compute instances list should do what you want. In order to get information on tags and status, you'll want to use the --format flag: $ gcloud compute

gcloud preview app run “bad port Access Denied” error on Windows

隐身守侯 提交于 2019-12-12 03:26:01
问题 I'm trying to setup a multi-module Appengine app with one module as managed VM. But for starters, I'm checking if I can run gcloud preview app run on the AppEngine Java multi-modules sample from here: https://github.com/GoogleCloudPlatform/appengine-modules-sample-java When I import it in Android Studio, and run the appengineRun build rule, it builds fine. However, if I go to command prompt, and run the following: E:\appengine-modules-sample-java-master>gcloud preview app run appengine

How to remove gcloud fully?

大憨熊 提交于 2019-12-12 01:15:56
问题 I'm new on mac. I just remove gcloud folders. And now when I open my command line window I always see next: -bash: /Users/myuser/gcloud/google-cloud-sdk/completion.bash.inc: No such file or directory -bash: /Users/myuser/google-cloud-sdk/path.bash.inc: No such file or directory -bash: /Users/myuser/google-cloud-sdk/completion.bash.inc: No such file or directory I know that made mistake removing not with gcloud command. But we have whad we have. So the main question is how to not get current

google compute engine add firewall rule for hadoop dashboard

▼魔方 西西 提交于 2019-12-11 20:18:08
问题 I installed hadoop cluster using bdutil (instead of click to deploy). I am not able to access job tracker page at locahost:50030/jobtracker.jsp (https://cloud.google.com/hadoop/running-a-mapreduce-job) I am checking it locally using lynx instead of from my client browser (so localhost instead of external ip) My setting in my config file for bdutil is MASTER_UI_PORTS=('8088' '50070' '50030') but after deploying the hadoop cluster when I do firewall rules list I get following NAME NETWORK SRC

gcloud command to check if project exists

笑着哭i 提交于 2019-12-11 17:49:44
问题 Is there a command for this? I can do gcloud projects describe my-project ...and check for an error. But that's not specific to not-found errors. I thought to check the exit code, and I do see that there are some different error codes: $ gcloud projects describe some-nonexistent-project-foo; echo $? 130 $ gcloud projecx typo typo; echo $? 2 ...but without any documentation, I don't want to trust that 130 specifically means not found. Could mean any server error for all I know. So, is there

gcloud datastore: Can I filter with IN or Contains operator?

我怕爱的太早我们不能终老 提交于 2019-12-11 17:46:10
问题 I am a new bee with the Datastore gCloud. And I want to filter in an entity called Score all the scores that have relation with a list of companies. My entity is formed as follows: { "company_id": 1, "score": 100, } I have several entities with different company IDs. I tried to filter using the query.add_filter command but got the error ValueError: ('Invalid expression: "IN"', 'Please use one of: =, <, <=,>,> =.') The reason for the error is very clear to me, but I have not found anything in

Argument [app.yaml] is not a valid deployable file google cloud error

随声附和 提交于 2019-12-11 16:32:28
问题 I'm going through the hello world tutorial on how to deploy a nodejs app to google cloud. I downloaded the google cloud sdk. I finished all the steps until "Deploy the app to Google Cloud Platform". When I get there, I enter the command they tell you to enter. It asks if you want to deploy the module and I said yes. Everything is fine until the end where it says Is this because my zone is set to us-central-f? I am in India. 回答1: It looks like your project was created in Europe. Unfortunately