Sometimes EB fails to deploy and times out with a generic error:
Unsuccessful command execution on instance id(s) 'i-********'. Aborting the operation.
As of yet there is no clean way to get out of this, but here are the top 3 ways that we have got it to work - depending on your needs...
- 1) Restart App server
From within the EB console, choose
Actions > Restart App servers.Downtime, but not for long, quick, but doesn't always work.
- 2) Terminate EC2 instance
From within the EC2 console, go to the list of instances, tick the instance and choose
Actions > Instance State > Terminate.
Long Downtime, this deletes the box and make a new one. This works mostly, but has failed to bring up the new instance sometimes, until we
- 3) Change load balancer
From within the EB console, go to your application configuration, and enter the
Scalingsettings. Change the
2. Save the changes and let the environment update and bring up a new EC2 server. Now go back and change the
minimum instancesback to your usual setting, and change the
1. Wait for the environemnt to update, bring down the old insnace, and then go back and change
maximum instancesback to your usual setting.Zero Downtime, but takes a long time and you need a load balancer. This effectively creates a brand new EC2 box whilst still running the old one, then destroys the old one, so you have no downtime. But changing thoes settings takes quite a while.
Non of these really solve the issue, but they are the only workarounds that we know of at the moment.