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

ECS execute-command failed due to an internal error (aws/aws-cli/issues/6562) #6834

Closed
ssyberg opened this issue Mar 31, 2022 · 7 comments
Closed
Assignees
Labels
ecs-execute-command guidance Question that needs advice or information.

Comments

@ssyberg
Copy link

ssyberg commented Mar 31, 2022

This is just a wrapper for this issue that may have been prematurely closed: /issues/6562

I don't really have anything new to add except that it's definitely happening to us too, we appear to have an identical structure to that described in the related ticket with the only exception being a different region.

@ssyberg ssyberg added the needs-triage This issue or PR still needs to be triaged. label Mar 31, 2022
@nateprewitt
Copy link
Member

Hi @ssyberg, was there new information regarding #6562? The issue is due to a defect in ECS that's causing a server side exception which it doesn't appear the CLI can control. I believe the ECS ticket (aws-containers/amazon-ecs-exec-checker#47) was proposed as the tracking ticket for the issue going forward. It appears you've chimed in there as well.

Would you mind providing more info on what we can track here?

@nateprewitt nateprewitt added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. labels Mar 31, 2022
@ssyberg
Copy link
Author

ssyberg commented Mar 31, 2022

The issue is due to a defect in ECS that's causing a server side exception which it doesn't appear the CLI can control

@nateprewitt I may have missed this somewhere, can you point me to where this was determined to be the cause? If so is there an ECS specific bug documented somewhere that we can track or any known workarounds (I recognize that's not CLI related but any help is appreciated!).

Both tickets have been closed and it seems like my team, @nic-russo, and @justfathi are still experiencing this issue. I'm not in a position to determine if it's a CLI issue and agree that the ecs-exec-checker should be able to expose this as well (though honestly doesn't seem unreasonable that the CLI might be about to expose more details on failure...)

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Mar 31, 2022
@nateprewitt
Copy link
Member

The error itself is directly from the ECS API which is claiming an internal error in the service. This message is simply proxied back to the CLI but provides us no further insight into why ECS failed. This lead to the introduction of amazon-ecs-exec-checker to diagnose configuration issues. ECS also provides a knowledge center article on debugging this problem with some other things to check.

If the tool is unable to diagnose the current issue, it may need additional functionality, which I believe is what's being determined in the above ticket. We could leave this open for visibility, but I don't believe there are any changes that can be made in the CLI to remedy this issue.

@nateprewitt nateprewitt added the guidance Question that needs advice or information. label Mar 31, 2022
@ssyberg
Copy link
Author

ssyberg commented Apr 1, 2022

@nateprewitt totally get where you're coming from, and I think you're technically correct that this is not an issue with the CLI, unfortunately for us the CLI is our only interface to the execute-command so anything beyond that is pretty opaque to your users. I don't really have a suggestion as to if this ticket should stay open or where the responsibility is to address this, but if you have any special access to the ECS team I think we'd all be very grateful. FWIW more comments are flowing in from users in the closed bug, this appears to be a more widespread issue than we originally thought.

@tim-finnigan
Copy link
Contributor

tim-finnigan commented Apr 1, 2022

Looking more into this now, this has already been escalated internally due to the uptick in these issues being reported. Will post an update when I have more information.

@tim-finnigan
Copy link
Contributor

Closing this, updates posted here: aws/amazon-ssm-agent#435. Will add more information there going forward. It appears that the issue relates to aws-containers/amazon-ecs-exec-checker#49.

@github-actions
Copy link

github-actions bot commented Apr 1, 2022

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ecs-execute-command guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

3 participants