Useless Amazon ECS Error Message when creating tasks

Viewed 3384

Using the ecs agent container on an Ubuntu instance, I am able to register the agent with my cluster.

I also have a service created in that cluster and task definitions as well. When I try to add a task to the cluster I get the useless error message:

Run tasks failed
Reasons : ["ATTRIBUTE"]

The ecs agent log has no related error message. Any thoughts on how I can get better debugging or what the issue might be?

The cli also returns the same useless error message

{
    "tasks": [],
    "failures": [
        {
            "arn": "arn:aws:ecs:us-east-1:sssssss:container-instance/sssssssssssss",
            "reason": "ATTRIBUTE"
        }
    ]
}
2 Answers

The ECS console webpage does not provide enough information, but you can connect to the EC2 instance to retrieve more logs.

You can try by manually restart ecs agent daemon, ecs agent docker. Sometimes, you need to manually delete the checkpoint file

A cheatsheet with location of logs, commands can be found at ecs-agent troubleshoot

Related