Jenkins EC2 插件 HTTP 错误 404

Jenkins EC2 插件 HTTP 错误 404

我的 AWS 帐户上有一个 EC2 实例,其中 Jenkins 安装在 Amazon Linux 上。AWS 凭证、角色等以及 SSH 密钥都已存在,因此该实例具有 EC2 访问权限,并且我可以通过 SSH 连接到安全组中创建的任何实例等。

我已经安装了EC2 插件并根据说明进行了配置,但是出现错误HTTP 404

Oct 27, 2017 1:26:31 PM null
FINEST: Node jenkins-slave (i-0f8aa5fb0ab29164f)(i-0f8aa5fb0ab29164f) is still pending/launching, waiting 5s
Oct 27, 2017 1:26:36 PM null
FINEST: Node jenkins-slave (i-0f8aa5fb0ab29164f)(i-0f8aa5fb0ab29164f) is still pending/launching, waiting 5s
Oct 27, 2017 1:26:41 PM null
FINEST: Node jenkins-slave (i-0f8aa5fb0ab29164f)(i-0f8aa5fb0ab29164f) is still pending/launching, waiting 5s
Oct 27, 2017 1:26:46 PM null
FINER: Node jenkins-slave (i-0f8aa5fb0ab29164f)(i-0f8aa5fb0ab29164f) is ready
Oct 27, 2017 1:26:46 PM null
INFO: Launching instance: i-0f8aa5fb0ab29164f
Oct 27, 2017 1:26:46 PM null
INFO: bootstrap()
Oct 27, 2017 1:26:46 PM null
INFO: Getting keypair...
Oct 27, 2017 1:26:46 PM null
INFO: Using key: jenkins-slave
d5:dd:51:ac:8b:b3:bf:1b:6f:b4:b1:86:5b:26:14:1e:e0:47:25:72
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAoxetaNHULbsbqsThxUSxxxxxxxxxxxxxxxxxxxxxxxxxx
ga2jnJaFOG4M/Fnes9ZzHclz7eflwliFZnhIUJldlSBZ2bvAqdp
Oct 27, 2017 1:26:46 PM null
INFO: Authenticating as ec2-user
Oct 27, 2017 1:26:46 PM null
INFO: Connecting to 10.0.2.51 on port 22, with timeout 10000.
Oct 27, 2017 1:26:47 PM null
INFO: Failed to connect via ssh: There was a problem while connecting to 10.0.2.51:22
Oct 27, 2017 1:26:47 PM null
INFO: Waiting for SSH to come up. Sleeping 5.
Oct 27, 2017 1:26:52 PM null
INFO: Connecting to 10.0.2.51 on port 22, with timeout 10000.
Oct 27, 2017 1:26:52 PM null
INFO: Failed to connect via ssh: There was a problem while connecting to 10.0.2.51:22
Oct 27, 2017 1:26:52 PM null
INFO: Waiting for SSH to come up. Sleeping 5.
Oct 27, 2017 1:26:57 PM null
INFO: Connecting to 10.0.2.51 on port 22, with timeout 10000.
Oct 27, 2017 1:26:57 PM null
INFO: Failed to connect via ssh: There was a problem while connecting to 10.0.2.51:22
Oct 27, 2017 1:26:57 PM null
INFO: Waiting for SSH to come up. Sleeping 5.
Oct 27, 2017 1:27:02 PM null
INFO: Connecting to 10.0.2.51 on port 22, with timeout 10000.
Oct 27, 2017 1:27:03 PM null
INFO: Connected via SSH.
Oct 27, 2017 1:27:03 PM null
INFO: connect fresh as root
Oct 27, 2017 1:27:03 PM null
INFO: Connecting to 10.0.2.51 on port 22, with timeout 10000.
Oct 27, 2017 1:27:03 PM null
INFO: Connected via SSH.
Oct 27, 2017 1:27:03 PM null
INFO: Creating tmp directory (/tmp) if it does not exist
Oct 27, 2017 1:27:03 PM null
INFO: Verifying that java exists
java full version "1.7.0_151-mockbuild_2017_08_09_21_42-b00"
Oct 27, 2017 1:27:03 PM null
INFO: Copying slave.jar
Oct 27, 2017 1:27:03 PM null
INFO: Launching slave agent (via Trilead SSH2 Connection):  java  -jar /tmp/slave.jar


HTTP ERROR 404


Problem accessing /computer/jenkins-slave%20(i-0f8aa5fb0ab29164f)/logText/progressiveHtml. Reason:

    Not Found
Powered by Jetty:// 9.4.z-SNAPSHOT

答案1

就是这个问题:https://issues.jenkins-ci.org/browse/JENKINS-48182,该问题将在插件的下一个版本中修复。

答案2

这可能与https://issues.jenkins-ci.org/browse/JENKINS-47331 我的安装曾经可以正常工作,但在提交此错误时停止了工作。

相关内容