This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Critical
    • Component/s: core
    • Environment:
      Jenkins 2.150 linux master, Linux slave. Java version 1.8.0_181 on both master and agent.

      I had launched a linux slave and attached it to the master without any issues last week. As of today the agent is disconnected. 

      This block of error is from the log on the master -

      INFO: Accepted JNLP4-connect connection #2 from /10.0.2.47:52110
      Nov 05, 2018 10:22:03 PM jenkins.slaves.DefaultJnlpSlaveReceiver channelClosed
      WARNING: IOHub#1: Worker[channel:java.nio.channels.SocketChannel[connected local=/10.0.2.49:38237 remote=10.0.2.47/10.0.2.47:52110]] / Computer.threadPoolForRemoting [#18] for GAIA_SLAVE_USE1 terminated
      java.nio.channels.ClosedChannelException
              at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
              at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:142)
              at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795)
              at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
              at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

      The agent log has this information, similar to the above error 

      JNLP agent connected from 10.0.2.47/10.0.2.47
      Remoting version: 3.27
      This is a Unix agent
      Agent successfully connected and online
      ERROR: Connection terminated
      java.nio.channels.ClosedChannelException
      	at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
      	at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:142)
      	at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      Manually running the command starts service, and agent is connected to the master but the process just hangs....does not exit gracefully after completion. As soon as I close the ssh session the slave gets disconnected.

      java -jar agent.jar -jnlpUrl https://jenkins-URL/computer/XYZ/slave-agent.jnlp -secret XYZ -workDir "/home/jenkins"
      

      Any help would be appreciated.

            Assignee:
            Unassigned
            Reporter:
            Pragya Jaiswal
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: