-
Notifications
You must be signed in to change notification settings - Fork 88
Compute instance getting terminated randomly with message Agent was removed #508
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
Comments
The plugin has a background job called CleanLostNodesWork that runs hourly. It checks GCP VMs tagged with the Jenkisn GCE cloud's If you clone your Jenkins controller (e.g., for testing environment or staging environment) there is chance the This problem has been reported before, debugged as to occur when multiple Jenkins controllers share the same GCE cloud If that is the case, then you will need to change the
AFAIK this Reference: GitHub issue comment, also see follow up comments from there. Questions to investigate:
|
If the problem is indeed multiple controllers having same |
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Controller OS: Linux - 6.1.0-22-amd64
Agent is Debian 12 based.
Reproduction steps
Create a pipeline job which runs a build job in a compute instance provisioned using GCE plugin. The build job pipeline contains multiple stages and takes ~ 2 hours to complete.
Expected Results
Pipeline should run to completion and build should be marked as successful.
Actual Results
Pipeline fails with the below error:
[2025-01-14T11:43:41.807Z] [ 85%] Building CXX object src/external-repos/mf/NBI/Netconf/CMakeFiles/netc.dir/src/rpc/CloseSessionRpc.cpp.o
[2025-01-14T11:43:43.380Z] Cannot contact gx-dcc-pool-govz8e: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
[2025-01-14T11:44:18.143Z] Agent gx-dcc-pool-govz8e was deleted; cancelling node body
[2025-01-14T11:44:18.143Z] Could not connect to gx-dcc-pool-govz8e to send interrupt signal to process
[Pipeline] End of Pipeline
Agent was removed
org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 9cf2a749-60ea-47e0-be4f-9d69773b85fb
Anything else?
No response
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: