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

windows slave disconnecting frequently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • remoting
    • None
    • JNLP4

      Hi Oleg,
       
      i have master jenkins server is Unix and configured slave windows VM. At the first time the slave was online and build went fine. If i starts next build the slave going offline it will never comes online.

      below command i have used to launch slave from slave machine.
       
      java -jar slave.jar -jnlpUrl <jenkinsmaster server url>/computer/<node name>/slave-agent.jnlp -secret <key> when i executes above command in cmd prompt i have observed below error. Sep 05, 2017 7:18:10 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Sep 05, 2017 7:18:10 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to <jenkins server name>:<port> Sep 05, 2017 7:18:10 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Trying protocol: JNLP4-connectit is not connecting.
      Here is the log at master server.
       
      Agent successfully connected and online
      ERROR: Connection terminated
      ESC[8mha:////4PlUa2TdwW9ojYPJb5Q+GzBDdkOY9xHSbx57494tban3AAAAWB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcIT
      RIIQMEMIIUFgAAckCEiWAAAAA=ESC[0mjava.io.IOException: Connection reset by peer
              at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
              at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
              at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
              at sun.nio.ch.IOUtil.read(IOUtil.java:197)
              at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
              at org.jenkinsci.remoting.nio.FifoBuffer$Pointer.receive(FifoBuffer.java:142)
              at org.jenkinsci.remoting.nio.FifoBuffer.receive(FifoBuffer.java:359)
              at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:564)
      Caused: java.io.IOException: Connection aborted: org.jenkinsci.remoting.nio.NioChannelHub$MonoNioTransport@1e1f6888[name=Channel to /172.22.180.249]
              at org.jenkinsci.remoting.nio.NioChannelHub$NioTransport.abort(NioChannelHub.java:210)
              at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:635)
              at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
       
      Below is the slave log.
      Sep 06, 2017 3:46:08 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to <jenkins master server>:<port>
      Sep 06, 2017 3:46:08 AM hudson.remoting.jnlp.Main$CuiListener error
      SEVERE: The server rejected the connection: None of the protocols were accepted
      java.lang.Exception: The server rejected the connection: None of the protocols were accepted
      at hudson.remoting.Engine.onConnectionRejected(Engine.java:286)
      at hudson.remoting.Engine.run(Engine.java:262)

            Unassigned Unassigned
            harishk Harish Kenchanagoudar
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: