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

Jenkins JIRA | Damien Nozay | 3 years ago
  1. 0

    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. ------

    Jenkins JIRA | 3 years ago | Damien Nozay
    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
  2. 0

    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. ------

    Jenkins JIRA | 3 years ago | Damien Nozay
    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
  3. 0

    Master - Slave | Does not want master to sftp slave.jar

    Google Groups | 4 years ago | ilikeflex
    hudson.util.IOException2: Could not copy slave.jar to slave
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Failed to detect the environment for automatic JDK installation

    Google Groups | 5 years ago | Anne Stellingwerf
    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, /opt/jenkins/jdk/bin/java], and we also failed to install JDK as a fallback
  6. 0

    User list for the Hudson continuous build server.

    gmane.org | 5 months ago
    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, C:\hudson/jdk/bin/java], and we also failed to install JDK as a fallback

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Failed to run 'uname' to obtain the environment

      at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK()
    2. hudson.plugins.sshslaves
      SSHLauncher.launch
      1. hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:727)
      2. hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:655)
      3. hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:593)
      3 frames
    3. Hudson
      SlaveComputer$1.call
      1. hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:228)
      1 frame
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:701)
      5 frames