Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StoppedReason in ECS Fargate is truncated

In ECS Fargate, when a task fails, there is a "Stopped Reason" field which gives some useful logging. However I have noticed that it gets truncated after 255 symbols (screenshot below).

I checked the network tab and tracked the JSON of the http response, and it is truncated even there (so server-side). Is there any way to get the complete message?

I find this thread where they discuss the same problem.

How can I see the whole, untruncated error message?

enter image description here

like image 739
sashoalm Avatar asked Apr 02 '21 12:04

sashoalm


1 Answers

I found the whole error message in CloudTrail eventually. I searched by "Username", and entered the Task GUID as username. This narrowed down the amount of events I had to sift through. The full error message was in a "GetParameters" event.

Just FYI for anyone who reads this answer the task GUID is the ID at the end of the taskArn or if you go to Task in the console it will be the ID that you see in Task : fc0398a94d8b4d4d9218a6d870914a80 – Emmanuel N K Jun 21 at 13:21

like image 119
sashoalm Avatar answered Sep 21 '22 12:09

sashoalm