Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58483

Jenkins 2.185 won't connect to SSH agents

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins 2.185, Ubuntu 16.04, OpenJDK 1.8.0, latest plugins (ssh-slaves 1.30)
    • Similar Issues:
    • Released As:
      Jenkins 2.186

      Description

      ERROR: Unexpected error in launching a agent. This is probably a bug in Jenkins.ERROR: Unexpected error in launching a agent. This is probably a bug in Jenkins.
      
      java.lang.IllegalArgumentException: Unknown server host key algorithm 'ssh-ed25519'
       at com.trilead.ssh2.transport.KexManager.checkServerHostkeyAlgorithmsList(KexManager.java:316)
       at com.trilead.ssh2.Connection.setServerHostKeyAlgorithms(Connection.java:1289)
       at hudson.plugins.sshslaves.SSHLauncher$1.call(SSHLauncher.java:412)
       at hudson.plugins.sshslaves.SSHLauncher$1.call(SSHLauncher.java:406)
       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)[07/14/19 22:07:00] Launch failed - cleaning up connection[07/14/19 22:07:00] [SSH] Connection closed.
      

      Plugins were updated three days ago and a restart of 2.184 went fine.

      Now I just updated to 2.185 and got the quoted "Unknown server host key algorithm 'ssh-ed25519'" messages with all agents (Linux and MacOS) offline.

      Probably something related to the recent 'trilead' changes?

       

      Workaround: Downgrade to previous version ('apt install jenkins=2.184').

        Attachments

          Issue Links

            Activity

            Show
            oleg_nenashev Oleg Nenashev added a comment - https://github.com/jenkinsci/jenkins/pull/4111  and  https://github.com/jenkinsci/ssh-cli-auth-module/pull/10  are needed to address the issue AFAICT
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Apparently there was a regression in SSH CLI Auth Module which was not discovered in reviews. https://github.com/jenkinsci/ssh-cli-auth-module/pull/14 should fix it

            Show
            oleg_nenashev Oleg Nenashev added a comment - Apparently there was a regression in SSH CLI Auth Module which was not discovered in reviews.  https://github.com/jenkinsci/ssh-cli-auth-module/pull/14  should fix it
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Whomever needs a test build of the fix, it is here: https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/main/jenkins-war/2.186-rc28479.a2d1d0c725fe/ . Downgrade is still recommended for production use. I hope we will rollout an out-of-order weekly release by EoD tomorrow, see https://groups.google.com/forum/#!topic/jenkinsci-advisories/lWw746kv4Kg 

            Show
            oleg_nenashev Oleg Nenashev added a comment - Whomever needs a test build of the fix, it is here:  https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/main/jenkins-war/2.186-rc28479.a2d1d0c725fe/  . Downgrade is still recommended for production use. I hope we will rollout an out-of-order weekly release by EoD tomorrow, see  https://groups.google.com/forum/#!topic/jenkinsci-advisories/lWw746kv4Kg  
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            To be released in 2.186 today, unless something goes really wrong

            Show
            oleg_nenashev Oleg Nenashev added a comment - To be released in 2.186 today, unless something goes really wrong
            Hide
            xs2bharat Bharat Bhatia added a comment -

            2.186 fixed this issue

            Show
            xs2bharat Bharat Bhatia added a comment - 2.186 fixed this issue

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                j_adam Jens Adam
              • Votes:
                22 Vote for this issue
                Watchers:
                36 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: