gcloud

Plain console.warn() shows up in logs with serverity “ERROR”

孤人 提交于 2021-01-27 07:00:40
问题 When I log something with console.warn() it seems to appear in the Stackdriver logs with severity "ERROR". The Stackdriver Error Reporting does not show these errors, so it seems there they are not considered errors. This makes it impossible to filter the logs to only show me errors. Reading the Stackdriver logging docs I get the impression that I'm not supposed to use the plain javascript console functions but instead use Bunyan. Is that correct? I didn't read anywhere that I shouldn't. 回答1:

How to ensure Google Cloud Compute instance is up and running

元气小坏坏 提交于 2021-01-03 06:26:25
问题 I create Google Cloud Compute instance from the shell script, then launch several commands on that instance via ssh. How to ensure that operating system in the instance is up and running? For instance: gcloud compute instances create "$my_name" \ --tags "http-server" \ --image container-vm \ --metadata-from-file google-container-manifest="container.yml" \ --zone "$my_zone" \ --machine-type g1-small then I want to run either gcloud compute ssh \ "$my_name" --zone "$my_zone" \ --command 'sudo

Why gcloud command is slow to start?

为君一笑 提交于 2021-01-02 07:53:02
问题 Just typing gcloud for help take 5 secs. $ gcloud ... gcloud 0.30s user 0.13s system 7% cpu 5.508 total $ gcloud version Google Cloud SDK 128.0.0 alpha 2016.01.12 bq 2.0.24 bq-nix 2.0.24 core 2016.09.23 core-nix 2016.09.20 gcloud gsutil 4.21 gsutil-nix 4.21 kubectl kubectl-darwin-x86_64 1.3.7 $ uname -a Darwin hiroshi-MacBook.local 16.0.0 Darwin Kernel Version 16.0.0: Mon Aug 29 17:56:20 PDT 2016; root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64 回答1: EDIT 2017-03-31: Zachary said that gcloud 148.0

Why gcloud command is slow to start?

那年仲夏 提交于 2021-01-02 07:52:37
问题 Just typing gcloud for help take 5 secs. $ gcloud ... gcloud 0.30s user 0.13s system 7% cpu 5.508 total $ gcloud version Google Cloud SDK 128.0.0 alpha 2016.01.12 bq 2.0.24 bq-nix 2.0.24 core 2016.09.23 core-nix 2016.09.20 gcloud gsutil 4.21 gsutil-nix 4.21 kubectl kubectl-darwin-x86_64 1.3.7 $ uname -a Darwin hiroshi-MacBook.local 16.0.0 Darwin Kernel Version 16.0.0: Mon Aug 29 17:56:20 PDT 2016; root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64 回答1: EDIT 2017-03-31: Zachary said that gcloud 148.0

use gcloud with Jenkins

人走茶凉 提交于 2020-12-29 04:00:22
问题 I've been trying to write a script that polls Google Cloud Storage periodically. This works fine when I run it normally, but if I include it as a build step in Jenkins, it gives a 403 Forbidden error. This is because there's no gcloud auth login process completed for the Jenkins user, which requires a verification code to be copied..how do I do that using Jenkins ? EDIT: I tried the steps at: https://cloud.google.com/storage/docs/authentication#service_accounts and downloaded a JSON key that

What happens when re-authenticating the service account with gcloud?

喜欢而已 提交于 2020-12-15 04:57:31
问题 I have heard that if the service account is having high privileges, but access scopes are restrictive, and we need to somehow authenticate to services without OAuth, then we can re-authenticate the service account with the keys that we have (assuming we got somehow). So is it true, re-authenticating the service account can give us cloud-platform scopes? gcloud auth activate-service-account --key-file key.json 回答1: Scopes are an OAuth permission mechanism. Google Cloud first started with

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

試著忘記壹切 提交于 2020-11-30 12:03:12
问题 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 are using the correct project ID and that you have permission to view applications on the project. I am running following command - gcloud builds submit . --config cloudbuild.yaml My cloudbuild.yaml file looks like - steps: #install - name: 'gcr.io/cloud-builders/npm' args: ['install'] #deploy -

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

蓝咒 提交于 2020-11-30 12:01:07
问题 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 are using the correct project ID and that you have permission to view applications on the project. I am running following command - gcloud builds submit . --config cloudbuild.yaml My cloudbuild.yaml file looks like - steps: #install - name: 'gcr.io/cloud-builders/npm' args: ['install'] #deploy -

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

荒凉一梦 提交于 2020-11-30 12:00:06
问题 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 are using the correct project ID and that you have permission to view applications on the project. I am running following command - gcloud builds submit . --config cloudbuild.yaml My cloudbuild.yaml file looks like - steps: #install - name: 'gcr.io/cloud-builders/npm' args: ['install'] #deploy -