Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elastic Beanstalk: Error during deployment "Engine execution has encountered an error."

I am trying to deploy my code on EB however I get this error:

Engine execution has encountered an error.

I can deploy an earlier version of the app fine. But after I added dynamodb related code, I can no longer deploy the latest version. Not sure if it is related. How can I dig in more?

Logs show:

startProcess Failure: starting process "web" failed: Command /bin/sh -c systemctl start web.service failed with error exit status 1. Stderr:Job for web.service failed because the control process exited with error code. See "systemctl status web.service" and "journalctl -xe" for details.
like image 938
Febian Shah Avatar asked Apr 26 '20 20:04

Febian Shah


1 Answers

My usual troubleshooting steps are the same as the ones in AWS Elastic Beanstalk Troubleshooting doc:

  1. Retrieve and investigate EB Logs
  2. If retrieved logs are not helpful, then SSH to the EC2 instance can be used to get more details or check that the instance config is really what I expected for example.

The error message in this question suggests to run those commands on the instance:

systemctl status web.service
journalctl -xe
like image 93
pba Avatar answered Oct 20 '22 23:10

pba