2013-03-14 137 views
2

我不斷收到一個奇怪的錯誤與詹金斯:詹金斯的Git UnknownHostKey

ERROR: Problem fetching from origin/origin - could be unavailable. Continuing anyway 
hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: [email protected]:healthtrustsoftware/hts_traditional.git: UnknownHostKey: 127.0.0.1. RSA key fingerprint is 1c:f9:59:92:ab:8f:f6:2a:c6:be:43:26:5c:e7:ba:b9 
    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.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
    at hudson.model.ResourceController.execute(ResourceController.java:88) 
    at hudson.model.Executor.run(Executor.java:237) 
Caused by: org.eclipse.jgit.api.errors.TransportException: [email protected]:healthtrustsoftware/hts_traditional.git: UnknownHostKey: 127.0.0.1. RSA key fingerprint is 1c:f9:59:92:ab:8f:f6:2a:c6:be:43:26:5c:e7:ba:b9 
    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: [email protected]:healthtrustsoftware/hts_traditional.git: UnknownHostKey: 127.0.0.1. RSA key fingerprint is 1c:f9:59:92:ab:8f:f6:2a:c6:be:43:26:5c:e7:ba:b9 
    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: 127.0.0.1. RSA key fingerprint is 1c:f9:59:92:ab:8f:f6:2a:c6:be:43:26:5c:e7:ba:b9 
    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.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
    at hudson.model.ResourceController.execute(ResourceController.java:88) 
    at hudson.model.Executor.run(Executor.java:237) 

當我嘗試運行構建時出現此錯誤。 git服務器在同一臺機器上運行。我可以su到jenkins用戶和ssh到[email protected]沒有問題,但由於某種原因它會從jenkins中引發這個錯誤。這裏的任何建議都會很棒。謝謝

回答

4

這個問題有a bug其中包括在評論中的修復。 A related issue也提到Git Plugin版本1.1.26不受影響。