An error occurred (TargetNotConnectedException) when calling the ExecuteCommand operation: The execute command failed due to an internal error. Try again later.
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 357
- PR merge metrics
- No merged PRs in 30d
Description
I am getting this error:
aws ecs execute-command --region REGION --cluster CLUSTER --task TASK --container CONTAINER --command "/bin/sh" --interactive
The Session Manager plugin was installed successfully. Use the AWS CLI to start a session.
An error occurred (TargetNotConnectedException) when calling the ExecuteCommand operation: The execute command failed due to an internal error. Try again later.
amazon-ssm-agent --version
SSM Agent version: 3.1.804.0
This is running on EC2 infrastructure within the ECS cluster.
Contributor guide
Research direction
Start with the reported AWS ECS execute-command invocation, the TargetNotConnectedException output, and the listed SSM Agent version 3.1.804.0. Reproduce or trace the failure using those details; done means identifying the agent-side cause and documenting a verified correction or the missing diagnostic information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, go
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100