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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • jclouds-plugin
    • None

      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
      

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

              Created:
              Updated:
              Resolved: