Elastic Beanstalk:部署期间出错“引擎执行遇到错误。”

Feb*_*hah 8 amazon-elastic-beanstalk

我正在尝试在 EB 上部署我的代码,但是我收到此错误:

Engine execution has encountered an error.
Run Code Online (Sandbox Code Playgroud)

我可以很好地部署该应用程序的早期版本。但是我添加了dynamodb相关的代码之后,就不能再部署最新的版本了。不确定是否相关。我怎样才能挖得更多?

日志显示:

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.
Run Code Online (Sandbox Code Playgroud)

pba*_*pba 3

我通常的故障排除步骤与AWS Elastic Beanstalk 故障排除文档中的步骤相同:

  1. 检索并调查EB 日志
  2. 如果检索到的日志没有帮助,则可以使用SSH 连接到 EC2 实例来获取更多详细信息或检查实例配置是否确实符合我的预期。

此问题中的错误消息建议在实例上运行这些命令:

systemctl status web.service
journalctl -xe
Run Code Online (Sandbox Code Playgroud)