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, /bin/java], and we also failed to install JDK as a fallback

Jenkins JIRA | Waldek M | 3 years ago
  1. 0

    I've seen the issue as resolved (at least twice), but it still occurs for me. Despite having Java binary on slave and master, the SSH Slave plugin fails to find Java version. Error log: ==================== [07/16/13 10:48:00] [SSH] Opening SSH connection to [...]:22. [07/16/13 10:48:00] [SSH] Authentication successful. [07/16/13 10:48:00] [SSH] The remote users environment is: [07/16/13 10:48:00] [SSH] Checking java version of java Couldn't figure out the Java version of java [07/16/13 10:48:00] [SSH] Checking java version of /usr/bin/java Couldn't figure out the Java version of /usr/bin/java [07/16/13 10:48:00] [SSH] Checking java version of /usr/java/default/bin/java Couldn't figure out the Java version of /usr/java/default/bin/java [07/16/13 10:48:00] [SSH] Checking java version of /usr/java/latest/bin/java Couldn't figure out the Java version of /usr/java/latest/bin/java [07/16/13 10:48:00] [SSH] Checking java version of /usr/local/bin/java Couldn't figure out the Java version of /usr/local/bin/java [07/16/13 10:48:00] [SSH] Checking java version of /usr/local/java/bin/java Couldn't figure out the Java version of /usr/local/java/bin/java [07/16/13 10:48:00] [SSH] Checking java version of /bin/java Couldn't figure out the Java version of /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, /bin/java], and we also failed to install JDK as a fallback at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:557) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:493) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Failed to detect the environment for automatic JDK installation. Please report this to jenkinsci-users@googlegroups.com: at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:654) at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:555) ... 7 more [07/16/13 10:48:00] [SSH] Connection closed.

    Jenkins JIRA | 3 years ago | Waldek M
    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, /bin/java], and we also failed to install JDK as a fallback
  2. 0

    I've seen the issue as resolved (at least twice), but it still occurs for me. Despite having Java binary on slave and master, the SSH Slave plugin fails to find Java version. Error log: ==================== [07/16/13 10:48:00] [SSH] Opening SSH connection to [...]:22. [07/16/13 10:48:00] [SSH] Authentication successful. [07/16/13 10:48:00] [SSH] The remote users environment is: [07/16/13 10:48:00] [SSH] Checking java version of java Couldn't figure out the Java version of java [07/16/13 10:48:00] [SSH] Checking java version of /usr/bin/java Couldn't figure out the Java version of /usr/bin/java [07/16/13 10:48:00] [SSH] Checking java version of /usr/java/default/bin/java Couldn't figure out the Java version of /usr/java/default/bin/java [07/16/13 10:48:00] [SSH] Checking java version of /usr/java/latest/bin/java Couldn't figure out the Java version of /usr/java/latest/bin/java [07/16/13 10:48:00] [SSH] Checking java version of /usr/local/bin/java Couldn't figure out the Java version of /usr/local/bin/java [07/16/13 10:48:00] [SSH] Checking java version of /usr/local/java/bin/java Couldn't figure out the Java version of /usr/local/java/bin/java [07/16/13 10:48:00] [SSH] Checking java version of /bin/java Couldn't figure out the Java version of /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, /bin/java], and we also failed to install JDK as a fallback at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:557) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:493) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Failed to detect the environment for automatic JDK installation. Please report this to jenkinsci-users@googlegroups.com: at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:654) at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:555) ... 7 more [07/16/13 10:48:00] [SSH] Connection closed.

    Jenkins JIRA | 3 years ago | Waldek M
    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, /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 detect the environment for automatic JDK installation. Please report this to jenkinsci-users@googlegroups.com:

      at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK()
    2. hudson.plugins.sshslaves
      SSHLauncher.launch
      1. hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:654)
      2. hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:555)
      3. hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:493)
      3 frames
    3. Hudson
      SlaveComputer$1.call
      1. hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230)
      1 frame
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      5. java.lang.Thread.run(Thread.java:662)
      5 frames