-
Notifications
You must be signed in to change notification settings - Fork 12
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
Pipeline was not running over EC2 Elastic Agent #20
Comments
Hi, |
I'm running into this as well, trying to figure out the cause. I have one pipeline working fine and one where the agent never seems to pick up the job and I can't figure out what's different. Same elastic profile. It starts the instance and the agent gets all the way to registering with the server and getting the cookie. After that, nothing and eventually the instance is torn down and another one started. |
One difference I note is that I see [Should Assign Work] Processing should assign work request for job messages from the plugin in the working pipeline but not for the non-working pipeline. |
Another difference -- the working pipeline was not in an environment and the non-working one is. Taking the non-working one out of an environment allowed it to work and the agent actually got the task scheduled to it. Still investigating, but this seems like a good clue. |
After more testing it seems pretty clear the issue is that pipelines in a GoCD Environment do not get scheduled when using this plugin. Simply taking the pipeline out of the Environment will work around the problem. I think this must be a bug in this plugin -- the ECS elastic plugin does not exhibit this behavior, for example. |
This plugin does not have GoCD environments feature implemented yet, it should not work. |
The solution to it is rather simple: in "elastic profile" tab add the following string to user data field |
I configured EC2 Elastic Agent plugin and attached with pipeline. Whenever I triggered pipeline, that plugin create EC2 instance and installed Elastic Agent in it but pipeline/jobs was not running and it kept showing unassigned agent and following logs even I found Elastic Agent name in Agent tab.
The text was updated successfully, but these errors were encountered: