gcloud

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

Dart Error: error: import of dart:mirrors is not supported in the current Dart runtime

。_饼干妹妹 提交于 2019-12-23 04:34:20
问题 I'm currently trying to make some mobile code with Flutter. I'm trying to publish/subscribe data to GCP Cloud Pub/Sub using gcloud library dart. Here is the code for the main.dart: import 'dart:io'; import 'package:googleapis_auth/auth_io.dart' as auth; import 'package:http/http.dart' as http; import 'package:gcloud/db.dart'; import 'package:gcloud/storage.dart'; import 'package:gcloud/pubsub.dart'; import 'package:gcloud/service_scope.dart' as ss; import 'package:gcloud/src/datastore_impl

Uploading/Pushing data to Google Cloud Volume

二次信任 提交于 2019-12-23 01:37:18
问题 I have a docker image on Google Container engine with volumes attached to it. Is there a way to get files from my local filesytem to the attached volumes? 回答1: I took the following steps to achieve the above: Create the directory where the volume should be mounted in the instance. Format the volume and mount it on the directory created above. Give the directory write permissions(chmod a+w ) Create the fstab entriy for mounting the volume. You can then use gcloud compute copy-files to copy

Subscriber.stopAsync() results in RejectedExecutionException

醉酒当歌 提交于 2019-12-23 00:48:51
问题 My code is basically following the official tutorials and the main purpose is to collect all messages from one subscription (Constants.UNFINISHEDSUBID) and republish them on another. But currently I'm facing a problem, that i can't solve. In my implementation calling subscriber.stopAsync() results in the following exception: Mai 04, 2017 4:59:25 PM com.google.common.util.concurrent.AbstractFuture executeListener SCHWERWIEGEND: RuntimeException while executing runnable com.google.common.util

Appengine deployments are extraodinarily slow today?

柔情痞子 提交于 2019-12-22 18:34:20
问题 We have a small java project need to deploy it include 9000+ files command : mvn gcloud:deploy but I get the Log: ... [INFO] INFO: Uploading [/home/steven/work/idigisign/target/appengine-staging/__static__/node_modules/rx/src/core/linq/observable/when.js] to [7dfb30ad32893c5042dba03601f006a40419fab0] [INFO] DEBUG: Uploading [/home/steven/work/idigisign/target/appengine-staging/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js] to [7e0725897d7b99c3c33b56915d202e2dde552ea9]

Change storage class of (existing) objects in Google Cloud Storage

谁说胖子不能爱 提交于 2019-12-22 10:53:39
问题 Good day! I recently learnt of the new storage tiers and reduced prices announced on the Google Cloud Storage platform/service. So I wanted to change the default storage class for one of my buckets from Durable Reduced Availability to Coldline, as that is what is appropriate for the files that I'm archiving in that bucket. I got this note though: Changing the default storage class only affects objects you add to this bucket going forward. It does not change the storage class of objects that

gcloud ssh — No supported authentication methods available (server sent: publickey)

删除回忆录丶 提交于 2019-12-22 10:27:10
问题 I am trying to follow a simple process of ssh'ing to the instance that is described here. Unfortunately I keep getting this error: Server refused our key FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey) It looks like I do everything correctly. I create an new ubuntu instanse Try to log in using $ gcloud compute username@ssh example-instance --zone us-central1-a Getting a warning that ssh key is going to be generated WARNING: You do not have an

How to install new software onto a GCP flexible environment VM

青春壹個敷衍的年華 提交于 2019-12-22 09:55:17
问题 I have a ruby on rails app running on a Google Cloud Platform VM running on the app engine flexible environment. It looks like it installs most of the software on the VM when I deploy the app with gcloud --project project-name preview app deploy I think it installs rails and other software from reading the temporary dockerfile it creates. It grabs the info for the dockerfile from the app.yaml file (I got this setup from following their tutorials). This was working fine for me but now I need

Enable storage permission on Google Cloud VM instance

自古美人都是妖i 提交于 2019-12-22 09:43:40
问题 I have a Google Cloud VM instance, but I overlooked setting the Storage permission to read-write when creating it. Now further down the line, I'm looking to experiment with cloud storage, but my instance is read-only. How can this be changed? I understand it may be possible by relaxing the storage buckets policy, but I'd prefer my instance had write access to all future project buckets. I presume there is an option in gcloud to change the devstorage parameter? 回答1: You can update the