AWS编码器未能在EC2上部署而没有任何错误日志

发布于 2025-01-21 19:16:03 字数 915 浏览 0 评论 0原文

我正在使用代码构建和部署从代码管道中的EC2实例中部署一个Spring Boot Jar。 CodeBuild工作正常,并且工件正在上载S3。

当编码工作开始时,它将进行2-3分钟,并在拳头步骤中失败。使用此错误

“在此处输入图像描述”

这是错误描述

”在此处输入图像描述” CodeDeploy服务运行良好,所有其他设置看起来都不错。也没有在EC2中的编码运行日志中看到任何日志。请帮助确定问题。

这是我的appspec文件

version: 0.0
os: linux
files:
- source: /
  destination: /home/ec2-user
hooks:
  AfterInstall:
  - location: fix_previleges.sh
    timeout: 300
    runas: root
  ApplicationStart:
  - location: start_server.sh
    timeout: 300
    runas: root
  ApplicationStop:
  - location: stop_server.sh
    timeout: 300
    runas: root

I am deploying a spring boot jar in a EC2 instance from code pipeline using code build and deploy. CodeBuild is working fine and the artifact is getting uploaded in S3.

When the CodeDeploy starts, it will be in process for 2-3 mins and fail in the fist step. with this error

enter image description here

this is the error description

enter image description here
CodeDeploy service is running fine and all the other setup looks good. Also not seeing any logs in CodeDeploy logs in EC2. please help out on identifying the issue.

Here is my appspec file

version: 0.0
os: linux
files:
- source: /
  destination: /home/ec2-user
hooks:
  AfterInstall:
  - location: fix_previleges.sh
    timeout: 300
    runas: root
  ApplicationStart:
  - location: start_server.sh
    timeout: 300
    runas: root
  ApplicationStop:
  - location: stop_server.sh
    timeout: 300
    runas: root

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文