-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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. #6562
Comments
Hi @nic-russo, thanks for reaching out. That error was also referenced in issues #6456 and #6070. Have you tried looking through the comments in those issues? In both issues there are other issues mentioned from the https://github.com/aws-containers/amazon-ecs-exec-checker repository that might help give more insight into why you are seeing this error. |
Hi @tim-finnigan, thank you for your support. I went through those issues and this guide. I can confirm that:
Not sure if I'm missing something else.. I'll continue investigating |
Hi @nic-russo, thanks for providing that additional information. Were you able to figure out the problem upon further investigation? I found another issue also mentioning that error which might help: aws-containers/amazon-ecs-exec-checker#43 |
Hi @tim-finnigan, thanks again for your help. Nope, I can't really see why I'm unable to connect.. I've double-checked the |
I can also confirm my container is running into a private subnet (with NAT) with security group that allows all traffic (outbound). |
Any update on this?? |
I was working on kind of the same problem today. In the end my problem is that I was injecting the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY as environment variables in the task definition. These variables are working perfectly fine, but prevent the execute-command from working. |
The AMI `ami-0fe19057e9cb4efd` seems to cause the issue for us
…On Tue, Nov 30, 2021 at 4:45 PM Joey Houtenbos ***@***.***> wrote:
I was working on kind of the same problem today. In the end my problem is
that I was injecting the *AWS_ACCESS_KEY_ID* and *AWS_SECRET_ACCESS_KEY*
as environment variables in the task definition.
These variables are working perfectly fine, but prevent the
*execute-command* from working.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6562 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA27R4FEJF6I5FX5WOBHFLTUOUZWJANCNFSM5ISK42HQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thanks all for providing your suggestions. @nic-russo unfortunately I'm not sure what the issue could be here and I’m having trouble reproducing it. You may want to open an issue in that other repository too (https://github.com/aws-containers/amazon-ecs-exec-checker) as maybe they can help with this. I’m also going to remove my assignment here and give my teammates the opportunity to investigate, but please let us know if you do find a solution. |
@nic-russo, I see that you've engaged the team over on aws-containers/amazon-ecs-exec-checker#47. Closing this out for now. If they narrow down something to the AWS CLI, please feel free to open up again. Thanks! |
|
This did not fix the issue |
@justfathi are you experiencing the my very same issue? |
Yes, still experiencing the same issue unfortunately
…On Tue., Feb. 1, 2022, 8:19 a.m. nic-russo, ***@***.***> wrote:
@justfathi <https://github.com/justfathi> are you experiencing the my
very same issue?
—
Reply to this email directly, view it on GitHub
<#6562 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA27R4GOO6ZAX42KJAGDSKLUY7FT3ANCNFSM5ISK42HQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Following this as well! |
facing exactly the same issue here. Everything was working for a few months and now I can't execute the command.
I have of course checked the
Not sure what to do. If someone finds a solution, please ping me 🙏 |
I'm having the same as above right now. Everything was working for months but now I am getting this error.
|
Please refer to aws/amazon-ssm-agent#435 for updates on this and to leave related comments. |
I'm experiencing this exact same issue. |
facing exactly the same issue here. I have of course checked the amazon-ecs-exec-checker and everything is green ✅ . |
Leave AWS. Go on Azure. :-) |
We have the same issue. ECS connect is highly unstable. Sometimes it allows to connect, then it does not... |
having the same issue also
|
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
Attempting to run execute-command onto a task using
aws ecs execute-command
SDK version number
Platform/OS/Hardware/Device
What are you running the cli on?
To Reproduce (observed behavior)
Steps to reproduce the behavior
Run
aws ecs execute-command --cluster clusterName --task taskId --command "/bin/bash" --interactive
Expected behavior
A clear and concise description of what you expected to happen.
It should open an interactive session.
Logs/output
Get full traceback and error logs by adding
--debug
to the command.Additional context
Add any other context about the problem here.
check-ecs-exec.sh
output:The text was updated successfully, but these errors were encountered: