-
Bug
-
Resolution: Fixed
-
Critical
-
Java 64bit 1.8.0.131
Jenkins 2.46.3
ssh-slaves-plugin 1.18 (and 1.19)
When we upgrade the ssh slaves plugin on the latest stable jenkins we get :
ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. java.lang.IllegalArgumentException at com.trilead.ssh2.Connection.setServerHostKeyAlgorithms(Connection.java:1311) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:796) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:792) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [06/13/17 13:10:39] Launch failed - cleaning up connection [06/13/17 13:10:39] [SSH] Connection closed.
- blocks
-
JENKINS-42959 Failed known_hosts verification for SSH agent
-
- Closed
-
- links to
Not sure how to reproduce from scratch—from code inspection it looks like there are some conditions where getPreferredKeyAlgorithms could return null or an empty list, which is invalid. What is the verification strategy for the affected slave?
Anyway I think I can just disable the fix of
JENKINS-42959in cases where it would cause this exception, perhaps.