google-managed-vm

WebSocket WS SSL

家住魔仙堡 提交于 2020-07-19 05:05:39
问题 I'm using Google App Engine/Managed VMs to develop a nodeJS application using web sockets. As part of the app, the front end needs to connect using Websockets e.g. connection = new WebSocket('wss://127.0.0.1:3001'); The bit that I'm struggling with is how to ensure that the SSL part works. My current code to start the WebSocketServer is: var WebSocketServer = require('ws').Server; var wss = new WebSocketServer({port:3001}); but this only creates a standard server (ie ws://127.0.0.1:3001). My

Insufficient Permission with Appengine Flex service account to access Drive folder

筅森魡賤 提交于 2020-01-06 20:13:59
问题 I have written an application that uses all the clients/sdks as officially documented. credentials = GoogleCredentials \ .get_application_default() \ .create_scoped('https://www.googleapis.com/auth/drive') drive = discovery.build( 'drive', 'v3', http=self.credentials.authorize(Http()) ) drive.files() \ .get(fileId=file_id) \ .execute() It works perfect in local with a Service Account generated from the panel, but when I deploy the application, the service account within AppEngine flexible

Google Managed VM error - custom entry point

人盡茶涼 提交于 2019-12-24 15:23:53
问题 I'm running a custom managed VM with PHP, HHVM, nginx, Centos. I'm having issues running it locally and keep getting the ValueError: The --custom_entrypoint flag must be set for custom runtimes issue. This happens if I use 'dev_appserver.py app.yaml' or 'gcloud preview app run app.yaml' gcloud -v produces the following: $: gcloud -v Google Cloud SDK 0.9.82 I have also tried fixing the SDK version as per: Running node.js on google cloud, but error running with docker This results in: Please

Deployed Managed VMs version has a size of 0 bytes

半世苍凉 提交于 2019-12-24 05:50:03
问题 Yesterday, I updated my gcloud components (via gcloud components update), and today I deployed a new Managed VMs version which is taking up 0 Bytes, according to the Versions page on the console. Does anyone know if this is a known issue introduced by the latest gcloud sdk update? 来源: https://stackoverflow.com/questions/30650863/deployed-managed-vms-version-has-a-size-of-0-bytes

Cron urls get a 403 status on Flexible Environment

旧街凉风 提交于 2019-12-23 08:47:55
问题 We are experimenting with Flexible Environment and we want to migrate an existing application. Everything seems to go well except from cron entries. We have a bunch of cron and every url is secured as admin" (as stated in the documentation), but every time the url is hit by the cron service we get a 403 status, if the url is hit by the user via browser everything works well. On standard environment everything is good. Is there anything we can check about? 回答1: I assume you add login: admin in

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

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]

Cannot run Google App Engine custom managed VM: --custom-entrypoint must be set error

冷暖自知 提交于 2019-12-18 11:44:24
问题 PROBLEM DESCRIPTION I am trying to create a custom managed VM for Google App Engine that behaves identically to the standard python27 managed VM provided by Google. (I'm doing this as a first step to adding a C++ library to the runtime). From google documentation, the following Dockerfile specifies the standard python27 runtime: FROM gcr.io/google_appengine/python-compat ADD . /app I have verified that this is the right Dockerfile by examining the one generated by gcloud preview app run when

Google App Engine/Managed VM Cloud Endpoints

送分小仙女□ 提交于 2019-12-13 08:42:20
问题 We're currently running on App Engine (Java) and want to test the new managed VMs that Google are beta testing. Everything builds, but I can't get any of the endpoints to work. When I build, the error that comes back is: SEVERE: Endpoints configuration not updated. The app returned an error when the Google Cloud Endpoints server attempted to communicate with it. In the admin logs I can see that it has attempted, but the error comes back: API configuration update failed The discovery docs get