How to debug failed fargate task initialization

梦想与她 提交于 2019-12-04 09:19:41

Try going to "CloudWatch -> Logs -> Insights" and click on "Run Query":

  1. Go to the cluster and choose the Tasks tab
  2. In the lower pane, choose Stopped for the Desired Task Status value
  3. Locate the desired Task and click it's GUID
  4. Scroll down to the Containers section and expand the relevant containers that are experiencing errors

You'll see some kind of Status reason for the error. In my case it was:

CannotStartContainerError: API error (500): failed to initialize logging driver: Cannot determine region for awslogs driver

Edit: I can't really take credit for figuring this out - found it here:

https://github.com/aws/amazon-ecs-agent/issues/1654#issuecomment-437178282

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!