gpt4 book ai didi

amazon-web-services - 在 cloudformation 上执行更新时出现端口错误

转载 作者:行者123 更新时间:2023-12-03 07:22:14 25 4
gpt4 key购买 nike

我在任务定义部分更改了一些环境变量并执行了变更集。任务定义更新成功,但服务更新卡在cloudformation中。

enter image description here

在检查集群中的事件时,我发现了以下内容:

enter image description here

它正在添加新任务,但旧任务已经在运行并占用端口,因此它被卡住了。可以采取什么措施来解决这个问题。我始终可以删除并再次运行 CF 脚本,但我需要创建一个管道,以便更新堆栈能够正常工作。

最佳答案

UPDATE_IN_PROGRESS大约需要 3 小时,直到DescribeService API 超时。

If you can't wait then you need to manually force the state of the Amazon ECS service resource in AWS CloudFormation into a CREATE_COMPLETE state bysetting the desired count of the service to zero in the Amazon ECS console to stop running tasks. AWS CloudFormation then considers the update as successful, because the number of tasks equals the desired count of zero.

此博客详细解释了该消息的原因及其修复方法。 https://aws.amazon.com/premiumsupport/knowledge-center/cloudformation-ecs-service-stabilize/

https://aws.amazon.com/premiumsupport/knowledge-center/ecs-service-stuck-update-status/?nc1=h_ls

关于amazon-web-services - 在 cloudformation 上执行更新时出现端口错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74442503/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com