How do I resolve a yellow health status warning in my Elastic Beanstalk environment?
Last updated: 2019-10-15
How do I resolve a yellow health status warning in my AWS Elastic Beanstalk environment?
A yellow health status warning in your Elastic Beanstalk environment can mean the following:
- Your Elastic Beanstalk environment failed one or more health checks.
- An operation on an instance is taking a long time.
- You have an increased number of 4xx or 5xx HTTP return codes.
- An instance is in a severe state.
- Your Elastic Beanstalk health daemon failed.
For more information on warnings, see Health Colors and Statuses.
Identify the cause of the health warning
- Open the Elastic Beanstalk console.
- Choose your application.
- In the navigation pane, choose Events.
- In the Type column, look for recent events with a Severity type of WARN, and then note these events for troubleshooting later on.
- In the navigation pane, choose Dashboard.
- In the Health section, choose Causes.
Now, you can view the overall health of your environment on the Enhanced Health Overview page.
For more information, see Enhanced Health Monitoring with the Environment Management Console.
Troubleshoot the issue that caused the health warning
Based on the health issues that you identify in the Enhanced Health Overview page, choose one of the following troubleshooting approaches:
- For health check failures, see Basic Health Reporting, or see Enhanced Health Reporting and Monitoring if you're using enhanced health reporting.
- For operations that are taking too long, identify the operation in progress using the Elastic Beanstalk event stream. Or, monitor the /var/log/eb-activity.log by logging in to your Amazon Elastic Compute Cloud (Amazon EC2) instance.
Note: Operations that take longer than usual are typically environment deployments or configuration updates.
- For an increased number of 4xx and 5xx HTTP return codes, identify the cause of the increase by monitoring the access logs of the proxy server. Then, compare the access logs with the application logs to identify the pattern of increased errors. For more information, see Common Errors.
Note: The proxy server logs can be the Apache (httpd) access logs, NGINX access logs, or Internet Information Services access logs, depending on your platform.
- For instances in a severe state, choose a solution based on the warning issued. For more information, see Troubleshooting Instances.
Note: Your instances can be in a severe state due to an ongoing deployment, failure of the health daemon on the EC2 instance, or high resource utilization. In most cases, the warning state in your environment is temporary, and the state transitions to green (OK) after you address the issue that caused the health warning. For more information, see Health Colors and Statuses.
- For a failed Elastic Beanstalk health daemon, log in to your EC2 instance and monitor /var/log/messages to identify the cause of the failure.