Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.4K
Views
ALB Target groups showing Unhealthy, though my application is running fine

I have microservices deployed in containers, which are running fine and we are able to access with ALBendpoint/microservice.

But my target group which attached to ALB is showing the "Unhealthy" status.

Errors in AWS console: None of these Availability Zones contains a healthy target. Requests are being routed to all targets. Health checks failed with these codes: [404]

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I am seeing two issues here.

  1. Why the application is running fine when the healthcheck fails. here is the explanation from AWS Docs:

If a target group contains only unhealthy registered targets, the load balancer nodes route requests across its unhealthy targets. Health checks for your target groups

  1. How could you fix the health check while the instances are draining because of failed healthchecks.

404 means that the health check URL is not found. Confirm the health check configuration. your health check URL should respond HTTP 200 OK response. If your instances are draining repeatedly, you can temporarily set the health check rule to match HTTP 404 until your instances becomes healthy. Once you figure out the correct health check URL, you can set that.

Hope this helps.

over 4 years ago · Santiago Trujillo Report

0

In my case IIS server and resolved with the below steps.

  1. Check the security groups - whether we have opened the required ports from ALB SG to EC2 SG.
  2. Login to server and check does IIS server's default site has 443 port opened if your health-check is on 443. (whatever port you are using for health checks).

Use the curl command to troubleshoot the issue.

  1. If you would like to check on HTTPS use the below command to check the response. Use -k or --insecure to ignore the SSL issue.

    curl https://[serverIP] -k

  2. For HTTP test use the below command.

    curl http://[serverIP]

over 4 years ago · Santiago Trujillo Report

0

I was dealing with this issue for 1 day. I finally realized that I had removed the default server configuration from nginx. this is needed to for de default path that the healthCheck checks

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!