google-compute-engine

cannot add disk to google VM instance

半腔热情 提交于 2019-12-12 16:03:19
问题 I cannot add additional disk to google cloud VM instance. Is there some limit? (quotas are OK) I have 6 disks already added. And there is problem with seventh. I tried multiple instances and multiple disks. There is error I get: Editing VM instance "X" failed. Error: Invalid resource usage: 'This feature is not available for this project.' I tried to look for features in project and found nothing. I do exactly same thing as I did dozen times before, but now it doesn't work. 回答1: OK, so I

Android Studio in Google Cloud VM

拜拜、爱过 提交于 2019-12-12 14:23:59
问题 I have installed Android Studio in Windows 2012 Server machine on Google Cloud. But, I cannot run Emulator on it. It shows the below error. "HAXM doesn't support nested virtual machines" 回答1: Consider that nested virtualisation is not enabled out of the box for Compute Engine instances. Therefore you need to enable it manually, however it is not available yet for Windows instances as you can check in the documentation page: Nested virtualization does not currently support Windows instances.

Docker container for google cloudML on compute engine - authenticating for mounting bucket

爷,独闯天下 提交于 2019-12-12 13:51:22
问题 I have been working with google's machine learning platform, cloudML . Big picture: I'm trying to figure out the cleanest way to get their docker environment up and running on google compute instances, have access to the cloudML API and my storage bucket. Starting locally, I have my service account configured C:\Program Files (x86)\Google\Cloud SDK>gcloud config list Your active configuration is: [service] [compute] region = us-central1 zone = us-central1-a [core] account = 773889352370

What are the relationships between Kubernetes services and clusters and Google Compute Engine objects?

孤人 提交于 2019-12-12 13:41:27
问题 I am setting a couple of services running on Google Container Engine, with traffic coming in through a Google HTTP Load Balancer, using path mapping. There is a good Google tutorial on setting up content-based load-balancing here, but it is all in terms of plain Google Compute objects like instance groups and backend services. I, however, have Kubernetes services, pods and clusters. What is the relationship between the Kubernetes objects and the Google Compute resources? How do I map between

Compute Engine API call fails with http 404

点点圈 提交于 2019-12-12 13:40:27
问题 I need a bit of help with Google Compute Engine API call from within App Engine code. Following is part of code that I use to get a list of compute engine instances (simplified version) try { final AppIdentityService appIdService = AppIdentityServiceFactory .getAppIdentityService(); AppIdentityService.GetAccessTokenResult result = appIdService .getAccessTokenUncached(Collections .singletonList(ComputeScopes.COMPUTE)); String accessToken = result.getAccessToken(); String url = "https://www

How to auth into BigQuery on Google Compute Engine?

六眼飞鱼酱① 提交于 2019-12-12 12:10:12
问题 What's the easiest way to authenticate into Google BigQuery when on a Google Compute Engine instance? 回答1: Make sure that your instance has the scope to access BigQuery first of all - you can decide this only at creation time. in a bash script, get a oauth token by calling : ACCESSTOKEN=`curl -s "http://metadata/computeMetadata/v1/instance/service-accounts/default/token" -H "X-Google-Metadata-Request: True" | jq ".access_token" | sed 's/"//g'` echo "retrieved access token $ACCESSTOKEN" now

Error creating VM instance in Google Compute Engine

拥有回忆 提交于 2019-12-12 12:08:45
问题 I am trying to follow a tutorial that came up on the google cloud platform console for creating a MongoDB application using Compute Engine. I follow the tutorial for creating the VMs but they are not created and return the following error: Invalid value for field 'resource.networkInterfaces[0].network': ''. The referenced network resource cannot be found. Any idea what this could be? I have not created any VMs previously so am unsure what this is. I am not using commandline, I am using the

Google Cloud LB: Change “server error” default html page

安稳与你 提交于 2019-12-12 10:48:16
问题 By default, if the load balance can't find a backend to redirect traffic to, for example if all available backends are down, it shows this html page: Transcript: Error: Server Error The server encountered a temporary error and could not complete your request. Please try again in 30 seconds. I would like to use my own static html page instead. I saw this on the LB + Cloud storage page here: You can also configure a custom index page and a custom error page that will be served if the requested

Connecting Mongoose on Google App Engine

依然范特西╮ 提交于 2019-12-12 10:42:42
问题 I've deployed a custom Node.js app on Google App engine engine successfully. However I'm having issues starting the app because mongoose times out when attempting to connect. Frustratingly, the mongoose connects just fine on my local machine with the exact same parameters. My MongoDb URI is of the form: mongodb://<dbuser>:<dbpassword>@xxxx.mlab.com:<portNumber>/d‌​b-name As the URI implies, the db is hosted by mlab. It is a sandbox instance on Google Cloud Platform. I however did not deploy

nginx error: (13: Permission denied) while connecting to upstream)

≡放荡痞女 提交于 2019-12-12 09:39:10
问题 I am running rails app with puma, capistrano, and nginx on a google compute engine VM with ubuntu 14.04 LTS. I have the nginx running on the external IP. And when I visit it I get two nginx errors in the log: 2016/02/03 11:58:07 [info] 19754#0: *73 client closed connection while waiting for request, client: ###.##.##.###, server: 0.0.0.0:443 2016/02/03 11:58:07 [crit] 19754#0: *74 connect() to unix:///home/my-user-name/apps/my-web-app/shared/tmp/sockets/my-web-app-puma.sock failed (13: