-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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/6834) #8080
Comments
I tested the ECS containers that are running on AWS Fargate and they're not affected by this issue (I'm able to open a shell with them). This is the SSM version of the Amazon ECS-optimized Amazon Linux 2 AMI used in ECS clusters (ami-0507dff4275d8dd6d):
|
Workaround:
|
Hi @istvanfedak-nbcu thanks for reaching out. Can you confirm that the permissions you are using have not changed recently? In this troubleshooting post for
This may be a better issue to track in aws-containers/amazon-ecs-exec-checker#47 or the SSM agent repository (https://github.com/aws/amazon-ssm-agent/issues). Have you tried updating to a newer version of the SSM Agent? Here are the release notes for reference: https://github.com/aws/amazon-ssm-agent/blob/mainline/RELEASENOTES.md |
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Describe the bug
Related issues:
execute-command
amazon-ssm-agent#435Unable to run
aws ecs execute-command
.Expected Behavior
Open an interactive shell with the container.
Current Behavior
An error occurred (TargetNotConnectedException) when calling the ExecuteCommand operation: The execute command failed due to an internal error. Try again later.
Reproduction Steps
aws ecs execute-command
--cluster MyCluster
--task arn:aws:ecs:us-east-1:123456789012:task/MyCluster/d789e94343414c25b9f6bd59eEXAMPLE
--container MyContainer
--interactive
--command "/bin/sh"
Possible Solution
No response
Additional Information/Context
I was able to run
aws ecs execute-command
last week and it stopped working today.CLI version used
aws-cli/2.11.20 Python/3.11.3 Darwin/20.6.0 source/x86_64 prompt/off
Environment details (OS name and version, etc.)
MacOS v11.7.8
The text was updated successfully, but these errors were encountered: