google-cloud-sdk

Why can't I run 2 commands consecutively using batch file for gcloud

百般思念 提交于 2020-01-15 10:15:17
问题 so I have this .bat file: @echo off cd C:\Users\user\Downloads gcloud auth activate-service-account --key-file=keyFileName.json gcloud auth print-access-token pause During the first gcloud command, it will suddenly crash the command prompt halfway, but when I copy and paste each line manually into command prompt in the same location as the location I am trying to cd to in the .bat file, it works... Any idea why? I am on Windows 10 by the way. Searching on Google, I found two related issues,

FetchOptions withLimit() does not reduce query execution time (Google App Engine)

不羁岁月 提交于 2020-01-11 13:21:07
问题 Problem Running a datastore query with or without FetchOptions.Builder.withLimit(100) takes the same execution time! Why is that? Isn't the limit method intended to reduce the time to retrieve results!? Test setup I am locally testing the execution time of some datastore queries with Google's App Engine. I am using the Google Cloud SDK Standard Environment with the App Engine SDK 1.9.59. For the test, I created an example entity with 5 indexed properties and 5 unindexed properties. I filled

Google Cloud SDK v274.0.0 update asking for Python 2.7 interpreter on a machine that has only ever had Python 3+ (Windows)

岁酱吖の 提交于 2020-01-05 07:09:27
问题 This is really strange - I've found no help in the documentation, nor can we replicate the error on a machine of a similar build. The gcloud CLI has worked without any error on my Python 3 machine for months. After today's update, any gcloud command is met with the below error message, looking for a Python 2.7 interpreter. I'm at a loss as to how to proceed - even when attempting to uninstall with the gcloud command the same error is thrown. 回答1: This is a known issue that is being tracked

Can I automate Google Cloud SDK gcloud init - interactive command

跟風遠走 提交于 2019-12-29 02:57:24
问题 Documentation on Google Cloud SDK https://cloud.google.com/sdk/docs/ directs one to run gcloud init after installing it. Is there a way to automate this step given that gcloud init is an interactive command? 回答1: One does not need to run gcloud init . Main goal is to make sure credentials are configured and perhaps the project property is set. If you have service-account credentials, gcloud can be configured and ready to go via the following: gcloud auth activate-service-account --key-file

Can I automate Google Cloud SDK gcloud init - interactive command

柔情痞子 提交于 2019-12-29 02:57:06
问题 Documentation on Google Cloud SDK https://cloud.google.com/sdk/docs/ directs one to run gcloud init after installing it. Is there a way to automate this step given that gcloud init is an interactive command? 回答1: One does not need to run gcloud init . Main goal is to make sure credentials are configured and perhaps the project property is set. If you have service-account credentials, gcloud can be configured and ready to go via the following: gcloud auth activate-service-account --key-file

Command “bq update” gives me “unexpected keyword argument” error when updating tables

这一生的挚爱 提交于 2019-12-24 23:26:14
问题 Newbie here. So I have started using Google's Big Query and have their Cloud SDK installed which helps me manipulate my data from the Command Prompt. Lately, however, I started getting this error message whenever I use the "bq update" command on a table. UpdateTable() got an unexpected keyword argument 'range_partitioning' The complete command that I used is: bq update --description "something something" some-project:Output_Tables.dummy Am I doing anything wrong? I can't find anything in Big

Deployment failed due to “Request had insufficient authentication scopes”

北城以北 提交于 2019-12-23 04:56:11
问题 I created new VM instance (jenkins-server) on project1 and I installed jenkins server on it . one of the jenkins jobs should build my app and deploy it on project2 with the following command mvn gcloud:deploy -Dgcloud.gcloud_project=project2 -Dgcloud.version=jenkins-build-1 The command fails due to the following error : [INFO] Beginning deployment... [INFO] DEBUG: No bucket specified, retrieving default bucket. [INFO] DEBUG: {u'status': u'PERMISSION_DENIED', u'message': u'Request had

Deployment failed due to “Request had insufficient authentication scopes”

两盒软妹~` 提交于 2019-12-23 04:56:08
问题 I created new VM instance (jenkins-server) on project1 and I installed jenkins server on it . one of the jenkins jobs should build my app and deploy it on project2 with the following command mvn gcloud:deploy -Dgcloud.gcloud_project=project2 -Dgcloud.version=jenkins-build-1 The command fails due to the following error : [INFO] Beginning deployment... [INFO] DEBUG: No bucket specified, retrieving default bucket. [INFO] DEBUG: {u'status': u'PERMISSION_DENIED', u'message': u'Request had

ImportError: No module named google.oauth2

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 06:29:17
问题 I wanted to add a google.cloud.storage dependency to my project so I tried to install this dependency with pip install --upgrade google-cloud-storage Running my app again with dev_appserver, it shows me that my gcloud components needed to be updated. Ok so, gcloud components update And in my src/__init__.py file, I got the code that tells gcloud in which folder to look for dependencies like this: from google.appengine.ext import vendor vendor.add('src/libs') All the dependencies are installed

“bq” command line tool throws CERTIFICATE_VERIFY_FAILED

若如初见. 提交于 2019-12-18 16:59:32
问题 Update (2019-02-07): the issue has now been fixed, so if you're still running into this, try gcloud components update . At some point during the past few monthts, my bq tool stopped working. Even a simple thing shows this error: $ bq show BigQuery error in show operation: Cannot contact server. Please try again. Traceback: Traceback (most recent call last): File "/opt/google-cloud-sdk/platform/bq/bigquery_client.py", line 685, in BuildApiClient response_metadata, discovery_document = http