Skip to content

Managed ALB for beanstalk

0

Hello, i have déployed a managed ALB with elastic beanstalk but the beanstalk environment remain in error with the message: "Environment health has transitioned from No Data to Severe. None of the instances are sending data. ELB health is failing or not available for all instances." even if the sécurity group is open for http in port 80. Please can you give me some advice for this errors?

1 Answer
0
Accepted Answer

here are some steps you can take to troubleshoot the issue with your Elastic Beanstalk environment and the load balancer:

  1. Check Instance Health

    • In the Elastic Beanstalk console, go to the "Environments" section and select your environment.
    • Look at the "Health" column for your environment. If the instances are in an "Unhealthy" state, it could be the cause of the "None of the instances are sending data" error.
    • Investigate the instance logs to see if there are any errors or issues preventing the instances from starting up correctly.
  2. Verify Security Group Configuration

    • Ensure that the security group attached to your Elastic Beanstalk environment allows inbound traffic on port 80 (or the port your application is listening on) from the load balancer's security group.
    • You can check this by going to the EC2 console, selecting the security group, and reviewing the inbound rules.
  3. Check Load Balancer Configuration

    • In the Elastic Beanstalk console, navigate to the "Load Balancing" section for your environment.
    • Verify that the load balancer is configured correctly, with the appropriate health check settings and listener configurations.
    • Ensure that the load balancer is able to reach your application instances on the correct port.
  4. Examine Application Logs

    • Check the application logs, both in the Elastic Beanstalk console and on the EC2 instances, to see if there are any errors or issues with your application code that could be causing the instances to fail or not respond to the load balancer's health checks.
  5. Scaling and Capacity

    • Ensure that your Elastic Beanstalk environment has enough capacity to handle the incoming traffic. Check the "Capacity" section in the Elastic Beanstalk console and adjust the instance count or instance type if needed.

6 *Perform a Rolling Update

  • If the issue persists, you can try performing a rolling update to your Elastic Beanstalk environment. This will replace the instances one by one, which may help resolve any issues with the current instances.
  1. Check CloudWatch Logs

    • Examine the CloudWatch logs for your Elastic Beanstalk environment and the load balancer to see if there are any error messages or clues that can help identify the root cause of the issue.
  2. Consider Redeploying the Application

    • As a last resort, you can consider redeploying your application to a new Elastic Beanstalk environment. This will create a fresh environment with a new load balancer and instances, which may resolve any underlying issues.

answered 2 years ago

EXPERT

reviewed 2 years ago

  • I found the problem it was the subnet of the beanstalk instances, it should be on private network instead of public network.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.