hudson.AbortException: Authentication failed.

Jenkins JIRA | Rainer Weinhold | 4 years ago
  1. 0

    I updated to 1.480.3 (from 1.480.2) so i also updated all plugins -> so ssh-slaves was updated from 0.22 to 0.23 The upgrade process seems to have created all needed entries for the ssh-credentials plugin. But they are not working (keyfile + pwd type)! [TRACE] The same effect appears when i create the new entry manually. Which does NOT work when: - using "Enter directly" - using "From a file on Jenkins master " with relative or absolute path - using "From the Jenkins master ~/.ssh" - using not the keyfile password but the password of the user There also no changes in the error message when typing in a wrong username, or a wrong password. It only works when loging in with username password combination. So i would say the keyfile authentication is completely broken. PS: via plain ssh i can login with that keyfile. TRACE: [03/26/13 16:51:01] [SSH] Opening SSH connection to 192.168.0.24:22. [03/26/13 16:51:01] [SSH] Authentication failed. hudson.AbortException: Authentication failed. at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:907) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:462) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:224) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [03/26/13 16:51:01] [SSH] Connection closed.

    Jenkins JIRA | 4 years ago | Rainer Weinhold
    hudson.AbortException: Authentication failed.
  2. 0

    I updated to 1.480.3 (from 1.480.2) so i also updated all plugins -> so ssh-slaves was updated from 0.22 to 0.23 The upgrade process seems to have created all needed entries for the ssh-credentials plugin. But they are not working (keyfile + pwd type)! [TRACE] The same effect appears when i create the new entry manually. Which does NOT work when: - using "Enter directly" - using "From a file on Jenkins master " with relative or absolute path - using "From the Jenkins master ~/.ssh" - using not the keyfile password but the password of the user There also no changes in the error message when typing in a wrong username, or a wrong password. It only works when loging in with username password combination. So i would say the keyfile authentication is completely broken. PS: via plain ssh i can login with that keyfile. TRACE: [03/26/13 16:51:01] [SSH] Opening SSH connection to 192.168.0.24:22. [03/26/13 16:51:01] [SSH] Authentication failed. hudson.AbortException: Authentication failed. at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:907) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:462) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:224) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [03/26/13 16:51:01] [SSH] Connection closed.

    Jenkins JIRA | 4 years ago | Rainer Weinhold
    hudson.AbortException: Authentication failed.
  3. 0

    Upgrade and Slave Nodes fail to start

    Google Groups | 3 years ago | Jared Griffith
    hudson.AbortException: Authentication failed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    can't start slaves anymore, ssh auth failing

    Google Groups | 4 years ago | Haszlakiewicz, Eric
    hudson.AbortException: Authentication failed.
  6. 0

    After updating SSH Slaves plugin to 0.23 we get this when slave is starting: {noformat} [03/27/13 10:07:14] [SSH] Checking java version of /home/hudson/JDK_HOME_1_6_0/bin/java [03/27/13 10:07:15] [SSH] /home/hudson/JDK_HOME_1_6_0/bin/java -version returned 1.6.0_16. [03/27/13 10:07:15] [SSH] Starting sftp client. [03/27/13 10:07:15] [SSH] Copying latest slave.jar... [03/27/13 10:07:15] [SSH] Copied 278,201 bytes. ERROR: Failed to expand buffer size java.lang.NoSuchMethodException: com.trilead.ssh2.Session.setWindowSize(int) at java.lang.Class.getMethod(Class.java:1622) at hudson.plugins.sshslaves.SSHLauncher.expandChannelBufferSize(SSHLauncher.java:711) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:661) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:472) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) [03/27/13 10:07:15] [SSH] Starting slave process: cd '/home/hudson/HUDSON_HOME' && /home/hudson/JDK_HOME_1_6_0/bin/java -Xmx1024m -XX:HeapDumpPath=/home/hudson/HUDSON_HOME/_dumps/ -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 This is a Unix slave Copied maven-agent.jar Copied maven3-agent.jar Copied maven3-interceptor.jar Copied maven-interceptor.jar Copied maven2.1-interceptor.jar Copied plexus-classworld.jar Copied classworlds.jar Evacuated stdout Slave successfully connected and online {noformat} We had to downgrade to SSH Slaves plugin to 0.22, which resolved the problem: {noformat} [03/27/13 10:16:32] [SSH] Checking java version of /home/hudson/JDK_HOME_1_6_0/bin/java [03/27/13 10:16:33] [SSH] /home/hudson/JDK_HOME_1_6_0/bin/java -version returned 1.6.0_16. [03/27/13 10:16:33] [SSH] Starting sftp client. [03/27/13 10:16:33] [SSH] Copying latest slave.jar... [03/27/13 10:16:33] [SSH] Copied 278,201 bytes. [03/27/13 10:16:33] [SSH] Starting slave process: cd '/home/hudson/HUDSON_HOME' && /home/hudson/JDK_HOME_1_6_0/bin/java -Xmx1024m -XX:HeapDumpPath=/home/hudson/HUDSON_HOME/_dumps/ -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 This is a Unix slave Copied maven-agent.jar Copied maven3-agent.jar Copied maven3-interceptor.jar Copied maven-interceptor.jar Copied maven2.1-interceptor.jar Copied plexus-classworld.jar Copied classworlds.jar Evacuated stdout Slave successfully connected and online {noformat} BTW, during this upgrade\-...\-downgrade process SSH slave credentials somehow got reset: {noformat} [03/27/13 10:14:02] [SSH] Opening SSH connection to jenkins-l64b.ourcompany.com:22. [03/27/13 10:14:02] [SSH] Authenticating as jenkins/******. [03/27/13 10:14:02] [SSH] Authentication failed. hudson.AbortException: Authentication failed. at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:753) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:278) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) [03/27/13 10:14:02] [SSH] Connection closed. {noformat} We've been using hudson/jenkins for many years and had to switch to LTS since so called "normal" version would get broken in 95%+ of all plugin/Jenkins updates. And now we observe similar problem with LTS. I guess many Jenkins users would agree with me that this is not OK and something has to be done in this respect. The first thing that comes into my mind is introducing "Community ratings" for plugins too (helped us many times to avoid upgrading to unusable new version of "normal" Jenkins branch).

    Jenkins JIRA | 4 years ago | pancake
    hudson.AbortException: Authentication failed.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.AbortException

      Authentication failed.

      at hudson.plugins.sshslaves.SSHLauncher.openConnection()
    2. hudson.plugins.sshslaves
      SSHLauncher.launch
      1. hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:907)
      2. hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:462)
      2 frames
    3. Hudson
      SlaveComputer$1.call
      1. hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:224)
      1 frame
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      5. java.lang.Thread.run(Thread.java:662)
      5 frames