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

slave.jar gets deleted and slave gets disconnected

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • ssh-slaves-plugin
    • None

      We are running into a strange issue where the linux slaves would disconnect intermittently (happening at least once a day) with the below error:

      {{{quote}Slave JVM has terminated. Exit code=0 ERROR: [09/11/17 08:00:37] [SSH] Error deleting file. ha:////4BJzQ5KK22T5KWhPnJrxKFXkoZSAiG2JwcOgVPNHFspbAAAAVx+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0mV3NWzufebKBsTA0NFEYMUmgZnCA1SyAABjCCFBQC2xNaiYAAAAA==com.trilead.ssh2.SFTPException: No such file (SSH_FX_NO_SUCH_FILE: A reference was made to a file which does not exist.) at com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555) at com.trilead.ssh2.SFTPv3Client.rm(SFTPv3Client.java:973) at hudson.plugins.sshslaves.SSHLauncher$3.run(SSHLauncher.java:1255) 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) [09/11/17 08:00:37] [SSH] Connection closed.{quote} }}

      Jenkins version = 2.60.3
      SSH Slave Plugin = 1.23
      JDK = 1.8
      Master OS = CentOS 6
      Slave OS = CentOS 7

      Reference issue on github - https://github.com/jenkinsci/ssh-slaves-plugin/issues/69

          [JENKINS-47401] slave.jar gets deleted and slave gets disconnected

          Ankit Gupta added a comment - - edited

          kohsuke - Could you please provide any update here. This is happening on daily basis now. Logs show:

          INFO: LogParserThread: Start parsing log part 0
          Dec 15, 2017 12:01:43 AM hudson.plugins.logparser.LogParserThread getLineStatuses
          INFO: LogParserThread: Done parsing log part 0
          channel stopped
          Connection terminated
          Slave JVM has terminated. Exit code=0
          ERROR: [12/15/17 01:20:18] [SSH] Error deleting file.
          ha:////4BJzQ5KK22T5KWhPnJrxKFXkoZSAiG2JwcOgVPNHFspbAAAAVx+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0mV3NWzufebKBsTA0NFEYMUmgZnCA1SyAABjCCFBQC2xNaiYAAAAA==com.trilead.ssh2.SFTPException: No such file (SSH_FX_NO_SUCH_FILE: A reference was made to a file which does not exist.)
          at com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555)
          at com.trilead.ssh2.SFTPv3Client.rm(SFTPv3Client.java:973)
          at hudson.plugins.sshslaves.SSHLauncher$4.run(SSHLauncher.java:1404)
          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)
          [12/15/17 01:20:18] [SSH] Connection closed.

          Ankit Gupta added a comment - - edited kohsuke - Could you please provide any update here. This is happening on daily basis now. Logs show: INFO: LogParserThread: Start parsing log part 0 Dec 15, 2017 12:01:43 AM hudson.plugins.logparser.LogParserThread getLineStatuses INFO: LogParserThread: Done parsing log part 0 channel stopped Connection terminated Slave JVM has terminated. Exit code=0 ERROR: [12/15/17 01:20:18] [SSH] Error deleting file. ha:////4BJzQ5KK22T5KWhPnJrxKFXkoZSAiG2JwcOgVPNHFspbAAAAVx+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0mV3NWzufebKBsTA0NFEYMUmgZnCA1SyAABjCCFBQC2xNaiYAAAAA==com.trilead.ssh2.SFTPException: No such file (SSH_FX_NO_SUCH_FILE: A reference was made to a file which does not exist.) at com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555) at com.trilead.ssh2.SFTPv3Client.rm(SFTPv3Client.java:973) at hudson.plugins.sshslaves.SSHLauncher$4.run(SSHLauncher.java:1404) 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) [12/15/17 01:20:18] [SSH] Connection closed.

            kohsuke Kohsuke Kawaguchi
            agupta Ankit Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: