Skip to content
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

Misleading error message on waiting for task to start if the runner doesn't have permissions ecs:DescribeTasks #35

Open
mmuarc opened this issue Mar 11, 2025 · 0 comments

Comments

@mmuarc
Copy link

mmuarc commented Mar 11, 2025

Hello,

I've been banging my head against the wall for a while because of this issue.

If the runner doesn't have ecs:DescribeTasks permissions, the action errors out with a timeout on the Start timer.

I suppose it's because the waiter is intended to hide exceptions so that if it can't reach to check for the state it simply keeps trying until the timeout happens. The error message you get is: Task did not start successfully. Error: {"state":"TIMEOUT","reason":"Waiter has timed out"}. even when the task runs nicely and finishes.

I checked the code and saw you are using a command by the aws sdk. So digging a bit I figured this could be the issue.

In case you can't do much to fix this on your side, it would be great for the next person if you could add this behavior to the documentation.

Thank you very much for your work!

Mmuarc

PS: On a side note, the marketplace documentation is not updated with the latest version and some property names aren't aligned.

@mmuarc mmuarc changed the title Misleading error message on waiting for task to finish if the runner doesn't have permissions ecs:DescribeTasks Misleading error message on waiting for task to start if the runner doesn't have permissions ecs:DescribeTasks Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant