-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.249
EC2 Plugin 1.50.3
Master:
Windows 2019 (also hosted on AWS)
Slave (via SSH):
AMI: Ubuntu Linux [ami-003634241a8fcdec0] (099720109477/ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20200408)
After launching and successfully connecting to the linux slave, the connection gets terminated after attempting to launch remote agent.
Logs:
INFO: The SSH key ssh-ed25519 a0:c5:cc:b7:f8:3a:63:a5:58:92:a8:a8:b4:42:c9:44 has been successfully checked against the instance console for connections to EC2 (ubuntu-slave) - AWS Linux Jenkins Slave (i-0e5f54a8345c92453) Jul 31, 2020 1:11:34 AM hudson.plugins.ec2.EC2Cloud INFO: Connected via SSH. Jul 31, 2020 1:11:34 AM hudson.plugins.ec2.EC2Cloud INFO: connect fresh as root Jul 31, 2020 1:11:34 AM hudson.plugins.ec2.EC2Cloud INFO: Connecting to 10.27.252.14 on port 22, with timeout 10000. Jul 31, 2020 1:11:34 AM hudson.plugins.ec2.EC2Cloud INFO: Connection allowed after the host key has been verified Jul 31, 2020 1:11:34 AM hudson.plugins.ec2.EC2Cloud INFO: Connected via SSH. Jul 31, 2020 1:11:34 AM hudson.plugins.ec2.EC2Cloud INFO: Creating tmp directory (/tmp) if it does not exist Jul 31, 2020 1:11:37 AM hudson.plugins.ec2.EC2Cloud INFO: Verifying: java -fullversion bash: java: command not found Jul 31, 2020 1:11:37 AM hudson.plugins.ec2.EC2Cloud INFO: Installing: sudo yum install -y java-1.8.0-openjdk.x86_64 sudo: yum: command not found Jul 31, 2020 1:11:38 AM hudson.plugins.ec2.EC2Cloud WARNING: Failed to install: sudo yum install -y java-1.8.0-openjdk.x86_64 Jul 31, 2020 1:11:38 AM hudson.plugins.ec2.EC2Cloud INFO: Verifying: which scp /usr/bin/scp Jul 31, 2020 1:11:38 AM hudson.plugins.ec2.EC2Cloud INFO: Copying remoting.jar to: /tmp Jul 31, 2020 1:11:38 AM hudson.plugins.ec2.EC2Cloud INFO: Launching remoting agent (via Trilead SSH2 Connection): java -jar /tmp/remoting.jar -workDir /home/ubuntu/ ERROR: unexpected stream termination java.io.EOFException: unexpected stream termination at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:415) at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:360) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:428) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launchScript(EC2UnixLauncher.java:267) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48) at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:297) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Seems related to https://issues.jenkins-ci.org/browse/JENKINS-46837
I wonder if someone is going to pick this up