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

Stuck on waiting for an agent #253

Open
sweetfxv opened this issue Oct 5, 2023 · 1 comment
Open

Stuck on waiting for an agent #253

sweetfxv opened this issue Oct 5, 2023 · 1 comment

Comments

@sweetfxv
Copy link

sweetfxv commented Oct 5, 2023

Multiple stages from different pipelines that uses the same elastic-profile stuck on waiting for an agent.

The logs are:

[go] Received a request to create an agent for the job: [Prod-N/180/Build_Test_Push_Prod/2/Build_Test_Client_CF]
[go] No running instance(s) found to build the ECS Task to perform current job.
[go] The elastic agent profile is configured to run on a spot instance. Initiating steps to request for a spot instance.
[go] There is an open spot request matching the profile, not requesting for a new spot instance.
[go] Received a request to create an agent for the job: [Prod-N/180/Build_Test_Push_Prod/2/Build_Test_Client_CF]
[go] No running instance(s) found to build the ECS Task to perform current job.
[go] The elastic agent profile is configured to run on a spot instance. Initiating steps to request for a spot instance.
[go] There is an open spot request matching the profile, not requesting for a new spot instance.
[go] Received a request to create an agent for the job: [Prod-N/180/Build_Test_Push_Prod/2/Build_Test_Client_CF]
[go] No running instance(s) found to build the ECS Task to perform current job.
[go] The elastic agent profile is configured to run on a spot instance. Initiating steps to request for a spot instance.
[go] There is an open spot request matching the profile, not requesting for a new spot instance.
[go] Received a request to create an agent for the job: [Prod-N/180/Build_Test_Push_Prod/2/Build_Test_Client_CF]
[go] No running instance(s) found to build the ECS Task to perform current job.
[go] The elastic agent profile is configured to run on a spot instance. Initiating steps to request for a spot instance.
[go] There is an open spot request matching the profile, not requesting for a new spot instance.

GoCD version: 21.2.0
Plugin version: 7.2.1-278

@chadlwilson
Copy link
Member

And what is happening to the spot requests on AWS - were they fulfilled? Did the instances start up and join the cluster correctly? What do the logs from the instances tell you about whether they started correctly?

Basically, this is what you will see for a number of reasons, which basically means that an instance did not start and register with the cluster for an agent task to be assigned to it, either because the spot request was never fulfilled (no capacity) or a problem starting the instance with your chosen AMI, or a problem with the chosen AMI being able to register with the cluster (could be permissions/IAM roles or networking reasons)

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