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

windows agent via SSH - Slave JVM has terminated. Exit code

    XMLWordPrintable

Details

    Description

      The jar file on the slave fails to start.

      I use "Launch Slave Agents via SSH"

      [04/06/18 15:32:05] [SSH] Opening SSH connection to 192.168.120.187:22.
      
      [04/06/18 15:32:06] [SSH] SSH host key matches key seen previously for this host. Connection will be allowed.
      
      [04/06/18 15:32:06] [SSH] Authentication successful.
      
      [04/06/18 15:32:06] [SSH] The remote user's environment is:
      
      [04/06/18 15:32:06] [SSH] Checking java version of java
      
      [04/06/18 15:32:06] [SSH] java -version returned 1.8.0_161.
      
      [04/06/18 15:32:06] [SSH] Starting sftp client.
      
      [04/06/18 15:32:06] [SSH] Copying latest slave.jar...
      
      [04/06/18 15:32:06] [SSH] Copied 762,466 bytes.
      
      Expanded the channel window size to 4MB
      
      [04/06/18 15:32:06] [SSH] Starting slave process: cd "D:\CI\jenkins" && java  -jar slave.jar
      
      <===[JENKINS REMOTING CAPACITY]===>Slave JVM has terminated. Exit code=0
      
      [04/06/18 15:32:06] Launch failed - cleaning up connection
      
      [04/06/18 15:32:06] [SSH] Connection closed.
      

      I use Manually trusted key Verification Strategy

      Require manual verification of initinial connection is OFF

      On windows, I use cygwin as bash, and openSSH from microsoft.

      Java version master:

      java version "1.8.0_144"
      Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
      Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
      

      Java version slave:

      java version "1.8.0_161"
      Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
      Java HotSpot(TM) Client VM (build 25.161-b12, mixed mode, sharing)
      

      The jenkins version is: Jenkins ver. 2.107.2

      Attachments

        Issue Links

          Activity

            zack Zack Snyder created issue -
            zack Zack Snyder made changes -
            Field Original Value New Value
            Summary windows agent via SSH windows agent via SSH - Slave JVM has terminated. Exit code
            waiting_417 Hao RUIJIE made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            waiting_417 Hao RUIJIE made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            ljader Łukasz Jąder made changes -
            Component/s ssh-plugin [ 16049 ]
            oleg_nenashev Oleg Nenashev made changes -
            Component/s _unsorted [ 19622 ]
            Component/s ssh-agent-plugin [ 17509 ]
            Component/s ssh-credentials-plugin [ 17424 ]
            Component/s ssh-slaves-plugin [ 15578 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Review [ 10005 ] In Progress [ 3 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            oleg_nenashev Oleg Nenashev made changes -
            Component/s remoting [ 15489 ]
            Component/s _unsorted [ 19622 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Devin Nusbaum [ dnusbaum ] Jeff Thompson [ jthompson ]
            oleg_nenashev Oleg Nenashev made changes -
            Component/s ssh-slaves-plugin [ 15578 ]
            zack Zack Snyder made changes -
            Description The jar file on the slave fails to start.


            I use *"Launch Slave Agents via SSH"*

            {noformat}
            [04/06/18 15:32:05] [SSH] Opening SSH connection to 192.168.120.187:22.

            [04/06/18 15:32:06] [SSH] SSH host key matches key seen previously for this host. Connection will be allowed.

            [04/06/18 15:32:06] [SSH] Authentication successful.

            [04/06/18 15:32:06] [SSH] The remote user's environment is:

            [04/06/18 15:32:06] [SSH] Checking java version of java

            [04/06/18 15:32:06] [SSH] java -version returned 1.8.0_161.

            [04/06/18 15:32:06] [SSH] Starting sftp client.

            [04/06/18 15:32:06] [SSH] Copying latest slave.jar...

            [04/06/18 15:32:06] [SSH] Copied 762,466 bytes.

            Expanded the channel window size to 4MB

            [04/06/18 15:32:06] [SSH] Starting slave process: cd "D:\CI\jenkins" && java -jar slave.jar

            <===[JENKINS REMOTING CAPACITY]===>Slave JVM has terminated. Exit code=0

            [04/06/18 15:32:06] Launch failed - cleaning up connection

            [04/06/18 15:32:06] [SSH] Connection closed.
            {noformat}

            I use *Manually trusted key Verification Strategy*

            Require manual verification of initinial connection is *OFF*

            On windows, I use cygwin as bash, and openSSH from microsoft.

            Java version master:
            {noformat}
            java version "1.8.0_144"
            Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
            Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
            {noformat}

            Java version slave:
            {noformat}
            java version "1.8.0_161"
            Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
            Java HotSpot(TM) Client VM (build 25.161-b12, mixed mode, sharing)
            {noformat}


            The jar file on the slave fails to start.


            I use *"Launch Slave Agents via SSH"*

            {noformat}
            [04/06/18 15:32:05] [SSH] Opening SSH connection to 192.168.120.187:22.

            [04/06/18 15:32:06] [SSH] SSH host key matches key seen previously for this host. Connection will be allowed.

            [04/06/18 15:32:06] [SSH] Authentication successful.

            [04/06/18 15:32:06] [SSH] The remote user's environment is:

            [04/06/18 15:32:06] [SSH] Checking java version of java

            [04/06/18 15:32:06] [SSH] java -version returned 1.8.0_161.

            [04/06/18 15:32:06] [SSH] Starting sftp client.

            [04/06/18 15:32:06] [SSH] Copying latest slave.jar...

            [04/06/18 15:32:06] [SSH] Copied 762,466 bytes.

            Expanded the channel window size to 4MB

            [04/06/18 15:32:06] [SSH] Starting slave process: cd "D:\CI\jenkins" && java -jar slave.jar

            <===[JENKINS REMOTING CAPACITY]===>Slave JVM has terminated. Exit code=0

            [04/06/18 15:32:06] Launch failed - cleaning up connection

            [04/06/18 15:32:06] [SSH] Connection closed.
            {noformat}

            I use *Manually trusted key Verification Strategy*

            Require manual verification of initinial connection is *OFF*

            On windows, I use cygwin as bash, and openSSH from microsoft.

            Java version master:
            {noformat}
            java version "1.8.0_144"
            Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
            Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
            {noformat}

            Java version slave:
            {noformat}
            java version "1.8.0_161"
            Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
            Java HotSpot(TM) Client VM (build 25.161-b12, mixed mode, sharing)
            {noformat}

            The jenkins version is: Jenkins ver. 2.107.2
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Jeff Thompson [ jthompson ] Ivan Fernandez Calvo [ ifernandezcalvo ]
            oleg_nenashev Oleg Nenashev made changes -
            Component/s remoting [ 15489 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels remoting
            zack Zack Snyder made changes -
            Attachment config.zip [ 42189 ]
            zack Zack Snyder made changes -
            Attachment image-2018-04-18-11-55-31-400.png [ 42209 ]
            zack Zack Snyder made changes -
            Attachment image-2018-04-18-11-55-42-400.png [ 42210 ]
            zack Zack Snyder made changes -
            Attachment config.zip [ 42189 ]
            zack Zack Snyder made changes -
            Attachment config.xml..zip [ 42211 ]
            zack Zack Snyder made changes -
            Attachment config.xml..zip [ 42211 ]
            zack Zack Snyder made changes -
            Attachment config.xml.zip [ 42212 ]
            ifernandezcalvo Ivan Fernandez Calvo made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            zack Zack Snyder made changes -
            Attachment prefix_output.txt [ 42251 ]
            ifernandezcalvo Ivan Fernandez Calvo made changes -
            Resolution Not A Defect [ 7 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            ifernandezcalvo Ivan Fernandez Calvo made changes -
            Link This issue is related to JENKINS-42856 [ JENKINS-42856 ]

            People

              ifernandezcalvo Ivan Fernandez Calvo
              zack Zack Snyder
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: