gcloud

Can't call public method of non-public class: public (Google gcloud library)

让人想犯罪 __ 提交于 2019-12-01 00:03:19
I am attempting to use the gcloud library. (ns firengine.state (:import [com.google.cloud AuthCredentials] [com.google.cloud.datastore DatastoreOptions])) (-> (DatastoreOptions/builder) (.projectId "<project_id>") (.authCredentials (AuthCredentials/createForJson (clojure.java.io/input-stream service-account-path))) .build) The above clojure code is translated from the following code snippet (ellided, click on "Run elsewhere"). import com.google.cloud.AuthCredentials; import com.google.cloud.datastore.DatastoreOptions; DatastoreOptions options = DatastoreOptions.builder() .projectId(PROJECT_ID)

How to setup error reporting in Stackdriver from kubernetes pods?

雨燕双飞 提交于 2019-11-30 23:06:51
问题 I'm a bit confused at how to setup error reporting in kubernetes, so errors are visible in Google Cloud Console / Stackdriver "Error Reporting"? According to documentation https://cloud.google.com/error-reporting/docs/setting-up-on-compute-engine we need to enable fluentd' "forward input plugin" and then send exception data from our apps. I think this approach would have worked if we had setup fluentd ourselves, but it's already pre-installed on every node in a pod that just runs gcr.io

Git push/pull fails on GitLab in Google Compute Engine

不问归期 提交于 2019-11-30 21:56:27
I've installed GitLab on Google Compute Engine using "Click to Deploy" from the project interface. The deployment is successful after a few minutes. I can SSH into the instance, and muck around with it as expected. I can also log in to GitLab using the web interface, and add SSH keys to my profile. So far, so good. However, when I attempt to push or pull to a new example repository, I receive this message: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I've

How to fix “`The --custom_entrypoint flag must be set for custom runtimes`”?

坚强是说给别人听的谎言 提交于 2019-11-30 20:18:22
I get this error on appengine when I run gcloud preview app run app.yaml : The --custom_entrypoint flag must be set for custom runtimes My app.yaml looks like: version: 0-1-1 runtime: custom vm: true api_version: 1 manual_scaling: instances: 1 handlers: - url: .* script: dynamic My dockerfile is just: FROM google/nodejs-runtime I reinstalled gcloud to get the latest version, did something change in the yaml config for managed VMs? This makes it impossible for me to test my app. Jeff Deskins There appears to be a bug or setup issue with Google Cloud SDK version 0.9.67 causing this error. As a

gcloud installation permission issue on Ubuntu 12.04

99封情书 提交于 2019-11-30 18:50:52
I have installed PHP App Engine SDK first. Then, I installed Google Cloud SDK using: sudo curl https://sdk.cloud.google.com | bash but it's showing error while installing. Then, I installed Google Cloud SDK from a zip file, but it shows an error at the final stage of installation: /home/nikhil/google-cloud-sdk/install.sh Welcome to the Google Cloud SDK! Traceback (most recent call last): File "/home/nikhil/google-cloud-sdk/bin/bootstrapping/install.py", line 20, in <module> from googlecloudsdk.gcloud import gcloud File "/home/nikhil/google-cloud-sdk/bin/bootstrapping/../../lib/googlecloudsdk

“bq” command line tool throws CERTIFICATE_VERIFY_FAILED

心已入冬 提交于 2019-11-30 15:03:29
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.request(discovery_url) File "/opt/google-cloud-sdk/platform/bq/third_party/oauth2client_4_0/transport.py",

`docker-credential-gcloud` not in system PATH

ぐ巨炮叔叔 提交于 2019-11-30 10:49:41
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 gcloud, I get the following message: WARNING: `docker-credential-gcloud` not in system PATH. gcloud's Docker credential helper can be configured but it will not work until this is corrected. gcloud credential helpers already registered correctly. Running which docker-credential-gcloud returns docker-credential-gcloud not found . I have no other gcloud-related path issues and for the life of me can't

How do I list the roles associated with a gcp service account?

旧时模样 提交于 2019-11-30 07:54:30
问题 In the google cloud gui console I went to "IAM & admin" > "Service accounts" and created a service account named "my-service-account" with the viewer role. I then ran this command: gcloud iam service-accounts get-iam-policy my-service-account@mydomain.iam.gserviceaccount.com and saw this output: etag: ACAB According to the docs this means this service account has no policy associated with it. So I assigned it a "role" which is not included in its "policy". How do I list the roles associated

Git push/pull fails on GitLab in Google Compute Engine

旧城冷巷雨未停 提交于 2019-11-30 04:55:07
问题 I've installed GitLab on Google Compute Engine using "Click to Deploy" from the project interface. The deployment is successful after a few minutes. I can SSH into the instance, and muck around with it as expected. I can also log in to GitLab using the web interface, and add SSH keys to my profile. So far, so good. However, when I attempt to push or pull to a new example repository, I receive this message: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). fatal: Could not read from

Install Google Cloud components error from gcloud command

瘦欲@ 提交于 2019-11-30 04:43:58
I am trying to install several GCP components from gcloud command line and get the same error always: $ gcloud components list Your current Cloud SDK version is: 146.0.0 The latest available version is: 146.0.0 ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Components │ ├───────────────┬──────────────────────────────────────────────────────┬──────────────────────────┬───────────┤ │ Status │ Name │ ID │ Size │ ├───────────────┼──────────────────────────────────────────────────────┼──────────────────────────┼───────────┤ │ Not