简体   繁体   中英

How to find out the reason for a failing elastic beanstalk deployment?

After eb deploy the environment gets stuck in Health: 'Severe'.

It show the following warning in recent events:

Environment health has transitioned from Info to Severe. ELB processes are not healthy on all instances. Application update in progress on 1 instance. 0 out of 1 instance completed (running for 3 minutes). None of the instances are sending data. ELB health is failing or not available for all instances.

I'm not able to ssh into the instance: connection reset by peer. (I'm normally able to ssh into the instance without any issues).

The request logs function doesn't work because:

An error occurred requesting logs: Environment named portal-api-staging is in an invalid state for this operation. Must be Ready.

Cloudwatch logs only contain the same message from 'recent events'.

How do I figure out what why the deployment fails?

AWS documentation says I should check the logs or ssh into the instance, but none of those options work.

We found the issue. The deployment was somehow getting stuck and rolled back. Changing deployment policy to AllAtOnce and disabling RollingUpdateEnabled fixed it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM