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

AWS Docker Autoscaler: error with Docker Autoscaler Executor and EC2 Instance Connect #1200

Open
vpotap opened this issue Oct 22, 2024 · 1 comment

Comments

@vpotap
Copy link

vpotap commented Oct 22, 2024

I am encountering an occasional issue while using the Docker Autoscaler executor. Sometimes, the following errors are logged, indicating problems with EC2 Instance Connect and the state of the EC2 instance:

Preparing the "docker-autoscaler" executor
ERROR: Failed to remove network for build
ERROR: Preparation failed: error during connect: Get "http://internel.tunnel.invalid/v1.24/info": preparing environment: getting instance connect info: refreshing connect info: rpc error: code = Unknown desc = sending ssh key: operation error EC2 Instance Connect: SendSSHPublicKey, https response error StatusCode: 400, RequestID: <here-id>, EC2InstanceStateInvalidException: Unable to connect to the instance. EC2 Instance Connect is not supported on a terminated instance. (docker.go:779:0s)
Will be retried in 3s ...
ERROR: Failed to remove network for build
ERROR: Preparation failed: error during connect: Get "http://internel.tunnel.invalid/v1.24/info": preparing environment: getting instance connect info: refreshing connect info: rpc error: code = Unknown desc = sending ssh key: operation error EC2 Instance Connect: SendSSHPublicKey, https response error StatusCode: 400, RequestID: <here-id>, EC2InstanceStateInvalidException: Unable to connect to the instance. EC2 Instance Connect is not supported on a terminated instance. (docker.go:779:0s)

The issue occurs occasionally, and re-running the job typically resolves it.

@vpotap vpotap changed the title AWS Docker Autoscaler: Error with Docker Autoscaler Executor and EC2 Instance Connect AWS Docker Autoscaler: error with Docker Autoscaler Executor and EC2 Instance Connect Oct 22, 2024
@Tiduster
Copy link

I can confirm we have the same errors occasionally on our own setup.

The bug is on docker autoscaler side unfortunately, nothing that can be done from this module from my understanding of this issue.

Relevant issue on the official project repo: https://gitlab.com/gitlab-org/fleeting/plugins/aws/-/issues/52

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

2 participants