Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69241

Agent disconnects randomly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • remoting
    • None
    • Agent OS: Windows server 2022
      Jenkins Version: 2.235.5

      We noticed that agents disconnected from master randomnly. Below are the agent logs

      Agent Logs:

      Jul 26, 2022 11:00:08 PM hudson.remoting.UserRequest perform
      WARNING: LinkageError while performing UserRequest:UserRPCRequest:hudson.Launcher$RemoteProcess.join[](7)
      java.lang.NoClassDefFoundError: org/jvnet/winp/CtrlCSender
          at org.jvnet.winp.Native.sendCtrlC(Native.java:89)
          at org.jvnet.winp.WinProcess.sendCtrlC(WinProcess.java:93)
          at hudson.util.ProcessTree$WindowsOSProcess.killSoftly(ProcessTree.java:565)
          at hudson.util.ProcessTree$WindowsOSProcess.killRecursively(ProcessTree.java:544)
          at hudson.util.ProcessTree.killAll(ProcessTree.java:182)
          at hudson.Proc$LocalProc.destroy(Proc.java:387)
          at hudson.Proc$LocalProc.join(Proc.java:360)
          at hudson.Launcher$RemoteLaunchCallable$1.join(Launcher.java:1321)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:931)
          at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:905)
          at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:857)
          at hudson.remoting.UserRequest.perform(UserRequest.java:211)
          at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          at hudson.remoting.Request$2.run(Request.java:369)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117)
          at java.lang.Thread.run(Thread.java:750)

       

      Jenkins console logs:

      23:00:18 FATAL: command execution failed
      23:00:18 java.nio.channels.ClosedChannelException
      23:00:18     at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
      23:00:18     at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:179)
      23:00:18     at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795)
      23:00:18     at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      23:00:18     at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
      23:00:18     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      23:00:18     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      23:00:18     at java.lang.Thread.run(Thread.java:750)
      23:00:18 Caused: java.io.IOException: Backing channel 'JNLP4-connect connection from xxxxx/x.x.x.x:xxx' is disconnected.
      23:00:18     at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:216)
      23:00:18     at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285)
      23:00:18     at com.sun.proxy.$Proxy69.isAlive(Unknown Source)
      23:00:18     at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1147)
      23:00:18     at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1139)
      23:00:18     at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:155)
      23:00:18     at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109)
      23:00:18     at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
      23:00:18     at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      23:00:18     at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
      23:00:18     at hudson.model.Build$BuildExecution.build(Build.java:206)
      23:00:18     at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      23:00:18     at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      23:00:18     at hudson.model.Run.execute(Run.java:1880)
      23:00:18     at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      23:00:18     at hudson.model.ResourceController.execute(ResourceController.java:97)
      23:00:18     at hudson.model.Executor.run(Executor.java:428)
      23:00:18 FATAL: Unable to delete script file C:\Users****\AppData\Local\Temp\jenkins1385646636100878392.sh
      23:00:18 java.nio.channels.ClosedChannelException
      23:00:18     at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
      23:00:18     at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:179)
      23:00:18     at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795)
      23:00:18     at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      23:00:18     at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
      23:00:18     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      23:00:18     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      23:00:18     at java.lang.Thread.run(Thread.java:750)
      23:00:18 Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@673a45a4:JNLP4-connect connection from xxxxx/x.x.x.x:xxx": Remote call on JNLP4-connect connection from xxxxx/x.x.x.x:xxx failed. The channel is closing down or has closed down
      23:00:18     at hudson.remoting.Channel.call(Channel.java:991)
      23:00:18     at hudson.FilePath.act(FilePath.java:1069)
      23:00:18     at hudson.FilePath.act(FilePath.java:1058)
      23:00:18     at hudson.FilePath.delete(FilePath.java:1543)
      23:00:18     at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:123)
      23:00:18     at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
      23:00:18     at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      23:00:18     at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
      23:00:18     at hudson.model.Build$BuildExecution.build(Build.java:206)
      23:00:18     at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      23:00:18     at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      23:00:18     at hudson.model.Run.execute(Run.java:1880)
      23:00:18     at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      23:00:18     at hudson.model.ResourceController.execute(ResourceController.java:97)
      23:00:18     at hudson.model.Executor.run(Executor.java:428)

       

      NOTE: Controller and agents are running in Windows

            Unassigned Unassigned
            mohanprasanthg Mohanprasanth G
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: