Skip to content

Elastic Beanstalk Degraded

0

I've been trying to solve this for a while- and it's likely I'll leave out some of the things I've tried.

In essence the original Environment is a REDCap instance running on PHP 7.4, working but "Degraded" health. I've been trying to fix it and along the way have come across some other issues: Namely an Expired SSL Certificate - so when trying a Blue/Green deployment, I temporarily removed HTTPS from the original environment before attempting to clone it. The cloned environment invariably never completes successfully. -Even after removing HTTPS listeners, SSL config files remain -Nginx fails to start because it tries to load SSL directives The Platform is retired - the original environment runs PHP 7.4 (now retired by AWS) The only environments now available are PHP 8.1+ (8.1, 8.2, 8.3, 8.4); and at multiple attempts - none work. (no PHP 7.4 option)

I've tried a Direct Clone with HTTPS Remove HTTPS, Then Clone Fix Load Balancer Post-Creation

  • that is tried to remove HTTPS listener from failed environment
    • but can't modify environment because CloudFormation stack is in "CREATE_FAILED" state

I've also tried running the Elastic Beanstalk troubleshooter- but it runs 3 steps, and gives green check marks and hasn't provided any useful insights.

I still have the original environment running but "Degraded" health. And not sure what to try next. Any help sincerely appreciated.

asked a year ago295 views

1 Answer
0

Based on your description, you're facing multiple interconnected issues with your Elastic Beanstalk environment. Let me address them:

  1. Degraded Health Status: To understand why your original environment shows "Degraded" health, you should run the eb health --refresh command using the EB CLI. This will provide detailed information about which instances are having problems and why. The output will show you if there are mismatched application versions, failed deployments, or other specific issues causing the degraded status.

  2. SSL Certificate Issues: When you removed HTTPS from your environment but still have SSL configuration files present, this can cause Nginx startup failures. You'll need to ensure all SSL configuration files are properly removed from your .ebextensions directory. For PHP environments, these would typically be in configuration files that set up Apache/Nginx with SSL modules and certificate files.

  3. Platform Version Upgrade: For the platform version issue (PHP 7.4 being retired), you cannot directly upgrade the major runtime version in an existing environment. This explains why your cloning attempts are failing. The recommended approach is a Blue/Green deployment:

  • Create a new environment with PHP 8.1
  • Deploy your application to this new environment
  • Test thoroughly and fix compatibility issues between PHP 7.4 and 8.1
  • Swap environment URLs once the new environment is working properly
  • Terminate the old environment after confirming the new one works
  1. CloudFormation Stack Failure: When your environment is in a CREATE_FAILED state, you can't modify it. You'll need to terminate that failed environment and start fresh.

For your next steps:

answered a year ago

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.