abelabbesnabi
abelabbesnabi

Reputation: 1817

GCE Http load balancer not reaching instances - UNHEALTHY

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

shows:

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

Answers (1)

djneely
djneely

Reputation: 1169

After submitting the ticket and working through their response providing a debugging blog entry.

https://cloudplatform.googleblog.com/2015/07/Debugging-Health-Checks-in-Load-Balancing-on-Google-Compute-Engine.html

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

Related Questions