java.lang.RuntimeException: Could not find a suitable ssh-agent provider.

jenkins-ci.org | 4 months ago
  1. 0

    [JENKINS-20276] Native Library Error after upgrading ssh-agent from 1.3 to 1.4 - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    java.lang.RuntimeException: Could not find a suitable ssh-agent provider.
  2. 0

    h3. Issue Running Jenkins on PowerPC (ppc64le), when trying to use SSH-Agent we are getting below error: {code} [ssh-agent] Caused by: java.lang.UnsatisfiedLinkError: could not locate stub library in jar file. Tried [jni/unknown-Linux/libjffi-1.2.so, /jni/unknown-Linux/libjffi-1.2.so] [ssh-agent] at com.kenai.jffi.internal.StubLoader.getStubLibraryStream(StubLoader.java:353) [ssh-agent] at com.kenai.jffi.internal.StubLoader.loadFromJar(StubLoader.java:300) [ssh-agent] at com.kenai.jffi.internal.StubLoader.load(StubLoader.java:235) [ssh-agent] at com.kenai.jffi.internal.StubLoader.<clinit>(StubLoader.java:403) [ssh-agent] at java.lang.Class.forName0(Native Method) [ssh-agent] at java.lang.Class.forName(Class.java:348) [ssh-agent] at com.kenai.jffi.Init.load(Init.java:68) [ssh-agent] at com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49) [ssh-agent] at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45) [ssh-agent] ... 38 more FATAL: [ssh-agent] Unable to start agent hudson.util.IOException2: [ssh-agent] Unable to start agent at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:253) at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.preCheckout(SSHAgentBuildWrapper.java:223) at jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:76) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.RuntimeException: [ssh-agent] Could not find a suitable ssh-agent provider. at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper$SSHAgentEnvironment.<init>(SSHAgentBuildWrapper.java:371) at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:246) {code} h3. Resolution It looks like version 2.0.3+ of _jnr-iff_ is where _ppc64le_ adds compatibility: * https://github.com/jnr/jnr-ffi/commit/6d8cdc0ce1a5d6dcfbec5c3b635bfe3232088273 So compatibility could be provided by upgrading the following dependencies: * https://github.com/cloudbees/jnr-unixsocket-nodep/blob/master/pom.xml#L83 * https://github.com/jenkinsci/ssh-agent-plugin/blob/master/pom.xml#L112

    Jenkins JIRA | 4 months ago | Allan BURDAJEWICZ
    hudson.util.IOException2: [ssh-agent] Unable to start agent
  3. 0

    [JENKINS-20276] Native Library Error after upgrading ssh-agent from 1.3 to 1.4 - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    hudson.util.IOException2: [ssh-agent] Unable to start agent
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-20276] Native Library Error after upgrading ssh-agent from 1.3 to 1.4 - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    hudson.util.IOException2: [ssh-agent] Unable to start agent
  6. 0

    Getting the following exception when attempt to run a job with the ssh-agent plugin enabled: {code} Started by user anonymous Building in workspace C:\Program Files (x86)\Jenkins\jobs\SmartPhone\workspace [ssh-agent] Using credentials id_rsa_smartphone (Smartphone Repo on GitHub) [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] FATAL: Could not find a suitable ssh-agent provider [ssh-agent] Diagnostic report FATAL: [ssh-agent] Unable to start agent hudson.util.IOException2: [ssh-agent] Unable to start agent at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:231) at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.preCheckout(SSHAgentBuildWrapper.java:189) at jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:76) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.lang.RuntimeException: [ssh-agent] Could not find a suitable ssh-agent provider. at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper$SSHAgentEnvironment.<init>(SSHAgentBuildWrapper.java:332) at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:224) ... 7 more Finished: FAILURE {code} I'm not a Java developer but It appears that the code is attempting to get implementors of {{RemoteAgentFactory}}. From what I can tell, there are two - {{MinaRemoteAgentFactory}} and {{JNRRemoteAgentFactory}}. However, it doesn't appear to find either of these two because of the {{FATAL: Could not find a suitable ssh-agent provider}} message that it emits. If it did find {{MinaRemoteAgentFactory}}, the {{MinaRemoteAgentFactory.isSupported()}} function would either return true or log the {{Could not find Tomcat Native library}} message. I'm not positive that I have the Tomcat native library installed correctly but it appears that it is not even getting to the point where it's checking for the existence of the library. When I installed Tomcat on Windows, I selected the option to include the native library. In the Tomcat logs, it indicates that the native library is being used.

    Jenkins JIRA | 2 years ago | Ron Ratzlaff
    hudson.util.IOException2: [ssh-agent] Unable to start agent

    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. java.lang.RuntimeException

      Could not find a suitable ssh-agent provider.

      at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper$SSHAgentEnvironment.<init>()
    2. com.cloudbees.jenkins
      SSHAgentBuildWrapper.preCheckout
      1. com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper$SSHAgentEnvironment.<init>(SSHAgentBuildWrapper.java:217)
      2. com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:119)
      3. com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.preCheckout(SSHAgentBuildWrapper.java:89)
      3 frames
    3. jenkins.scm
      SCMCheckoutStrategy.preCheckout
      1. jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:76)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      2. hudson.model.Run.execute(Run.java:1732)
      3. hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:234)
      5 frames