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

时间:2020-04-26 20:37:32

标签: amazon-elastic-beanstalk

我正在尝试将代码部署在EB上,但出现此错误:

Engine execution has encountered an error.

我可以部署应用程序的早期版本。但是,在添加与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.

1 个答案:

答案 0 :(得分:0)

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

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

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

systemctl status web.service
journalctl -xe