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

java.security.spec.InvalidKeySpecException: key spec not recognised

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Can't spawn slaves after upgrade plugin from 2.10 to 2.12.

      Tried on jenkins 2.19 and 2.32.

      Provider - openstack-nova

      Jan 18, 2017 10:26:19 PM net.schmizz.sshj.transport.TransportImpl init
      INFO: Client identity string: SSH-2.0-SSHJ_0_9_2
      Jan 18, 2017 10:26:19 PM net.schmizz.sshj.transport.TransportImpl init
      INFO: Server identity string: SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8
      Jan 18, 2017 10:26:19 PM net.schmizz.sshj.transport.TransportImpl die
      SEVERE: Dying because - {}
      net.schmizz.sshj.common.SSHRuntimeException
      	at net.schmizz.sshj.common.Buffer.readPublicKey(Buffer.java:432)
      	at net.schmizz.sshj.transport.kex.AbstractDHG.next(AbstractDHG.java:108)
      	at net.schmizz.sshj.transport.KeyExchanger.handle(KeyExchanger.java:352)
      	at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:487)
      	at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:107)
      	at net.schmizz.sshj.transport.Decoder.received(Decoder.java:175)
      	at net.schmizz.sshj.transport.Reader.run(Reader.java:61)
      Caused by: java.security.GeneralSecurityException: java.security.spec.InvalidKeySpecException: key spec not recognised
      	at net.schmizz.sshj.common.KeyType$3.readPubKeyFromBuffer(KeyType.java:146)
      	at net.schmizz.sshj.common.Buffer.readPublicKey(Buffer.java:430)
      	... 6 more
      Caused by: java.security.spec.InvalidKeySpecException: key spec not recognised
      	at org.bouncycastle.jcajce.provider.asymmetric.util.BaseKeyFactorySpi.engineGeneratePublic(Unknown Source)
      	at org.bouncycastle.jcajce.provider.asymmetric.ec.KeyFactorySpi.engineGeneratePublic(Unknown Source)
      	at java.security.KeyFactory.generatePublic(KeyFactory.java:334)
      	at net.schmizz.sshj.common.KeyType$3.readPubKeyFromBuffer(KeyType.java:144)
      	... 7 more
      
      Jan 18, 2017 10:26:19 PM net.schmizz.sshj.transport.TransportImpl$1 notifyDisconnect
      INFO: Disconnected - UNKNOWN
      Jan 18, 2017 10:26:19 PM net.schmizz.concurrent.Promise tryRetrieve
      SEVERE: <<kex done>> woke to: net.schmizz.sshj.transport.TransportException
      Jan 18, 2017 10:26:19 PM org.jclouds.logging.jdk.JDKLogger logInfo
      INFO: << (bzbzbzbzqwe:rsa[fingerprint(7c:de:87:94:33:31:99:1d:53:82:ae:e4:2d:57:45:d0),sha1(69:cd:8b:3b:28:95:5d:ab:2c:91:58:73:5b:aa:a9:15:b5:54:92:cb)]@78.140.148.28:22) error acquiring {hostAndPort=78.140.148.28:22, loginUser=bzbzbzbzqwe, ssh=null, connectTimeout=60000, sessionTimeout=60000} (attempt 2 of 7): null
      

        Attachments

          Activity

          Hide
          felfert Fritz Elfert added a comment -

          Yes please. I could setup an identical local jenkins here in order to reproduce and understand the original error (Note: Until now, I can not reproduce it here).

          Show
          felfert Fritz Elfert added a comment - Yes please. I could setup an identical local jenkins here in order to reproduce and understand the original error (Note: Until now, I can not reproduce it here).
          Show
          vills Vil Surkin added a comment - Sure, here it is: jenkins-list-plugins.txt https://www.fritz-elfert.de/jclouds-jenkins-2.13-SNAPSHOT-571e1296-felfert.hpi - this version works well.
          Hide
          felfert Fritz Elfert added a comment -

          Thanks a lot for testing an providing the plugin list.
          Based on that, I'm now going to release 2.13. Expect it to appear on the official jenkins update site soon...

          Show
          felfert Fritz Elfert added a comment - Thanks a lot for testing an providing the plugin list. Based on that, I'm now going to release 2.13. Expect it to appear on the official jenkins update site soon...
          Hide
          felfert Fritz Elfert added a comment -

          Fixed in release 2.13

          Show
          felfert Fritz Elfert added a comment - Fixed in release 2.13
          Hide
          darthsteven Steven Jones added a comment -

          Thanks! This fixed it for me.

          Show
          darthsteven Steven Jones added a comment - Thanks! This fixed it for me.

            People

            • Assignee:
              felfert Fritz Elfert
              Reporter:
              vills Vil Surkin
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: