My biggest frustration with ECS is that its not observable.
I deploy my service, my tasks go into "pending" and I cross my fingers.
Sometimes I get useful error messages in the console, sometimes they just hang out in "pending" indefinitely. I see no events being generated and have no idea what its trying to do or where it is stuck
I can restart the ECS service or other hacks I've had to do before, but at this point I'd like to see whats actually happening when a task is in "pending". Are their logs anywhere for this?
It won't tell you until it stops.
Click "Stopped" next to "Running" and you should find all the previously pending tasks that already failed. It should show a reason for these failures.
Click on that task which is in pending state. It will show you the single log status of the container and If you have attached the cloud watch logs It will show you the full logs about why it is pending?.
Check the docker container logs by SSHing to the ec2 container instance of the task you are running.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With