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

ssh slaves can't find java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • ssh-slaves-plugin
    • None
    • slave:

      (master has the same OS & configuration)

      jenkins version 1.549
      ssh-slaves version 1.5
      I haven't installed any plugins or created any job yet.

      snip from my config.xml
      ------
      <slaves>
      <slave>
      <name>jenkins-slave1.prod</name>
      <description></description>
      <remoteFS>/zfs-data/jenkins</remoteFS>
      <numExecutors>4</numExecutors>
      <mode>NORMAL</mode>
      <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
      <launcher class="hudson.plugins.sshslaves.SSHLauncher" plugin="ssh-slaves@1.5">
      <host>jenkins-slave1.[REDACTED].com</host>
      <port>22</port>
      <credentialsId>[REDACTED]</credentialsId>
      </launcher>
      <label>linux centos slave</label>
      <nodeProperties/>
      <userId>damien</userId>
      </slave>
      </slaves>
      ------

      I created a slave, and I am trying to connect it.
      This is a brand new installation.

      Here is the info on the slave:
      ------
      [root@jenkins-slave1 ~]# uname -a
      Linux jenkins-slave1.[REDACTED].com 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
      [root@jenkins-slave1 ~]# /usr/bin/java -version
      java version "1.6.0_30"
      OpenJDK Runtime Environment (IcedTea6 1.13.1) (rhel-3.1.13.1.el6_5-x86_64)
      OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
      ------

      however when trying to connect the node it cannot find java:
      ------
      [01/31/14 11:11:58] [SSH] Opening SSH connection to jenkins-slave1.[REDACTED].com:22.
      [01/31/14 11:11:59] [SSH] Authentication successful.
      [01/31/14 11:11:59] [SSH] The remote users environment is:
      [01/31/14 11:11:59] [SSH] Checking java version of java
      Couldn't figure out the Java version of java

      [01/31/14 11:11:59] [SSH] Checking java version of /usr/bin/java
      Couldn't figure out the Java version of /usr/bin/java

      [01/31/14 11:11:59] [SSH] Checking java version of /usr/java/default/bin/java
      Couldn't figure out the Java version of /usr/java/default/bin/java

      [01/31/14 11:11:59] [SSH] Checking java version of /usr/java/latest/bin/java
      Couldn't figure out the Java version of /usr/java/latest/bin/java

      [01/31/14 11:11:59] [SSH] Checking java version of /usr/local/bin/java
      Couldn't figure out the Java version of /usr/local/bin/java

      [01/31/14 11:11:59] [SSH] Checking java version of /usr/local/java/bin/java
      Couldn't figure out the Java version of /usr/local/java/bin/java

      [01/31/14 11:11:59] [SSH] Checking java version of /zfs-data/jenkins/jdk/bin/java
      Couldn't figure out the Java version of /zfs-data/jenkins/jdk/bin/java

      hudson.util.IOException2: Could not find any known supported java version in [java, /usr/bin/java, /usr/java/default/bin/java, /usr/java/latest/bin/java, /usr/local/bin/java, /usr/local/java/bin/java, /zfs-data/jenkins/jdk/bin/java], and we also failed to install JDK as a fallback
      at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:657)
      at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:593)
      at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:228)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:701)
      Caused by: java.io.IOException: Failed to run 'uname' to obtain the environment
      at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:727)
      at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:655)
      ... 7 more
      [01/31/14 11:11:59] [SSH] Connection closed.
      ------

            kohsuke Kohsuke Kawaguchi
            dnozay Damien Nozay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: