简体   繁体   English

AWS CloudFormation 堆栈卡在 state UPDATE_ROLLBACK_IN_PROGRESS

[英]AWS CloudFormation stack stuck in the state UPDATE_ROLLBACK_IN_PROGRESS

I wanted to update my stack.我想更新我的堆栈。 The stack failed with error Function not found: arn:aws:lambda.... And stack in status UPDATE_ROLLBACK_IN_PROGRESS more than 5 hours.堆栈失败,错误为 Function not found: arn:aws:lambda.... 堆栈状态 UPDATE_ROLLBACK_IN_PROGRESS 超过 5 小时。 How do I stop this process?我该如何停止这个过程?

If you deleted the function outside of CloudFormation, then you can manually create a new function of the same name .如果您在 CloudFormation 之外删除了 function,那么您可以手动创建一个新的同名function。 This sometimes helps.这有时会有所帮助。

You can also wait till the rollback timeouts.您也可以等到回滚超时。 And it usually does after a while, but the time varies.它通常会在一段时间后发生,但时间会有所不同。

Another reason why it gets stuck in this state could be due to nested stacks:它卡在这个 state 中的另一个原因可能是由于嵌套堆栈:

In this case a recommended option is indeed to contact support:在这种情况下,推荐的选项确实是联系支持人员:

To fix the stack, contact AWS customer support .要修复堆栈,请联系AWS 客户支持

Recent AWS blog post also describes the issue and possible solutions:最近的AWS 博客文章还描述了该问题和可能的解决方案:

Regarding the time to wait, the timeout varies :关于等待的时间,超时时间各不相同

In most situations, you must wait for your AWS CloudFormation stack to time out.在大多数情况下,您必须等待 AWS CloudFormation 堆栈超时。 The timeout length varies , and is based on the individual resource stabilization requirements that AWS CloudFormation waits for to reach the desired state.超时长度会有所不同,具体取决于 AWS CloudFormation 等待达到所需 state 的各个资源稳定性要求。

In our case, we have mistakenly passed wrong image name to cloudformation template.在我们的例子中,我们错误地将错误的图像名称传递给了 cloudformation 模板。 After realising the mistake, we tried to stop the stack update, which made the stack stuck for forever in UPDATE_ROLLBACK_IN_PROGRESS status.意识到错误后,我们试图停止堆栈更新,这使得堆栈永远停留在 UPDATE_ROLLBACK_IN_PROGRESS 状态。 SO during ECS service creation it got stuck.所以在 ECS 服务创建过程中卡住了。 Solution:解决方案:

  1. in Stack event check in which step is in progress.在堆栈事件中检查正在进行的步骤。 (our case ECS service update) (我们的案例ECS服务更新)
  2. Go to ECS service. Go 到 ECS 服务。
  3. Click on Update service.单击更新服务。
  4. Choose older task definitions.选择较旧的任务定义。
  5. And Update.和更新。

Your Task definition is reset to previous version.您的任务定义已重置为以前的版本。 And roll back will complete successfully.回滚将成功完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 aws cli cloudformation update-stack 设置标签? - aws cli cloudformation update-stack set tags? AWS CloudFormation:如果指定了 VolumeAttachment,则更新堆栈失败 - AWS CloudFormation: update-stack fails if VolumeAttachment specified 无法创建 AWS CloudFormation 堆栈 - Unable to create AWS CloudFormation stack 堆栈处于 UPDATE_COMPLETE_CLEANUP_IN_PROGRESS state,无法更新 - Stack is in UPDATE_COMPLETE_CLEANUP_IN_PROGRESS state and can not be updated AWS CloudFormation create-stack 命令导致未创建堆栈 - AWS CloudFormation create-stack command results in no stack created 如何使用 CloudFormation 更新 AWS Glue 作业 - How to use CloudFormation to update AWS Glue Jobs CloudFormation:堆栈卡住,CloudTrail 事件显示重复的 DeleteNetworkInterface 事件 - CloudFormation: stack is stuck, CloudTrail events shows repeating DeleteNetworkInterface event 如何获取新创建的 aws_cloudformation_stack 的 arn terraform - How to get the arn of a newly created aws_cloudformation_stack terraform AWS Cloudformation - 嵌套堆栈 - 堆栈部署失败但未给出原因 - AWS Cloudformation - nested stacks - stack keeps failing deploy but not reason is given 模板更改后 Cloudformation 堆栈不会更新 - Cloudformation stack won't update after template change
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM