How to diagnose ECS Fargate task failing to start? How to diagnose ECS Fargate task failing to start? docker docker

How to diagnose ECS Fargate task failing to start?


Please go Clusters > Tasks > Details > Containers

You could see some error message around the red rectangle in the figure "error message."

Task detail:

task detail

Error message:

error message


I may be late to the party, but you can check the container logs instead of the tasks'.

Go to the failed task -> Details -> Container (at the bottom) and open it. Right under details you'll see a Status reason.

Opening the container detailsOpening the container

Getting the reason for failureenter image description here

Note: if your task runs more than one container, check the 'Status reason' of each container as per the screenshot above, as it can be different between them.


You can get some information regarding the task failure under the 'Events' tab of your service's dashboard. Though the message there aren't very descriptive, they can provide you a vague idea where exactly things are getting wrong.

enter image description here