amazon-web-services - AWS 代码部署 : stuck on install step

标签 amazon-web-services docker aws-code-deploy

我正在运行 this使用我自定义的基于 .net 的 docker 图像创建部署管道的教程。
但是当我开始部署时,它停留在 install 阶段,所以我必须手动停止它: enter image description here

之后,我得到了几个具有不同任务定义的正在运行的任务(注意:1 和:4,因为我现在已经尝试运行部署 4 次): enter image description here

它们也一直在改变它们的状态RUNNING->PROVISIONING->PENDING。停止的任务列表不断增加: enter image description here

问: 那么,如何找出 CodeDeploy 的问题呢?为什么它会永远运行?

更新: 它连接到健康检查。

更新: 我明白了:

(service dataapi-dev-service, taskSet ecs-svc/9223370487815385540) (port 80) is unhealthy in target-group dataapi-dev-tg1 due to (reason Health checks failed with these codes: [404]).

不太明白,为什么新创建的容器会失败,因为原来的容器通过了健康检查。

最佳答案

当 ECS 任务运行时,ELB(弹性负载均衡器)会根据您在目标组中的配置不断对容器进行健康检查,以检查容器是否仍在响应。

根据您的调试消息,容器 (api) 以 404 响应健康检查路径。

我建议你在目标组 dataapi-dev-tg1 中配置 healhcheck 路径。

关于amazon-web-services - AWS 代码部署 : stuck on install step,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54475306/

相关文章:

docker - 将 Docker 镜像从 Gitlab 的私有(private) Docker 注册表部署到 Openshift

networking - 具有多个 ip 别名和网关的系统上的 Docker 容器 EXIT IP,iptables iproute2

amazon-web-services - AWS CodeDeploy 无法同时跨多个可用区部署?

mysql - phpMyAdmin 和 Amazon RDS 的问题

python - 如何在AWS EC2上安装Chromadb?

docker - STATUS 中的 "(healthy)"字符串代表什么?

node.js - aws 上的 ReactJS 应用程序的 appspec.yml

amazon-web-services - CodeDeploy 错误 : "The revision size is too large. Its maximum size is 51200B."

amazon-web-services - AWS Beanstalk - 创建新环境时向 Lambda 发送 SNS 通知

amazon-web-services - 指定区域为 "aws cloudformation delete-stack"