FAQ Database Discussion Community


Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?

docker,google-compute-engine,kubernetes,aerospike
I would like to run Aerospike cluster on Docker containers managed by Kubernetes on CoreOS on Google Compute Engine (GCE). But since GCE does not permit multicast, I have to use Mesh heartbeat as described here, which has to be set up by specifying all node's IP addresses and ports;...

Laravel: Google Cloud Storage and Google Compute Engine

laravel,google-cloud-storage,google-compute-engine
I need to store user data to my google cloud storage bucket. I'm running laravel on google compute engine. Could someone assist with this? I've found only tutorials for google app engine so far....

rsync ssh file copying to GCE instance fails with permission denied

ssh,rsync,google-compute-engine
I'm executing the following on my local machine which is authenticated with my project in Google Compute Engine via the Google Cloud SDK: rsync -avu --omit-dir-times -e ssh \ -o UserKnownHostsFile=/dev/null \ -o CheckHostIP=no -o StrictHostKeyChecking=no \ -i /home/fredrik/.ssh/google_compute_engine \ /somefolder/hello.txt \ 1.2.3.4:/mymount/ ...where 1.2.3.4 is the public IP of...

Google cloud tutorial for wordpress

google-compute-engine,gcloud
I just signed up for google cloud. I have installed ubuntu server with PHP, MySql and with Google Cloud SQL status set to on. Any Idea how I might get about install wordpress? p.s I have looked up series of tutorials but some of them appear to have broken links...

What is the best way to detect whether a java API call successfully completed or not

java,google-compute-engine
I'm using following code to add a target pool to Google compute engine in java using Google Compute Engine Java API. Operation operation = compute.targetPools().insert(PROJECT_ID, REGION_NAME, targetPool).execute(); I need to make sure that target pool is successfully added or not before execute the next line. What is the best way...

Jclouds can't create instance

java,google-compute-engine,jclouds
I'm experiencing strange behavior during instance creation on Google Compute Engine. When I try to create and start ubuntu-1410-utopic instance all is working as expected but if I try to create instance ubuntu-1404-trusty I get exception: java.util.concurrent.ExecutionException: org.jclouds.http.HttpResponseException: command: POST https://www.googleapis.com/compute/v1/projects/myProjectName/zones/asia-east1-a/instances HTTP/1.1 failed with response: HTTP/1.1 400 BadRequest; content: [{...

Create Disk Snapshot from stopped VM

google-compute-engine
I have my VMs running on GCE. I want to create snapshots of few attached disks. To make the process safer I first stop the VM then issue the Create Snapshot command. The problem is that the Create Snapshot operation just continue indefinitely. It never stops. Do I have to...

Sharing vm machine between applications

google-app-engine,jenkins,google-compute-engine
I have production GAE application - myapp. I've created also second app - myapp-staging to have separate, staging environment. In myapp I've created Jenkins machine to get Build pipeline. It's easy to run test and deploy jobs on the same app. But there is a problem with deploy version from...

How do I add a startup script to an existing VM from the developer console?

google-compute-engine,google-cloud-platform
I have an existing, already configured VM on Google Cloud Platform. It was created without a startup script, but I'd like to add one now. How do I add it from the console.developers.google.com web interface? ...

Apache Spark does not see all the ram of my machines

apache-spark,google-compute-engine,mllib
I have created a Spark cluster of 8 machines. Each machine have 104 GB of RAM and 16 virtual cores. I seems that Spark only sees 42 GB of RAM per machine which is not correct. Do you know why Spark does not see all the RAM of the machines?...

adaptive load balancing with gnu parallel

google-compute-engine,gnu-parallel
Is there some way to run gnu parallel with a dynamically changing list of remote hosts? The dynamism isn't intermittent or irregular -- I'm looking for a way to use the Google compute engine autoscaling feature to smoothly scale up to a max number of hosts and have gnu parallel...

gcloud connect to docker Daemon fail

google-app-engine,docker,google-compute-engine,boot2docker,managed-vm
I'm trying to test the new managed VM feature, following this tutorial (using OS X) The boot2docker installation it's okay. Executing $(boot2docker shellinit) give the following output: Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/ca.pem Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/cert.pem Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/key.pem export DOCKER_HOST=tcp://192.168.59.103:2376 export DOCKER_CERT_PATH=/Users/guilhermetorres/.boot2docker/certs/boot2docker-vm export...

gcloud preview app run: “OSError: [Errno 2] No such file or directory”

java,google-app-engine,google-compute-engine,gcloud
When running gcloud preview app run from Google Compute Engine, running Ubuntu Trust 14.04 image, I get the following error: (Note: I fetched the complete gcloud SDK from https://cloud.google.com/sdk/) $ gcloud preview app run appengine-modules-guestbook/src/main/webapp Java module found in [/home/yaraju_gmail_com/appengine-modules-sample-java/appengine-modules-guestbook/src/main/webapp] INFO: Skipping SDK update check. INFO: Starting API server at:...

Linking Google Compute Engine and Google Cloud SQL

google-compute-engine
**Frustrated by the lack of clear documentation for Google cloud compute engine (GCE) and integration with Google cloud SQL and especially linking the two. No live support, and current documentation lacks clarity by continuing to refer to Google App Engine. The documentation on Google App Engine references linking but no...

How to permanently delete Google managed VMs

google-app-engine,google-compute-engine,managed-vm
I am unable to permanently delete Google App Engine managed VMs I've created. I've deleted them multiple times both from the developer's console and by using the gcloud command. In every case the command completes successfully and the VM is deleted, but then almost immediately Google creates a brand new...

Multiple instances in google compute

google-compute-engine
Using instance groups, can one combine multiple-processors and then assign a that is distributed computing across them. How can one assign a computing job to instance group? How would this be different from one instance with multi processors?...

Google Compute Engine Linux Password (for xrdp)

google-compute-engine
How I can find the password for my Linux VM Is there no option but to create a new user ? I'm dropping VNC because it's slow

VirtualBox and google cloud engine

virtualbox,google-compute-engine
Can I run Virtualbox and an active VM on a server hosted in google cloud engine? If yes, what are the steps? Just install it and build the VM through VNC? So far I have found similar solution for DigitalOcean where you simply install Virtualbox, xfce, VNC, etc. and it...

Error to create a disk in google compute (The resource '… diskTypes/{pd-ssd}' was not found

google-cloud-storage,google-compute-engine
I try to create a disk in Google Compute. This is the process and error: gcloud compute disks create test --type={pd-ssd} For the following disks: - [test] choose a zone: [1] asia-east1-a [2] asia-east1-c [3] asia-east1-b [4] europe-west1-c [5] europe-west1-b [6] europe-west1-d [7] us-central1-a [8] us-central1-b [9] us-central1-c [10] us-central1-f...

Google Cloud - Moving MySQL DB Location to Attached Disk

mysql,google-compute-engine
I have a Google Cloud vm instance running and I set it up with an additional attached disk. I then installed mysql successfully but I can't seem to figure out how to move the MySQL db store location to the attached disk. Does anyone know how to do this? It...

How does one use “gcloud compute operations list” with a filter by instance name?

google-compute-engine
The root problem is that I have a project that has many tens of thousands of operations, such that it's very difficult to track down operations associated with specific instances being created or deleted. So, I'm looking for a way to list operations by target. The deprecated gcutil docs talk...

Google compute engine boot fails after hw upgrade to hashwell

centos,google-compute-engine
I have a f1-micro instance running on google compute engine running centos. Some time ago i got a mail stating that the zone i am using (us-central1-b) is going through a hardware upgrade to new hashwell servers, and all instances need to be restarted. So, i did restart. I shut...

GCE hostname with hyphen in Ansible

google-compute-engine,ansible
I am going to make use of Ansible to provision my system in Google Compute Engine and the system has some manual created instances. One of the instances is named as testing-module. Therefore I put this line in my playbook as a task something: {{ testing-module.private_ip }} Ansible results me...

How to add external NTFS drive to Google Cloud Engine app?

google-compute-engine,google-cloud-platform
Since using docker takes up a lot of space for images, I would like to attach an external hard drive to my 10GB instance Ubuntu VM. However, I've added a blank disk and attached it, but I end up with this message when I type "fdisk -l": Disk /dev/sdb doesn't...

GCE: How do you create a forwarding rule from port 80 external to port 5555 internal

google-compute-engine
Im using google compute engine for the first time. I would like to set up a network loadbalancer (with static ip) that listens on port 80, but forwards to a backend server listening on port 5555. All the examples I've found show forwarding 80 to 80, which isn't helpful in...

Issue with Wordpress Folders on Google Compute Engine

wordpress,file-permissions,google-compute-engine
I'm migrating a WordPress site to Google Cloud using Click To Deploy. All as gone well so far except a folder permissions problem when migrated the current sites wp-content folder. Steps I took to make this work... I set up a new WordPress install by using Click To Deploy and...

Hive on Google Cloud wants permissions on /tmp, but no way to change permissions

hadoop,hive,google-compute-engine,chmod,google-cloud-platform
I'm trying to run Hive on a Google Cloud, where Hadoop was installed by click-to-deploy. Hive seems to instal just fine, but when I run hive I get the following erroneous output: Logging initialized using configuration in jar:file:/home/michael_w_sherman_gmail_com/apache-hive-0.14.0-bin/l ib/hive-common-0.14.0.jar!/hive-log4j.properties SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in...

google compute engine tool gcloud is exceptionally slow

google-compute-engine,google-cloud-platform,att,gcloud
I tried downloading and using the gcloud bash tool to manage my accounts, however everything I do with the tool is exceptionally slow. It will take MINUTES to reply to a command that is typed. Is there perhaps a firewall I need to open up on my router or something...

Cannot set maintenance policy on a instance template from the command line

google-compute-engine
I have tried to set in a new instances template the maintenance policy to "MIGRATE" and the automatic restart to "On" (as the Web Console does); but it ignores the flags. This is the command I am using: gcloud compute instance-templates create \ $TEMPLATE_NAME \ --boot-disk-size 50GB \ --image coreos-beta-681-0-0-v20150527...

Google Cloud Engine : LibSnappy not installed errur during command-line installation of Hadoop

hadoop,google-compute-engine,google-hadoop
I'm trying to install a custom Hadoop implementation (>2.0) on Google Compute Engine using the command line option. The modified parameters of my bdutil_env.sh file are as follows: GCE_IMAGE='ubuntu-14-04' GCE_MACHINE_TYPE='n1-standard-1' GCE_ZONE='us-central1-a' DEFAULT_FS='hdfs' HADOOP_TARBALL_URI='gs://<mybucket>/<my_hadoop_tar.gz>' The ./bdutil deploy fails with a exit code 1. I find the following errors in the resultant...

Not able to telnet smtp server from google cloud vm

linux,smtp,google-compute-engine,mailgun
We have a account on mailGun. we can ping and telnet to smtp.mailgun.org port 25 from our local system. But when we use google cloud vm then ping smtp.mailgun.org is successfull, But telnet smtp.mailgun.org 25 stucks at trying... current firewall rules has 0.0.0.0/0 tcp:1-60000 entry in it. Iptables are off....

Communication between 2 different networks in Google Cloud with private IP

google-compute-engine
I have 2 instances: instance1 in network1 and instance2 in network2. I configured the tcp port 22 for instance1 with source as 0.0.0.0/0 and tcp port 1306 for instance2 with source as private IP of instance1. I logged into the instance1 and tried to telnet the port 1306 of instance2...

kubectl is not installed on GCE by default

google-compute-engine,google-container-engine
Following the guide I'm trying to manage Google Container Engine cluster from another machine on Google Compute Engine. Here is the output from my GCE instance: [email protected]:~$ sudo gcloud components update preview All components are up to date. [email protected]:~$ sudo gcloud components update alpha All components are up to date....

Using Click to Deploy and install Jenkins in GCE

jenkins,google-compute-engine,bitnami
Using 'Click to Deploy', I already deployed LAMP stack. Now i want to use 'Click to deploy'and then deploy Jenkins in the same GCE instance(dont want another fresh GCE instance) Is there an option to use 'Click to deploy' for multiple tools or only once per GCE instance? What...

Auto boot up Compute engine

google-app-engine,google-compute-engine,google-cloud-platform
I want a compute engine to boot up at a particular time everyday, perform a task and then self shut down. I also have a Google App Engine continuously running, if that can be of any help!...

MEAN failed to deploy

google-compute-engine,mean
I tried to deploy MEAN on the Google Developers Console and it keeps on failing. I tried change the zone and still doesn't work. Creating deployment Jan 25, 2015, 10:16:40 PM meanStackBox: PENDING Jan 25, 2015, 10:16:51 PM ... Jan 25, 2015, 10:21:04 PM meanStackBox: DEPLOYING Jan 25, 2015, 10:21:15...

docker run cannot find name flag argument

ssh,docker,google-compute-engine,google-container-engine
I have recently setup a Rstudio application on Google compute container engine using Docker and the Rocker/rstudio package. Now I want to start my saved container with a name using the following ssh command line: sudo docker -d -p 8787:8787 --name samplename user/laatste which returns the following error flag provided...

Is there a way to discover what image was used to create a VM instance

google-compute-engine
I'm experimenting with my 60 day trial by setting up a chain of VMs with different specs to allow me to upgrade a Vtiger installation from its very old code to current spec. As I've been create and delete happy I can't recall which image I used for a particular...

BigQuery bq command with asterisk (*) doesn't work in Compute Engine

google-bigquery,google-compute-engine,google-cloud-platform
I have a directory with a file named file1.txt And I run the command: bq query "SELECT * FROM [publicdata:samples.shakespeare] LIMIT 5" In my local machine it works fine but in Compute Engine I receive this error: Waiting on bqjob_r2aaecf624e10b8c5_0000014d0537316e_1 ... (0s) Current status: DONE BigQuery error in query operation:...

Set hostname for GCE instance - instead of IP address

networking,debian,godaddy,google-compute-engine,google-cloud-dns
I have a new GCE instance(Debian Wheezy), using Google based apps domain like: www.example.com I want to set a hostname for this server I have deployed a PHP webapp(Current URL: {IP}/appname) But, I want to use the hostname instead of IP and call the app URL. Eg. http://{servername}/appname I...

Starting and stopping instances on google compute engine

google-compute-engine,google-cloud-platform,jclouds
I want to start/resume and stop/suspend instances on google compute engine, but it gives "java.lang.UnsupportedOperationException".Is there any alternative way to perform these operations? public class Example { public static void main(String[] args) { String provider = "google-compute-engine"; String identity = "****@developer.gserviceaccount.com"; String credential = "path to private key"; String groupName...

Check in bash if I am in a Google Compute Engine instance

linux,bash,google-compute-engine
I would like to check in a bash script whether I am in a Google Compute Engine instance or in my Linux laptop. How can I differentiate them?

Is there a service for direct connectivity to Google Cloud?

google-compute-engine,google-cloud-platform
Is there a service available on Google Cloud for the direct connectivity between on-premise and the Google Cloud networks?

Google push-to-deploy release pipeline disabled?

python,google-app-engine,jenkins,google-compute-engine,google-app-engine-python
I do have got a small Python application running on Google App Engine. For a while I did use Google's push-to-deploy feature, which automatically deployed the app once I pushed a new version of the master branch to my bitbucket git-repository. I recently renamed my repository and noticed that the...

Google Compute Engine Image to create a VM in a On Prem environment

google-compute-engine
We are in a situation in which we need replicate the Google CE environment we have set up to be replicated in a an OnPrem VM. Can we download and use a Google Compute Engine image to create a VM in a On Prem environment? If yes, could you please...

How to attach a service acount to an existing GCE VM?

google-compute-engine,google-cloud-dataflow
Need to submit dataflow job from an existing GCE VM in google cloud, learned that there has to be one service account with proper scope to be attached to that VM when the VM is created, what if VM already existed? how to attach a service account to an existing...

Google Compute Engine Free Trial Account and Enable Billing

google-compute-engine
As I knew, The trial is free and you will not be billed. When your trial ends, your account will be paused and you'll have the option to upgrade to a paid account. But I have enabled billing in order to use Compute Engine's VM instance in my free trial...

HealthCheck not working properly

google-compute-engine,google-cloud-platform
The HealthChecks in the Google Console are not working properly. Initially it worked properly. But now it is not working and always the instances in the backend service are shown unhealthy. Same instance if I hit the same health check manually working fine. Could someone please help me out on...

Netlogo headless on HPC machine error

google-compute-engine,netlogo
My runninfg netlogo headless on google compute, can someone please help me with this error: [email protected]:~$ /home/abhigenie92_gmail_com/netlogo-5.1.0/netlogo-headless.sh \ > --model /home/abhigenie92_gmail_com/copy.nlogo \ > --experiment k-e\ > --table /home/abhigenie92_gmail_com/MyNewOutputData.csv \ > --threads 2 unknown argument: /home/abhigenie92_gmail_com/MyNewOutputData.csv ...

How can I automatically kill idle GCE instances based on CPU usage?

google-compute-engine
I'm running some slightly unreliable software on some instances in an instance group. The software is installed and run by a startup script, and most of the time it works without issue, but about ~10% of the new instances run out of memory and crash due to some sort of...

Cron job on google cloud managed virtual machine

python,google-app-engine,cron,virtual-machine,google-compute-engine
I have a python script that queries some data from several web APIs and after some processing writes it to MySQL. This process must be repeated every 10 seconds. The data needs to be available to Google Compute instances that read MySQL and perform CPU-intensive work. For this workflow I...

HTTPS for GitLab on Google Compute Engine

gitlab,google-compute-engine
I'm trialling GitLab on GCE to see if it'll be more manageable instead of my own hosting elsewhere. One requirement is for all traffic to be secure i.e. over SSH (for git operations) or https for web browsing (i.e. gitlab usage through the browser). I cannot seem to see where...

How do I run a google appengine docker image on a compute engine instance?

python,google-app-engine,google-compute-engine
I have the following docker file: FROM gcr.io/google_appengine/python-compat MAINTAINER [email protected] RUN apt-get update RUN apt-get -y upgrade ADD ./app/ /app ADD app.yaml /app/ RUN mkdir -p /var/log/app_engine I create the log directory because otherwise I get the following error sudo docker run gcr.io/MY-PROJECT/ae-image Traceback (most recent call last): File "/home/vmagent/python_vm_runtime/vmboot.py",...

Creating a large click-to-deploy cassandra cluster

google-compute-engine
I have worked through a number of quota issues in trying to stand up a 30 node click-to-deploy cassandra cluster. The next issue is that the data disks are not becoming available within the 300 seconds allotted in wait-for-disk.sh. I've tried several times in us-central1-b, once in us-central1-a and the...

How does gsutil rsync determine whether a file is old or new when syncing two folders?

google-compute-engine
I'm rsyncing files to a DRA bucket, and I need to make sure that when a file is newer in the source folder it must be synced to the destination folder. Right now I am using MD5 checksum to be 100% sure, but this is too slow on a data...

Relationship between HTTPS Healthchecks and an HTTPS connection to a GCE Instance

load-balancing,google-compute-engine
I'm setting up HTTPS Load Balancing (LB) on Google Compute Engine (GCE). Key components are outlined in the Overview Diagram. After successfully creating a HTTP Backend Service where 1 of 1 (GCE) instance is healthy, I decided to do the same for HTTPS. I'm using the Developer Console UI to...

Container Engine: AttributeError: 'module' object has no attribute 'Credentials'

google-compute-engine,gcloud,google-container-engine
I'm following the "hello wordpress" example: https://cloud.google.com/container-engine/docs/tutorials/hello-wordpress, but it stops with: [email protected]:~$ gcloud alpha container kubectl create -f wordpress.json Traceback (most recent call last): File "/usr/local/bin/../share/google/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 209, in <module> main() File "/usr/local/bin/../share/google/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 205, in main _cli.Execute() File...

GCE: How to setup a private cloud (Firewall rules) with DynDns (No-Ip)?

google-compute-engine
I'm new to Google Compute Engine. I setup a VM to handle a private cloud: Only few IP address should have access to the server. According to the documentation to setup a private cloud I have to set firewall rules to restrict access to given IP Address. In the real...

How do I deploy to Google Compute Engine using the Ruby stack?

ruby-on-rails,ruby,google-compute-engine
I'm totally lost trying to deploy a demo Rails app to my-app-name.appspot.com. I set up a project in the Developers Console and deployed the Ruby stack on my VM. I would have thought I just need to configure the web server's default site such that the DocumentRoot is the public...

How to fix local IP in Nat Configuration on WHM/Cpanel on Centos 6 on Google Compute Engine

centos,cpanel,google-compute-engine,centos6
If you deleted a VM on Google Compute Engine on a Centos 6 Cpanel server and then create it with the same disk, you often are assigned a new local IP address even if you kept the static IP. This does not properly update in the NAT configuration on Cpanel/WHM...

Vulnerability Scan Authorization for Google Compute

google-compute-engine
What is the official and required process to perform our own independent vulnerability scans against virtual machines in the Google Compute Engine? These will be Penetration tests (our own) that will scan the public IP for open ports and report results back to us. Microsoft Azure requires authorization and so...

When should you create more than one docker container image instance with Kubernetes Replication Controller?

docker,google-compute-engine,kubernetes
When using Kubernetes to manage your docker containers, particularly when using the replication controller, when should you increase an images running container instances to more than 1? I understand that Kubernetes can spawn as many container replicas as needed in the replication controller configuration file, but why spawn multiple running...

Error installing php5-mcrypt

php,ubuntu,server,google-compute-engine,mcrypt
Just today I signed up with Google Cloud Compute Engine. I did everything but then I stuck into an error while installing php5-mcrypt extension. Error: [email protected]:~# sudo apt-get install php5-mcrypt Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean...

what are the differences between Google compute engine and Google container engine?

google-compute-engine,google-container-engine
I was wondering what are the differences between Container Engine & Compute Engine? If I have a Jax~rs application on host which done by Groovy and Jetty, and planning to to migrate to Google cloud platform ,shoud I start for Google container or google compute?...

Simply uploading a file to google compute

google-compute-engine
I want to upload a file to the disk attached to my google compute vm from my local machine. [email protected]:~$ pwd /home/abhigenie92_gmail_com [email protected]:~$ gcloud compute copy-files C:\Users\sony\Desktop\Feb\Model\MixedCrowds28 Runge kutta 2nd order try.nl ogo: ./ [email protected]:~$ gcloud compute copy-files C:\Users\sony\Desktop\Feb\Model\MixedCrowds28 Runge kutta 2nd order try.nl ogo: /home/abhigenie92_gmail_com ERROR: (gcloud.compute.copy-files) All sources...

What is the difference between an Instance and an Instance group

google-compute-engine,google-cloud-platform
I was wondering what the difference between an instance and an instance group are. Can anyone explain the difference to me? Why can we use Autoscaler with an instance group and not with a instance...

hadoop -appendToFile on Google Compute Engine cluster

hadoop,google-compute-engine,google-cloud-platform
I am having trouble performing the hadoop fs shell command, -appendToFile, on a GCE hadoop cluster. I have had success with other hadoop shell commands (e.g., -cat, -put, -mv) on the GCE cluster. In addition, I am able to use -appendToFile on a different hadoop cluster. However, I am unable...

Permissions error while setting up kubernetes pod

debian,google-compute-engine,kubernetes
I am a newbie to kubernetes and docker and I am following the tutorial at https://cloud.google.com/container-engine/docs/tutorials/hello-wordpress which teaches how to setup a pod running wordpress. I have setup a GCE instance and have logged into my debian instance and installed docker and kubernetes. But when I specify a file to...

Where is the source of datastore-connector-latest.jar? Could I add this as a maven dependency?

google-app-engine,maven,hadoop,google-compute-engine,google-hadoop
I got connectors from https://cloud.google.com/hadoop/datastore-connector But I'm trying to add the datastore-connector (and bigquery-connector too) as a dependency in the pom... I don't know if it this is possible. I could not find the right artifact and groupId. Is there some maven repository that contain the datastore-connector? Furthermore, I am...

Is it possible to load balance several services using the same HTTP load balancer in GCE?

load-balancing,google-compute-engine,google-cloud-platform
I have one website and one api server on different instances: Is it possible to serve both of them through the same HTTP load balancer? Is there a down side to doing this vs. 2 load balancers? I went over these: https://cloud.google.com/compute/docs/load-balancing/http/ https://cloud.google.com/compute/docs/load-balancing/http/cross-region-example ...

GCE says I exceeded my CPU quota, well, I did not. What to do?

google-compute-engine
I have two VMs, one with 2 CPU and another with 1 CPU, but, when I "click to deploy" a mongodb, I get the message: "Quota 'CPUS' exceeded. Limit: 8.0" 3 + 5 = 8 ... What should I do? Is there a CPU count cache or something?...

IPSEC Google App Engine

python,google-app-engine,soap,google-compute-engine,ipsec
I have an app running on Google App Engine. My app should use a SOAP web-service that exposed via IPSEC tunnel. How can I establish this connection without any proxy in the middle?...

Cannot ssh into instance using gcloud

ssh,google-compute-engine
I have set up a new instance in gcloud..yet am unable to use the gcloud compute ssh instance-name command. A verbose console output is: debug2: bits set: 511/1024 debug1: ssh_rsa_verify: signature correct debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS...

How to make gsutil rsync skip symlinks and return error code 0?

google-compute-engine,gsutil
I have noticed that when gsutil rsync is working, it will return a non-zero error code out if it encounters a symlink which it can not resolve: $ gsutil -m rsync -r -C /my_folder/ gs://my_bucket/ CommandException: Error opening file "file:////my_folder/my_symlink": . CommandException: 1 files/objects could not be copied/removed. Is there...

Autoscaler and HTTPLoadBalancing with WordPress Application on Google Cloud

php,wordpress,google-compute-engine,google-cloud-platform
I tried to create a WordPress application with a 2 tier architecture on Google Compute Engine. Created an instance in which the WordPress Web and App servers are installed and configured it with the database credentials installed in another instance with the IP. Created an image out of this instance's...

How can I add/remove instances from GCE load balancers with Ansible?

google-compute-engine,ansible,google-cloud-platform
I see that there is a gce_lb Ansible module, but it is unclear to me whether or not I can actually use this to change the instances assigned to that LB or whether the module just creates and destroys LBs. In contrast, EC2 clearly has one module just for creating...

Cannot bind ports to my container in Google Container optimized VM

docker,google-compute-engine
I'm trying to run a docker container on Google Container-optimized VM in GCE. Here is my dockerfile. I built a container image and push it to gcr.io. FROM nginx:1.9 COPY config /etc/nginx And I wrote a container manifest file. version: v1beta2 containers: - name: test image: gcr.io/myproject/test ports: - name:...

Receive UDP Packets on Google Compute Engine

java,networking,udp,port,google-compute-engine
my task is to receive UDP packets on an Google Compute Engine. Given is the port, which is 300 and I already have a simple Java program which can handle these UDP packets. My problem now. Get the UDP packets to my Java program. For that I don't know how...

MySQL Workbench & Google Compute Engine Connection

google-compute-engine
I have mysql installed in an instance of google compute engine. I am able to connect to it via the shell however I want to use the MySQL workbench. Is it possible to connect to it? I cant seem to make a connection. Any help is appreciated, Thanks!...

How to add a disk to a Google Compute Engine instance with the gce_pd Ansible module?

google-compute-engine,ansible,ansible-playbook
I'm new to Ansible, but I have a working playbook that creates Google Compute Engine instances. I followed the Ansible section of Compute Engine Management with Puppet, Chef, Salt, and Ansible - Appendix to achieve this. Now I would like to extend the playbook to add extra persistent disks to...

Remove project from Google Developer Console

google-compute-engine
I have a project listed on my Google Developer Console that I have no idea how it got there. I can't seem to delete it because it said I'm not the owner of the project. There is also $9.91 listed in the charges section, will I be charged for it?...

Retrieve project id from Google Compute Engine machine?

google-compute-engine,google-cloud-platform
I have two Google Cloud Platform projects (staging and production). I would like my application deployed on Google Compute Engine instance to automatically detected the project id. What is the way to do it?

Google cloud load balancing instance status

google-compute-engine
I've tried few different setups of HTTP load balancing in google compute engine. I used this as a reference : https://cloud.google.com/compute/docs/load-balancing/http/cross-region-example And I'm at scenario with 3 instances where I simulate the outage on one of them. And I can see that one instance is not healthy which is great,...

How to know if a machine is an Google Compute Engine instance

google-compute-engine,google-cloud-platform
Is there a way to know from a command line shell if I am currently on a Google Compute Engine machine or somewhere else (development machine)?

Instances in instance-group rebooting when given sudo poweroff

google-compute-engine
I have a strange problem whereby instances in an instance-group reboot themselves when I give them a sudo poweroff command (I'm doing this in a startup-script is that makes any difference...) I've also tried the more elaborate gcloud compute instances delete -q --zone europe-west1-c $HOSTNAME to no avail. What is...

SSL is breaking my htaccess file in WordPress

wordpress,apache,.htaccess,google-compute-engine
My .htacess file is vital not only for redirection but for the look of the site. I'm not sure why the developers of this theme did this but I can't change that. If you navigate to http://akcrossfit.com you'll see the site as it should be. When you navigate to https://akcrossfit.com...

How to migrate Wordpress between Compute Engine instances

wordpress,migration,google-compute-engine,google-cloud-sql
I have recently created a very small Google Compute Engine instance, naively thinking it's one of those easily scalable things Google people keep raving about. I used the quick deployment feature of Wordpress and it all installed itself nicely, so I started configuring and adding data etc. However, I then...

Is it possible to connect between AppEngine and Computer engine's virtual machine?

google-app-engine,google-compute-engine,google-cloud-platform
I want my AppEngine site to connect to one of my instances (Google Compute Engine ) in order to get some data from a local redis server. How can I do that? It seems there's no way to get a connection between AppEngine and Compute Engine within the same account/project......

How To Create Google Compute Engine Instance Using Fog In Ruby

ruby,google-compute-engine,fog
I try with following code but i am getting error, server = connection.servers.create({ :name => "instance-#{Time.now}", :image_name => "debian-7-wheezy-v20150325", :machine_type => "f1-micro", :zone_name => "us-central1-a", }) /home/vijay/.rvm/gems/ruby-2.0.0-p598/gems/fog-core-1.30.0/lib/fog/core/attributes.rb:151:in `requires': disks is required for this operation (ArgumentError) from /home/vijay/.rvm/gems/ruby-2.0.0-p598/gems/fog-1.29.0/lib/fog/google/models/compute/server.rb:218:in `save' from...

CPUS Quota per Region 24. Is it distributed 8 per zone?

google-compute-engine
The quota of 24 CPUS per Region is mentioned in the Google Cloud. Is that distributed as 8 per zone in the region? We are not able to allot more than 8 CPUS for the instances in the same zone and the error says "Quota 'CPUS' exceeded. Limit: 8.0"...

export variable in google cloud instance rhel7

java,linux,google-compute-engine,rhel7
I created an instance from the RHEL7 image. Installed java at /opt/jdk1.7 and edited /etc/enviroment to contain PATH=/opt/jdk1.7/bin:$PATH Now performed a reboot. Now when I try to login it allow to login using first part of email id then it ask for passpharse. Now I am login as xyz. Now...

Does Google Compute Engine support HTTPS?

ssl,google-compute-engine,google-cloud-platform
I recently signed up for google compute engine and managed to get my web app setup etc. But Google says that adding SSL certificates is currently only available for Alpha users? https://cloud.google.com/compute/docs/load-balancing/http/ssl-certificates Does that mean GCE doesn't allow https or is there any other method, i can get https working?...

Start and stop GCE instances using bash or python script

python,bash,google-compute-engine
I have GCE instance setup and already being used. With some services setup and running. I need to be able to stop it and start it with bash or python scripts in a cron job as I won't it to be running only at specific times and days. Is this...

Port not opening

google-compute-engine
I'm trying to enable postgres externally, but for some reason, enabling port 5432 on google cloud engine doesn't work. I've tried with other ports such as 8080 for Apache, and that works fine. Is there an additional setting that is required? or default rule that is blocking the port?...

How to create VM instance in Google Compute Engine?

linux,ssh,virtual-machine,google-compute-engine
I am new to Google Compute Engine. I want to create a Web Server having following properties: 1 Core Red Hat Enterprise Linux 7.1 64 bit RAM 8 GB HDD: 100 GB SSH, JDK 1.7 Apache Web server as the proxy to Jboss App Server Enable HTTP / 80 and...