Reputation: 1817
I followed the instructions here to setup the load balancer:
https://cloud.google.com/nodejs/getting-started/run-on-compute-engine#multiple_instances
My instances work fine, they are accessible via inst.ance.ip.addr:8080 and send a 200 at the root
The load balancer shows:
Error: Server Error
The server encountered a temporary error and could not complete your request. Please try again in 30 seconds.
Also the health-check always returns UNHEALTHY:
$gcloud compute backend-services get-health api-service
backend: https://www.googleapis.com/compute/v1/projects/#####/zones/us-central1-f/instanceGroups/api-server status: healthStatus: - healthState: UNHEALTHY instance: https://www.googleapis.com/compute/v1/projects/#####/zones/us-central1-f/instances/api-server-jg2e port: 8080 - healthState: UNHEALTHY instance: https://www.googleapis.com/compute/v1/projects/#####/zones/us-central1-f/instances/api-server-taxd port: 8080 kind: compute#backendServiceGroupHealth
I repeated the setup process like twenty times, from creating the template to the firewall rules. No errors at all while doing so. I coud verify all in the ui of the google cloud console.
I'm going crazy.
Upvotes: 1
Views: 1105
Reputation: 1169
After submitting the ticket and working through their response providing a debugging blog entry.
Our issue wound up being with "Failure 2". After rebooting the server, the necessary routes were not there. However, after doing:
/etc/init.d/google-address-manager restart
the necessary routes were populated, health checks were good, and the services were then available via public access.
I grabbed the patches from
https://github.com/GoogleCloudPlatform/compute-image-packages/releases
and installed the startup-scripts and daemon packages.
Hope that helps.
Additional note: We were running Debian 8 fully patched at this point
Upvotes: 2