jenkins - 无法在 Jenkins 中启动新的奴隶

标签 jenkins java jenkins-slave

我试图向我的 Jenkins 主人启动一个新的奴隶,但我收到以下错误:

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,我不知道为什么..

最佳答案

这与 New Oracle website prevents the JDKInstaller to download binaries from archives 。 甲骨文不久前更改了他们的网站。

您必须下载 Java 并将其单独安装在您的从属设备上。 (例如:sudo apt-get install default-jre)

这样就可以了:-D。

关于jenkins - 无法在 Jenkins 中启动新的奴隶,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47305078/

相关文章:

github - 如何禁用对 Jenkins 管道中某些凭据的访问

java - 如果 Camel 关闭,我如何检查 Spring-DSL?

jenkins - 为什么 Jenkins 在启动代理时说 "Server rejected the 1 private key(s)"?

maven - 如何配置 pom.xml 文件以使用 Nexus Repository manager

java - Gradle 无法解析 org.springframework.boot :spring-boot-gradle-plugin:1. 4.2.RELEASE (repo1.maven.org: Nome o servizio sconosciuto)

java - Hibernate 不更新数据库(尽管它提交并读取它)

java - Spring启动抛出java.io.EOFException : No content to map to Object due to end of input

jenkins - 通过 Java Web Start 创建 Jenkins Slave

.net - 运行在 linux 上的 Jenkins 可以构建和部署标准的 .Net 框架代码吗?

github - Jenkins 拉取请求生成器