After creating a pod in the K8s agent cluster, the following error occurs when sending a command to the pod. Could you look into it?
- Frequency of occurrence: About 1 out of 50 times.
- Jenkins version : 2.361.1
- K8s version : 1.24.3
- fail log
20:15:14 ERROR: Execution failed
20:15:14 java.lang.InterruptedException
20:15:14 at java.base/java.lang.Object.wait(Native Method)
20:15:14 at hudson.remoting.Request.call(Request.java:177)
20:15:14 at hudson.remoting.Channel.call(Channel.java:999)
20:15:14 at hudson.Launcher$RemoteLauncher.launch(Launcher.java:1124)
20:15:14 at hudson.Launcher$ProcStarter.start(Launcher.java:509)
20:15:14 at org.jenkinsci.plugins.durabletask.BourneShellScript.launchWithCookie(BourneShellScript.java:176)
20:15:14 at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:132)
20:15:14 at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.start(DurableTaskStep.java:326)
20:15:14 at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:322)
20:15:14 at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:196)
20:15:14 at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)
20:15:14 at jdk.internal.reflect.GeneratedMethodAccessor20659.invoke(Unknown Source)
20:15:14 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
20:15:14 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
20:15:14 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
20:15:14 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
20:15:14 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
20:15:14 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
20:15:14 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
20:15:14 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
20:15:14 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:180)
20:15:14 at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
20:15:14 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:162)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:178)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:182)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
20:15:14 at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
20:15:14 Caused: java.io.InterruptedIOException
20:15:14 at hudson.Launcher$RemoteLauncher.launch(Launcher.java:1126)
20:15:14 at hudson.Launcher$ProcStarter.start(Launcher.java:509)
20:15:14 at org.jenkinsci.plugins.durabletask.BourneShellScript.launchWithCookie(BourneShellScript.java:176)
20:15:14 at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:132)
20:15:14 at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.start(DurableTaskStep.java:326)
20:15:14 at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:322)
20:15:14 at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:196)
20:15:14 at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)
20:15:14 at jdk.internal.reflect.GeneratedMethodAccessor20659.invoke(Unknown Source)
20:15:14 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
20:15:14 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
20:15:14 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
20:15:14 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
20:15:14 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
20:15:14 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
20:15:14 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
20:15:14 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
20:15:14 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:180)
20:15:14 at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
20:15:14 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:162)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:178)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:182)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
20:15:14 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:152)
20:15:14 at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
20:15:14 at spy_action_execute.executeScript(spy_action_execute.groovy:102)
20:15:14 at ___cps.transform___(Native Method)