gcloud

gcloud crashed (OSError): [Errno 2] No such file or directory: '/workspace/env/bin/python3.7'

谁说胖子不能爱 提交于 2020-07-23 07:37:11
问题 When trying to deploy my fastapi python service (on App Engine), I'm running into the following error in the deploy step: ERROR: gcloud crashed (OSError): [Errno 2] No such file or directory: '/workspace/env/bin/python3.7' I'm starting the deploy/build from my local machine with the following command: gcloud builds submit --config config/cloudbuild/deploy.yaml --project $_PROJECT . Am I doing something wrong, or could it be something wrong with the gcloud builder? I've tried with both google

GCloud Upload httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header

爷,独闯天下 提交于 2020-07-20 07:35:09
问题 I am attempting to upload a small file to gcloud using a simple python program client = storage.Client(project=GCLOUD_PROJECT) bucket = client.get_bucket(GCLOUD_BUCKET) blob = bucket.blob(GCLOUD_FILE_ON_CLOUD) blob.upload_from_filename(GCLOUD_FILE_LOCAL) It had been working until recently and something changed. Now, whenever I upload a file greater than 5MB I get the below error. Files less than or equal to 5MB goes through. The size isn't large enough to implement resumable upload, is it?

GCloud Upload httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header

元气小坏坏 提交于 2020-07-20 07:35:08
问题 I am attempting to upload a small file to gcloud using a simple python program client = storage.Client(project=GCLOUD_PROJECT) bucket = client.get_bucket(GCLOUD_BUCKET) blob = bucket.blob(GCLOUD_FILE_ON_CLOUD) blob.upload_from_filename(GCLOUD_FILE_LOCAL) It had been working until recently and something changed. Now, whenever I upload a file greater than 5MB I get the below error. Files less than or equal to 5MB goes through. The size isn't large enough to implement resumable upload, is it?

gcloud app deploy - updating service default fails with code 13 Quota for instances limit exceeded, and 401 unathorizeed

◇◆丶佛笑我妖孽 提交于 2020-07-09 11:54:06
问题 Created a new project, on first deploy I get this: Updating service [default] (this may take several minutes)...failed. ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/primalexchange/regions/us-east1/operations/b5a5813a-14bf-43b6-af7f-e17b15866c4f error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/insert_flex_deployment/flex_create_resources>2020-05-16T23:23:08.373Z4721.jc.14: Deployment Manager operation primalexchange/operation

gcloud crashed (SSLHandshakeError) in gcloud app deploy

筅森魡賤 提交于 2020-07-08 05:39:28
问题 Unable to deploy my app as I started getting below error since today morning. I have tried gcloud info --run-diagnostics and gcloud components reinstall without much help. I tried to deploy it using the old Google App Engine Launcher for Windows but faced the same error. Earlier it worked till yesterday night (IST) using gcloud. Please help! I am on latest gcloud sdk and have updated all its components. I use Win10. I tried rebooting my laptop as well. C:\gaurav\coding\python\myapp\myapp\dist

google cloud authentication with bearer token via nodejs

我怕爱的太早我们不能终老 提交于 2020-06-29 04:05:23
问题 My client has a GraphQL API running on Google cloud run. I have recieved a service account for authentication as well as access to the gcloud command line tool. When using gcloud command line like so: gcloud auth print-identity-token I can generate a token that can be used to make post requests to the api. This works and I can make successful post requests to the api from postman, insomnia and from my nodejs app. However, when I use JWT authentication with "googleapis" or "google-auth" npm

Login to firebase using gcloud service account

谁都会走 提交于 2020-06-27 18:49:57
问题 I have functions deployed to gcloud functions and i want to configure CI/CD for deploying this functions from gitlab. To do any operations from gitlab i need to get firebase auth token with firebase login:ci command. The problem is that i need to get this token using gcloud service account, which is not displayed in browser, when i run firebase login:ci I have this service account data ( project_id , private_key , private_key_id , etc.) How should i authorize using this acc? 回答1: If you set

google compute engine tool gcloud is exceptionally slow

寵の児 提交于 2020-06-10 08:05:29
问题 I tried downloading and using the gcloud bash tool to manage my accounts, however everything I do with the tool is exceptionally slow. It will take MINUTES to reply to a command that is typed. Is there perhaps a firewall I need to open up on my router or something else to get this to work fast like it's supposed to? For example, the "Installing..." lines in this video https://youtu.be/4y4-xn4Vi04?t=1m21s -- you'll notice they are all complete in the tutorial within a few seconds. This takes

google compute engine tool gcloud is exceptionally slow

北城以北 提交于 2020-06-10 08:05:19
问题 I tried downloading and using the gcloud bash tool to manage my accounts, however everything I do with the tool is exceptionally slow. It will take MINUTES to reply to a command that is typed. Is there perhaps a firewall I need to open up on my router or something else to get this to work fast like it's supposed to? For example, the "Installing..." lines in this video https://youtu.be/4y4-xn4Vi04?t=1m21s -- you'll notice they are all complete in the tutorial within a few seconds. This takes

Getting error while generating crypto keys using GCloud KMS to access private repo as dependency

不羁的心 提交于 2020-05-29 05:02:58
问题 I'm trying to add encrypted ssh keys to google KMS using this documentation for accessing private repository as a dependency on Google App Engine (Node.JS project). I have successfully generated Cloud KMS KeyRing and CryptoKey but I'm facing an error while encrypting the key. (gcloud.kms.encrypt) PERMISSION_DENIED: Permission 'cloudkms.cryptoKeyVersions.useToEncrypt' denied for resource 'projects/test/locations/global/keyRings/my-keyring/cryptoKeys/key'. Need some help to setup this so can I