hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: git@github.com:myuser/myproject.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48

Jenkins JIRA | cray fellow | 4 years ago
  1. 0

    Jenkins 1.505 Jenkins GIT plugin 1.3.0 Jenkins GIT client plugin 1.0.4 Git projects are all accepting the git URL and the clone is succeeding, easily verified by checking the contents of the workspaces. I can go to the workspace at the command line and do things such as: sudo -u userJenkinsRunsAs git pull sudo -u userJenkinsRunsAs git add someFile sudo -u userJenkinsRunsAs git commit -m "testing" sudo -u userJenkinsRunsAs git push and all of those work, which to me rules out an ssh key issue. The clone in Jenkins even works, but somehow it is not using the keys when doing the part it calls "Fetching changes". Once the plugin attempts to fetch changes during a build, this is happening consistently: Building in workspace /mnt/jenkins/jobs/nativeDependencyBase/workspace Checkout:workspace / /mnt/jenkins/jobs/nativeDependencyBase/workspace - hudson.remoting.LocalChannel@39e6697e Using strategy: Default selected Git installation does not exists. Using Default Last Built Revision: Revision 2a2765e4045956a91be3d9bff4f19feaffa8ffc0 (origin/master) Fetching changes from 1 remote Git repository ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: git@github.com:myuser/myproject.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:212) at hudson.plugins.git.GitAPI.fetch(GitAPI.java:230) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:793) at hudson.plugins.git.GitSCM.access$000(GitSCM.java:57) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:976) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101) at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1567) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.eclipse.jgit.api.errors.TransportException: git@github.com:myuser/myproject.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:208) ... 17 more Caused by: org.eclipse.jgit.errors.TransportException: git@github.com:myuser/myproject.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142) at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121) at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248) at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128) ... 18 more Caused by: com.jcraft.jsch.JSchException: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 at com.jcraft.jsch.Session.checkHost(Session.java:718) at com.jcraft.jsch.Session.connect(Session.java:313) at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116) ... 25 more ERROR: Could not fetch from any repository FATAL: Could not fetch from any repository hudson.plugins.git.GitException: Could not fetch from any repository at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:981) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101) at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1567) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | cray fellow
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: git@github.com:myuser/myproject.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
  2. 0

    [JENKINS-17204] GIT plugin fetch failing since update Git Plugin to 1.2.0+ - Jenkins JIRA

    jenkins-ci.org | 5 months ago
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: git@github.com:myuser/myproject.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
  3. 0

    Jenkins 1.505 Jenkins GIT plugin 1.3.0 Jenkins GIT client plugin 1.0.4 Git projects are all accepting the git URL and the clone is succeeding, easily verified by checking the contents of the workspaces. I can go to the workspace at the command line and do things such as: sudo -u userJenkinsRunsAs git pull sudo -u userJenkinsRunsAs git add someFile sudo -u userJenkinsRunsAs git commit -m "testing" sudo -u userJenkinsRunsAs git push and all of those work, which to me rules out an ssh key issue. The clone in Jenkins even works, but somehow it is not using the keys when doing the part it calls "Fetching changes". Once the plugin attempts to fetch changes during a build, this is happening consistently: Building in workspace /mnt/jenkins/jobs/nativeDependencyBase/workspace Checkout:workspace / /mnt/jenkins/jobs/nativeDependencyBase/workspace - hudson.remoting.LocalChannel@39e6697e Using strategy: Default selected Git installation does not exists. Using Default Last Built Revision: Revision 2a2765e4045956a91be3d9bff4f19feaffa8ffc0 (origin/master) Fetching changes from 1 remote Git repository ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: git@github.com:myuser/myproject.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:212) at hudson.plugins.git.GitAPI.fetch(GitAPI.java:230) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:793) at hudson.plugins.git.GitSCM.access$000(GitSCM.java:57) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:976) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101) at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1567) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.eclipse.jgit.api.errors.TransportException: git@github.com:myuser/myproject.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:208) ... 17 more Caused by: org.eclipse.jgit.errors.TransportException: git@github.com:myuser/myproject.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142) at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121) at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248) at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128) ... 18 more Caused by: com.jcraft.jsch.JSchException: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 at com.jcraft.jsch.Session.checkHost(Session.java:718) at com.jcraft.jsch.Session.connect(Session.java:313) at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116) ... 25 more ERROR: Could not fetch from any repository FATAL: Could not fetch from any repository hudson.plugins.git.GitException: Could not fetch from any repository at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:981) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101) at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1567) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | cray fellow
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: git@github.com:myuser/myproject.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I get this exception [1] when I start to start a release with alpha26 I debugged it a little bit and could trace it down to com.atlassian.maven.plugins.jgitflow.manager.DefaultFlowReleaseManager#startRelease line 140. "ensureOrigin" is called because "ctx.isNoTag()" returns false in line 140. <configuration> <autoVersionSubmodules>true</autoVersionSubmodules> <enableFeatureVersions>true</enableFeatureVersions> <enableSshAgent>true</enableSshAgent> <localOnly>true</localOnly> </configuration> I think this is a bug because: - I have configured "localOnly" to true. Therefore there shouldn't be any communication with the repository. And nonexisting communication can't fail... [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-jgitflow-plugin:1.0-alpha26:release-start (default-cli) on project open: Error starting release: error configuring remote git repo with url: null at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Error starting release: error configuring remote git repo with url: null at com.atlassian.maven.plugins.jgitflow.ReleaseStartMojo.execute(ReleaseStartMojo.java:81) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 19 more Caused by: com.atlassian.maven.plugins.jgitflow.exception.JGitFlowReleaseException: error configuring remote git repo with url: null at com.atlassian.maven.plugins.jgitflow.helper.DefaultProjectHelper.ensureOrigin(DefaultProjectHelper.java:573) at com.atlassian.maven.plugins.jgitflow.manager.DefaultFlowReleaseManager.startRelease(DefaultFlowReleaseManager.java:140) at com.atlassian.maven.plugins.jgitflow.manager.DefaultFlowReleaseManager.start(DefaultFlowReleaseManager.java:46) at com.atlassian.maven.plugins.jgitflow.ReleaseStartMojo.execute(ReleaseStartMojo.java:77) ... 21 more Caused by: org.eclipse.jgit.api.errors.TransportException: git@github.com:jschneider/com.cedarsoft.open.git: USERAUTH fail at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137) at com.atlassian.maven.plugins.jgitflow.helper.DefaultProjectHelper.ensureOrigin(DefaultProjectHelper.java:569) ... 24 more Caused by: org.eclipse.jgit.errors.TransportException: git@github.com:jschneider/com.cedarsoft.open.git: USERAUTH fail at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142) at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121) at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248) at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1105) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128) ... 25 more Caused by: com.jcraft.jsch.JSchException: USERAUTH fail at com.jcraft.jsch.UserAuthPublicKey.start(UserAuthPublicKey.java:120) at com.jcraft.jsch.Session.connect(Session.java:442) at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116) ... 32 more

    Ecosystem JIRA | 3 years ago | cedarsoft
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:maven-jgitflow-plugin:1.0-alpha26:release-start (default-cli) on project open: Error starting release: error configuring remote git repo with url: null
  6. 0

    Session.connect: java.security.InvalidAlgorithmParameterException

    Eclipse Bugzilla | 2 years ago | noopur_gupta
    org.eclipse.core.runtime.CoreException: ssh://ngupta@git.eclipse.org/gitroot/jdt/eclipse.jdt.ui.git: Session.connect: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive)

  1. abrazeneb 1 times, last 4 months ago
96 unregistered visitors
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. com.jcraft.jsch.JSchException

    UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48

    at com.jcraft.jsch.Session.checkHost()
  2. JSch
    Session.connect
    1. com.jcraft.jsch.Session.checkHost(Session.java:718)
    2. com.jcraft.jsch.Session.connect(Session.java:313)
    2 frames
  3. JGit - Core
    FetchCommand.call
    1. org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
    2. org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
    3. org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
    4. org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
    5. org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
    6. org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
    7. org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104)
    8. org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
    8 frames
  4. org.jenkinsci.plugins
    JGitAPIImpl.fetch
    1. org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:208)
    1 frame
  5. Hudson GIT plugin
    GitSCM$2.invoke
    1. hudson.plugins.git.GitAPI.fetch(GitAPI.java:230)
    2. hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:793)
    3. hudson.plugins.git.GitSCM.access$000(GitSCM.java:57)
    4. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:976)
    5. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942)
    5 frames
  6. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:865)
    2. hudson.FilePath.act(FilePath.java:838)
    2 frames
  7. Hudson GIT plugin
    GitSCM.checkout
    1. hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942)
    2. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101)
    2 frames
  8. Hudson
    AbstractBuild$AbstractBuildExecution.defaultCheckout
    1. hudson.model.AbstractProject.checkout(AbstractProject.java:1353)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683)
    2 frames
  9. jenkins.scm
    SCMCheckoutStrategy.checkout
    1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
    1 frame
  10. Hudson
    Run.execute
    1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588)
    2. hudson.model.Run.execute(Run.java:1567)
    2 frames
  11. Hudson Maven Embedder
    MavenModuleSetBuild.run
    1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
    1 frame
  12. Hudson
    Executor.run
    1. hudson.model.ResourceController.execute(ResourceController.java:88)
    2. hudson.model.Executor.run(Executor.java:237)
    2 frames