-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task containers dependencies resolution stuck forever #2579
Comments
@trane9991 Sorry that you are facing this issue, I will try to reproduce this on my end. Meanwhile, Is it possible for you to send the task definition(with which you are seeing the issue) and Agent logs to [email protected]. |
Hey @shubham2892 |
Let me know if you are able to reproduce that because it reproduces in 100% cases for me with Task Definitions shared in the issue description. |
I was able to reproduce the pending state behavior with |
Hi, The PR for working on the fix for the ordered container dependency problem is #2615. Regards, |
This fix has been released as part of ECS Agent 1.44.4: https://github.com/aws/amazon-ecs-agent/releases/tag/1.44.4 Please perform an update of the Agent: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html or you can find the latest ECS Optimized AMIs containing ECS Agent 1.44.4 here: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html |
Hi, As you can see in the attached screenshot, i have the same error as mentioned above. Here my task definition:
What am i missing? Mentions: @ellenthsu Thanks, |
Hi! @lucabelmonte I was able to repro the issue using your task definition. I will re-open this issue and label it as a bug. We'll work to resolve it. Correct me if I'm wrong, but I think in this particular case the expectation would be that |
Hi @angelocar, Yes exactly. I was expecting the second container |
@lucabelmonte, a fix has been merged and will soon be released. |
I wasn't having this problem before but now I am after upgrading from 1.61.1 to 1.61.3... |
The fix was released in 1.61.2 |
Wondering if this has been applied to Fargate? Encountered similar issue on fargate tasks. |
Summary
Task stuck in Pending state because of some problems during containers dependencies resolution.
Setting
Start timeout
doesn't have any effect as well.This is reopening of my previous issue #2350, with the additional details and a Task Definition to reproduce the error.
Description
I have 3 containers:
(
nginx
depends onmysql
which depends onexit1
)When container
exit1
fails with the exit code1
, containersmysql
andnginx
remains in the PENDING state forever.When container
exit1
succeeds with exit code0
everything works fine.I also tried to set container
nginx
dependencies like:the result is the same.
However, behavior seems to be correct if the order of dependencies for
nginx
is changed:Expected Behavior
The task is failed to start.
Observed Behavior
Task stuck in the PENDING state forever
Environment Details
Task Definitions to reproduce:
With transitive dependencies - stuck as PENDING ❌
With unordered multiple dependencies - stuck as PENDING ❌
With logically ordered multiple dependencies - task STOPPED as expected ✅
The text was updated successfully, but these errors were encountered: