google-compute-engine

Google cloud compute engine freeze

限于喜欢 提交于 2020-01-02 10:29:44
问题 Today I found out that my vm instance in the google cloud had an issue. I could not connect via gcloud compute ssh. The only solution was to shut the vm down and restart it. I guess I found the right log file where the error happened. /var/log/daemon.log Nov 23 17:39:01 globo-de systemd[1]: Started Clean php session files. Nov 23 18:09:01 globo-de systemd[1]: Starting Clean php session files... Nov 23 18:09:03 globo-de systemd[1]: Started Clean php session files. Nov 23 18:39:01 globo-de

Google cloud compute engine freeze

被刻印的时光 ゝ 提交于 2020-01-02 10:29:10
问题 Today I found out that my vm instance in the google cloud had an issue. I could not connect via gcloud compute ssh. The only solution was to shut the vm down and restart it. I guess I found the right log file where the error happened. /var/log/daemon.log Nov 23 17:39:01 globo-de systemd[1]: Started Clean php session files. Nov 23 18:09:01 globo-de systemd[1]: Starting Clean php session files... Nov 23 18:09:03 globo-de systemd[1]: Started Clean php session files. Nov 23 18:39:01 globo-de

SSL on Google Compute Engine with nodejs

[亡魂溺海] 提交于 2020-01-02 05:05:07
问题 Summary: I'm trying to set-up a Node.js server on Google's Compute Engine ( GCE ) to work with HTTPS, but the remote server doesn't seem to respond when accessed through https://... . What I tried so far: I've acquired a certificate from Comodo, put it on the backend, included it in the code, and created an HTTPS server as follows: var app = express(); var https = require('https'); var fs = require('fs'); var options = { key: fs.readFileSync('server.key'), cert: fs.readFileSync('server.crt'),

how to restore vm instance from terminated state ?

不打扰是莪最后的温柔 提交于 2020-01-01 16:37:12
问题 I halted the linux vm instances for couple of days. I dont see any options to turn it back on. I hit reboot and it pops the error here is detailed log "RESOURCE_NOT_READY: The resource 'projects/myproject/zones/us-central1-a/instances/myinstance' is not ready" I still see the disk for instance there and it marks active. Is there any way to reactivate the instance ? thanks 回答1: Instances in a "TERMINATED" state cannot be restarted. If your instance is in this state, the only option is to

Redirecting http to https in Google Cloud

自作多情 提交于 2020-01-01 05:42:08
问题 I have setup a load balancer which accepts https connections from users. The compute engines are then connected to load balancer using http connection. I have written the following .htaccess file in the root folder: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Now, the problem is, the compute engine is always connected via http link (to the load balancer) and not https. Thus, the .htaccess file always consider the connection to be

Do Google Compute instances have a stable public DNS name?

旧巷老猫 提交于 2020-01-01 02:51:08
问题 This is a question in two parts: Do GCE instances have a stable public DNS name? The default DNS name for instance with public IP a.b.c.d seems to be d.c.b.a.bc.googleusercontent.com If yes, what's the best way to obtain this information? Here's the hack I've been using thus far: EXTERNAL_IP=$(curl -s http://bot.whatismyipaddress.com/) EXTERNAL_DNS=$(dig +short -x ${EXTERNAL_IP}) 回答1: reverse lookup is okay to do, for IP address you would probably prefer using gcutil https://developers.google

trouble installing Google Cloud SDK on OSX 10.9.1

泪湿孤枕 提交于 2020-01-01 02:36:09
问题 Bit of a newbie here, im trying to install GC SDK following the guidelines here https://developers.google.com/compute/docs/gcutil/ Do you want to update your system path to include the Google Cloud SDK (Y/n)? y Enter path to a file to append the PATH update to, or leave blank to use /Users/lawrencetaur/.bash_profile: Do you want to enable command-line completion? (Y/n)? y Traceback (most recent call last): File "/Users/lawrencetaur/google-cloud-sdk/bin/bootstrapping/install.py", line 293, in

How do you get or generate a URL to the object in a bucket?

末鹿安然 提交于 2020-01-01 01:57:51
问题 I'm storing objects in buckets on google cloud storage. I would like to provide a http url to the object for download. Is there a standard convention or way to expose files stored in cloud storage as http urls? 回答1: Yes. Assuming that the objects are publicly accessible: http://BUCKET_NAME.storage.googleapis.com/OBJECT_NAME You can also use: http://storage.googleapis.com/BUCKET_NAME/OBJECT_NAME Both HTTP and HTTPS work fine. Note that the object must be readable by anonymous users, or else

How to change Region / Zone in Google Cloud?

99封情书 提交于 2020-01-01 01:53:10
问题 I am very new to Google Cloud. I was able to setup a wordpress site and am working on it now. However, it appears that my vm instance is using the following asia-east1-a for its zone. I was able to change the Region and Zone using gcloud commands with the following output: $ gcloud config list compute/region Your active configuration is: [default] [compute] region = us-east4 $ gcloud config list compute/zone Your active configuration is: [default] [compute] zone = us-east4-b How does one

Communication with Datastore and cloud Storage from google Compute engine in Java

牧云@^-^@ 提交于 2019-12-31 02:14:13
问题 I've GAE application which creates some data in the Google Cloud Datastore and stores some binary files into the Google Cloud Storage - let's call the application WebApp . Now I have a different application running on the Google Cloud Storage Google compute engine. Let's call the application ComputeApp . Now, the ComputeApp should connect to the Datastore, query for entities created by the WebApp and read related binary file from the Google Cloud Storage. Then the CoumputeApp does some