我试图向我的jenkins master发起一个新的奴隶,我得到以下错误:
Linux ip-172-31-40-67 4.9.58-18.55.amzn1.x86_64 #1 SMP Thu Nov 2 04:38:47
UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Installing JDK jdk-8u144-oth-JPR
Downloading JDK from http://download.oracle.com/otn/java/jdk/8u144-
b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz
java.io.IOException: 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, /home/ec2-user/jdk/bin/java, /usr/bin/java/bin/java], and we also failed to install JDK as a fallback
at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:918)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:809)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:793)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Unable to find the login form
at hudson.tools.JDKInstaller.locate(JDKInstaller.java:465)
at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:1039)
at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:916)
... 6 more
[11/15/17 10:10:09] Launch failed - cleaning up connection
我认为主要问题是: 引起:java.io.IOException:无法找到登录表单。 但是我似乎无法在网上找到关于这个问题的任何内容.. 我在奴隶上安装了JDK和JRE但是当我启动奴隶时它仍然试图下载JDK,我不知道为什么......
答案 0 :(得分:3)
这与此有关 New Oracle website prevents the JDKInstaller to download binaries from archives。 Oracle不久前改变了他们的网站。
您必须下载Java并在您的slave上单独安装它。 (例如: sudo apt-get install default-jre )
这样就可以了:-D。