Elastic Beanstalk stuck for more than 12 hrs
If you know how to fix the source of problem (for example: change application settings in Beanstalk Environment variables or deploy fixed version of your application), then:
- Go to page Auto Scaling Group, choose your region, find Auto Scaling Group by Beanstalk Environment ID (like e-abcd12345).
- In Details tab, push "edit", set Desired, Min and Max to 0. Remember previous settings.
- In Beanstalk page, wait for message like "Removed instances [i-xxx, i-yyy] from your environment."
- Change settings or deploy your application
- Return Autoscaling settings back.
- Be patient, it may took 5-10 minutes to change Beanstalk health to "Ok".
Related videos on Youtube
adiego73
I am an Argentinian Software Engineer,I recently finished a MSc. in Computer Science & Engineering at Politecnico di Milano. I have a strong interest in autonomous robotics and computer vision, as well as in artificial intelligence and machine learning. I have come to Europe in search of opportunities to become a roboticist.
Updated on September 18, 2022Comments
-
adiego73 over 1 year
I have an EB application that is stuck with this error: Failed Environment update activity. Reason: Internal Failure. I can not abort anything and I cannot change any configuration.. I dont know what to do, because every thing I do, it says: Could not abort the current environment operation for environment-xxxxxx: Environment named environment-xxxx is in an invalid state for this operation. Must be pending deployment.
I want to destroy the application or remove everything to start again, but I cannot do that.
Does anyone know how to unlock this?
Thanks in advance!
-
kumar kundan over 4 yearsthanks.. you made my day
-
sagar junnarkar about 3 yearsThis answer saved my job. ;) Thanks.
-
carlin.scott over 2 yearsI had this happen in my production environment, so setting desired capacity to 0 wasn't an option. Instead I terminated the new instance created by the deployment from the Monitoring tab, and then I followed your directions but set min and desired capacity the pre-deployment values. After about 8 minutes, EB recovered from the stuck state like you said it would. Thank you!