You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins deployed in Kubernetes v1.29.6-gke.1254000 with the official Helm chart, currently still using 2.462.1-lts-jdk17
Latest actual version of the plugin is being used google-compute-engine:4.575.v6969b_7c435eb_
Reproduction steps
Recently, we have many builds that fail like this:
11:24:18 Cannot contact jenkins-gce-dynamic-agent-jdk21-01b4ii: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@4a81fa50:jenkins-gce-dynamic-agent-jdk21-01b4ii": Remote call on jenkins-gce-dynamic-agent-jdk21-01b4ii failed. The channel is closing down or has closed down
11:25:13 Agent jenkins-gce-dynamic-agent-jdk21-01b4ii was deleted; cancelling node body
11:25:13 Could not connect to jenkins-gce-dynamic-agent-jdk21-01b4ii to send interrupt signal to process
11:25:13 [Pipeline] }
11:25:13 [Pipeline] // configFileProvider
11:25:13 [Pipeline] }
11:25:13 [Pipeline] // stage
11:25:13 [Pipeline] stage
11:25:13 [Pipeline] { (Contract Test)
11:25:13 Stage "Contract Test" skipped due to earlier failure(s)
11:25:13 [Pipeline] getContext
11:25:13 [Pipeline] }
11:25:13 [Pipeline] // stage
11:25:13 [Pipeline] stage
11:25:13 [Pipeline] { (Version update)
11:25:13 Stage "Version update" skipped due to earlier failure(s)
11:25:13 [Pipeline] getContext
11:25:13 [Pipeline] }
11:25:13 [Pipeline] // stage
11:25:13 [Pipeline] stage
11:25:13 [Pipeline] { (SonarQube)
11:25:13 Stage "SonarQube" skipped due to earlier failure(s)
11:25:13 [Pipeline] getContext
11:25:13 [Pipeline] }
11:25:13 [Pipeline] // stage
11:25:13 [Pipeline] stage
11:25:13 [Pipeline] { (Build Image)
11:25:13 Stage "Build Image" skipped due to earlier failure(s)
11:25:13 [Pipeline] getContext
11:25:13 [Pipeline] }
11:25:14 [Pipeline] // stage
11:25:14 [Pipeline] stage
11:25:14 [Pipeline] { (Create Branch in DEV Repo)
11:25:14 Stage "Create Branch in DEV Repo" skipped due to earlier failure(s)
11:25:14 [Pipeline] getContext
11:25:14 [Pipeline] }
11:25:14 [Pipeline] // stage
11:25:14 [Pipeline] stage
11:25:14 [Pipeline] { (Update DEV Main Branch)
11:25:14 Stage "Update DEV Main Branch" skipped due to earlier failure(s)
11:25:14 [Pipeline] getContext
11:25:14 [Pipeline] }
11:25:14 [Pipeline] // stage
11:25:14 [Pipeline] stage
11:25:14 [Pipeline] { (Declarative: Post Actions)
11:25:14 [Pipeline] junit
11:25:14 Error when executing always post condition:
11:25:14 Also: hudson.model.Computer$TerminationRequest: Termination requested at Tue Oct 08 09:25:13 UTC 2024 by Thread[Computer.threadPoolForRemoting [#17367],5,main] [id=1943946]
11:25:14 at hudson.model.Computer.recordTermination(Computer.java:242)
11:25:14 at hudson.slaves.AbstractCloudSlave.terminate(AbstractCloudSlave.java:85)
11:25:14 at PluginClassLoader for google-compute-engine//com.google.jenkins.plugins.computeengine.ComputeEngineComputerLauncher.launch(ComputeEngineComputerLauncher.java:220)
11:25:14 at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:297)
11:25:14 at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
11:25:14 at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80)
11:25:14 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
11:25:14 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
11:25:14 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
11:25:14 Also: hudson.model.Computer$TerminationRequest: Termination requested at Tue Oct 08 09:25:13 UTC 2024 by Thread[Computer.threadPoolForRemoting [#17367],5,main] [id=1943946]
11:25:14 at hudson.model.Computer.recordTermination(Computer.java:242)
11:25:14 at jenkins.model.Nodes$5.run(Nodes.java:283)
11:25:14 at hudson.model.Queue._withLock(Queue.java:1409)
11:25:14 at hudson.model.Queue.withLock(Queue.java:1283)
11:25:14 at jenkins.model.Nodes.removeNode(Nodes.java:278)
11:25:14 at jenkins.model.Jenkins.removeNode(Jenkins.java:2257)
11:25:14 at hudson.slaves.AbstractCloudSlave.terminate(AbstractCloudSlave.java:91)
11:25:14 at PluginClassLoader for google-compute-engine//com.google.jenkins.plugins.computeengine.ComputeEngineComputerLauncher.launch(ComputeEngineComputerLauncher.java:220)
11:25:14 at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:297)
11:25:14 at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
11:25:14 at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80)
11:25:14 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
11:25:14 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
11:25:14 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
11:25:14 Also: hudson.model.Computer$TerminationRequest: Termination requested at Tue Oct 08 09:25:13 UTC 2024 by Thread[Computer.threadPoolForRemoting [#17367],5,main] [id=1943946]
11:25:14 at hudson.model.Computer.recordTermination(Computer.java:242)
11:25:14 at hudson.model.Computer.disconnect(Computer.java:512)
11:25:14 at hudson.slaves.SlaveComputer.disconnect(SlaveComputer.java:816)
11:25:14 at jenkins.model.Nodes$5.run(Nodes.java:284)
11:25:14 at hudson.model.Queue._withLock(Queue.java:1409)
11:25:14 at hudson.model.Queue.withLock(Queue.java:1283)
11:25:14 at jenkins.model.Nodes.removeNode(Nodes.java:278)
11:25:14 at jenkins.model.Jenkins.removeNode(Jenkins.java:2257)
11:25:14 at hudson.slaves.AbstractCloudSlave.terminate(AbstractCloudSlave.java:91)
11:25:14 at PluginClassLoader for google-compute-engine//com.google.jenkins.plugins.computeengine.ComputeEngineComputerLauncher.launch(ComputeEngineComputerLauncher.java:220)
11:25:14 at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:297)
11:25:14 at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
11:25:14 at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80)
11:25:14 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
11:25:14 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
11:25:14 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
11:25:14 Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 84dc4246-a48a-4e8c-b0a2-79235c904646
11:25:14 org.jenkinsci.plugins.workflow.support.steps.AgentOfflineException: Unable to create live FilePath for jenkins-gce-dynamic-agent-jdk21-01b4ii; jenkins-gce-dynamic-agent-jdk21-01b4ii was marked offline: Node is being removed
11:25:14 at PluginClassLoader for workflow-durable-task-step//org.jenkinsci.plugins.workflow.support.steps.ExecutorStepDynamicContext$FilePathTranslator.get(ExecutorStepDynamicContext.java:188)
11:25:14 at PluginClassLoader for workflow-durable-task-step//org.jenkinsci.plugins.workflow.support.steps.ExecutorStepDynamicContext$FilePathTranslator.get(ExecutorStepDynamicContext.java:160)
11:25:14 at PluginClassLoader for workflow-durable-task-step//org.jenkinsci.plugins.workflow.support.steps.ExecutorStepDynamicContext$Translator.get(ExecutorStepDynamicContext.java:153)
11:25:14 at PluginClassLoader for workflow-durable-task-step//org.jenkinsci.plugins.workflow.support.steps.ExecutorStepDynamicContext$FilePathTranslator.get(ExecutorStepDynamicContext.java:170)
11:25:14 at PluginClassLoader for workflow-durable-task-step//org.jenkinsci.plugins.workflow.support.steps.ExecutorStepDynamicContext$FilePathTranslator.get(ExecutorStepDynamicContext.java:160)
11:25:14 at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.DynamicContext$Typed.get(DynamicContext.java:95)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.ContextVariableSet.get(ContextVariableSet.java:139)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsThread.getContextVariable(CpsThread.java:135)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsStepContext.doGet(CpsStepContext.java:297)
11:25:14 at PluginClassLoader for workflow-support//org.jenkinsci.plugins.workflow.support.DefaultStepContext.get(DefaultStepContext.java:75)
11:25:14 at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.StepDescriptor.checkContextAvailability(StepDescriptor.java:263)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:300)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:196)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)
11:25:14 at jdk.internal.reflect.GeneratedMethodAccessor533.invoke(Unknown Source)
11:25:14 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:25:14 at java.base/java.lang.reflect.Method.invoke(Unknown Source)
11:25:14 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
11:25:14 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
11:25:14 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
11:25:14 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
11:25:14 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
11:25:14 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
11:25:14 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
11:25:14 at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:180)
11:25:14 at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
11:25:14 at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:163)
11:25:14 at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:178)
11:25:14 at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:182)
11:25:14 at PluginClassLoader for script-security//org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
11:25:14 at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.LoggingInvoker.methodCall(LoggingInvoker.java:105)
11:25:14 at WorkflowScript.run(WorkflowScript:252)
11:25:14 at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.delegateAndExecute(ModelInterpreter.groovy:138)
11:25:14 at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:768)
11:25:14 at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(ModelInterpreter.groovy:402)
11:25:14 at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(ModelInterpreter.groovy:400)
11:25:14 at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:767)
11:25:14 at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2125)
11:25:14 at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2110)
11:25:14 at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2151)
11:25:14 at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:757)
11:25:14 at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy)
11:25:14 at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executePostBuild(ModelInterpreter.groovy:735)
11:25:14 at ___cps.transform___(Native Method)
11:25:14 at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:90)
11:25:14 at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:116)
11:25:14 at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:85)
11:25:14 at jdk.internal.reflect.GeneratedMethodAccessor427.invoke(Unknown Source)
11:25:14 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
11:25:14 at java.base/java.lang.reflect.Method.invoke(Unknown Source)
11:25:14 at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
11:25:14 at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
11:25:14 at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.Next.step(Next.java:83)
11:25:14 at PluginClassLoader for workflow-cps//com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:147)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:17)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:49)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:180)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:423)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:331)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:295)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$wrap$4(CpsVmExecutorService.java:136)
11:25:14 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
11:25:14 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
11:25:14 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
11:25:14 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
11:25:14 at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)
11:25:14 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
11:25:14 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
11:25:14 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
11:25:14 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:53)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:50)
11:25:14 at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136)
11:25:14 at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275)
11:25:14 at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$categoryThreadFactory$0(CpsVmExecutorService.java:50)
11:25:14 at java.base/java.lang.Thread.run(Unknown Source)
11:25:14
11:25:14 [Pipeline] }
11:25:14 [Pipeline] // stage
11:25:14 [Pipeline] }
11:25:14 [Pipeline] // timeout
11:25:14 [Pipeline] }
11:25:14 [Pipeline] // withEnv
11:25:14 [Pipeline] }
11:25:14 [Pipeline] // node
11:25:14 [Pipeline] End of Pipeline
11:25:14 Agent was removed
11:25:14 org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 33a2b86d-db77-4231-a2a9-3e12f3cd4f30
11:25:14 [GitLab Pipeline Status] Notifying branch build status: CANCELED ...(omitted) #5: Something is wrong with the build of this commit.
11:25:15 [GitLab Pipeline Status] Notified
11:25:15 Finished: ABORTED
Builds to finish to completion without being abruptly interrupted.
Actual Results
Builds are left dangling in the middle of it after the issue of the Agent deletion - without any reason - is done.
Anything else?
I tried setting the node timeout period to 10 minutes, but this is not happening, because in the case I posted, it was only after 3 minutes that the ServiceAccount was used to execute the deletion from the plugin itself.
The text was updated successfully, but these errors were encountered:
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins deployed in Kubernetes
v1.29.6-gke.1254000
with the official Helm chart, currently still using2.462.1-lts-jdk17
Latest actual version of the plugin is being used
google-compute-engine:4.575.v6969b_7c435eb_
Reproduction steps
Recently, we have many builds that fail like this:
And in Google Logging this is what I can see:
Expected Results
Builds to finish to completion without being abruptly interrupted.
Actual Results
Builds are left dangling in the middle of it after the issue of the Agent deletion - without any reason - is done.
Anything else?
I tried setting the node timeout period to 10 minutes, but this is not happening, because in the case I posted, it was only after 3 minutes that the ServiceAccount was used to execute the deletion from the plugin itself.
The text was updated successfully, but these errors were encountered: