[JIRA] (JENKINS-17204) GIT fetch failing since update to Jenkins 1.505
cray fellow created JENKINS-17204 GIT fetch failing since update to Jenkins 1.505 Issue Type: Bug Affects Versions: current Assignee: Nicolas De Loof Components: git Created: 13/Mar/13 8:37 PM Description: 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. However, once the plugin attempts to fetch changes, 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: g...@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: g...@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: g...@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
[JIRA] (JENKINS-17204) GIT fetch failing since update to Jenkins 1.505
cray fellow updated JENKINS-17204 GIT fetch failing since update to Jenkins 1.505 Change By: cray fellow (13/Mar/13 8:40 PM) Description: Jenkins1.505JenkinsGITplugin1.3.0JenkinsGITclientplugin1.0.4GitprojectsareallacceptingthegitURLandthecloneissucceeding,easilyverifiedbycheckingthecontentsoftheworkspaces. However Icangototheworkspaceatthecommandlineanddothingssuchas:sudo-uuserJenkinsRunsAsgitpullsudo-uuserJenkinsRunsAsgitaddsomeFilesudo-uuserJenkinsRunsAsgitcommit-mtestingsudo-uuserJenkinsRunsAsgitpushandallofthosework , once whichtomerulesoutansshkeyissue.ThecloneinJenkinsevenworks,butsomehowitisnotusing the keyswhendoingthepartitcallsFetchingchanges.Oncethe pluginattemptstofetchchanges duringabuild ,thisishappeningconsistently:Buildinginworkspace/mnt/jenkins/jobs/nativeDependencyBase/workspaceCheckout:workspace//mnt/jenkins/jobs/nativeDependencyBase/workspace-hudson.remoting.LocalChannel@39e6697eUsingstrategy:DefaultselectedGitinstallationdoesnotexists.UsingDefaultLastBuiltRevision:Revision2a2765e4045956a91be3d9bff4f19feaffa8ffc0(origin/master)Fetchingchangesfrom1remoteGitrepositoryERROR:Problemfetchingfromorigin/origin-couldbeunavailable.Continuinganywayhudson.plugins.git.GitException:org.eclipse.jgit.api.errors.TransportException:g...@github.com:myuser/myproject.git:UnknownHostKey:github.com.RSAkeyfingerprintis16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 atorg.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:212) athudson.plugins.git.GitAPI.fetch(GitAPI.java:230) athudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:793) athudson.plugins.git.GitSCM.access$000(GitSCM.java:57) athudson.plugins.git.GitSCM$2.invoke(GitSCM.java:976) athudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942) athudson.FilePath.act(FilePath.java:865) athudson.FilePath.act(FilePath.java:838) athudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942) athudson.plugins.git.GitSCM.checkout(GitSCM.java:1101) athudson.model.AbstractProject.checkout(AbstractProject.java:1353) athudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) atjenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) athudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) athudson.model.Run.execute(Run.java:1567) athudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) athudson.model.ResourceController.execute(ResourceController.java:88) athudson.model.Executor.run(Executor.java:237)Causedby:org.eclipse.jgit.api.errors.TransportException:g...@github.com:myuser/myproject.git:UnknownHostKey:github.com.RSAkeyfingerprintis16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 atorg.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137) atorg.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:208) ...17moreCausedby:org.eclipse.jgit.errors.TransportException:g...@github.com:myuser/myproject.git:UnknownHostKey:github.com.RSAkeyfingerprintis16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 atorg.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142) atorg.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121) atorg.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.init(TransportGitSsh.java:248) atorg.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147) atorg.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) atorg.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) atorg.eclipse.jgit.transport.Transport.fetch(Transport.java:1104) atorg.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128) ...18moreCausedby:com.jcraft.jsch.JSchException:UnknownHostKey:github.com.RSAkeyfingerprintis16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 atcom.jcraft.jsch.Session.checkHost(Session.java:718) atcom.jcraft.jsch.Session.connect(Session.java:313) atorg.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116) ...25moreERROR:CouldnotfetchfromanyrepositoryFATAL:Couldnotfetchfromanyrepositoryhudson.plugins.git.GitException:Couldnotfetchfromanyrepository athudson.plugins.git.GitSCM$2.invoke(GitSCM.java:981) athudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942)
[JIRA] (JENKINS-17204) GIT fetch failing since update to Jenkins 1.505
Christian Pelster commented on JENKINS-17204 GIT fetch failing since update to Jenkins 1.505 Same for me with the exact same versions This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17204) GIT fetch failing since update to Jenkins 1.505
Luke D commented on JENKINS-17204 GIT fetch failing since update to Jenkins 1.505 I've been banging my head against the wall for two days now trying to solve this. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17204) GIT fetch failing since update to Jenkins 1.505
cray fellow commented on JENKINS-17204 GIT fetch failing since update to Jenkins 1.505 Hey guys, I tried downgrading everything and same exact thing. HOWEVER! I put -Dorg.jenkinsci.plugins.gitclient.Git.useCLI=true into my JAVA_OPTS and restarted Tomcat to force the git client NOT to use JGit, and it worked! The issue must have to do with how JGit gets the SSH/shell session. It must not be looking in the right ~/.ssh folder. I hope this helps you guys too. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17204) GIT fetch failing since update to Jenkins 1.505
cray fellow updated JENKINS-17204 GIT fetch failing since update to Jenkins 1.505 Change By: cray fellow (13/Mar/13 9:21 PM) Priority: Major Blocker This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17204) GIT fetch failing since update to Jenkins 1.505
Luke D commented on JENKINS-17204 GIT fetch failing since update to Jenkins 1.505 cray fellow: You did it! If you're ever in central California, look me up and I'll buy you a beer. For those of you who are used to starting Jenkins from terminal, here's the command that made it work for me (with the important bit starting after the java and before the -jar): nohup java -Dorg.jenkinsci.plugins.gitclient.Git.useCLI=true -jar ~/Documents/jenkins.war --httpPort=8081 --ajp13Port=8010 /tmp/jenkins.log 21 This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17204) GIT fetch failing since update to Jenkins 1.505
cray fellow commented on JENKINS-17204 GIT fetch failing since update to Jenkins 1.505 I have now re-upgraded to Jenkins 1.505, GIT plugin 1.3.0, GIT client 1.04 and can confirm the above tweak still does the git fetch without issue. Cheers! This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17204) GIT fetch failing since update to Jenkins 1.505
JeongHan Choi commented on JENKINS-17204 GIT fetch failing since update to Jenkins 1.505 if you installed jenkins using 'apt-get' add 'JAVA_ARGS' like below $sudo vi /etc/default/jenkins arguments to pass to java #JAVA_ARGS="-Xmx256m" #JAVA_ARGS="-Djava.net.preferIPv4Stack=true" # make jenkins listen on IPv4 address JAVA_ARGS="-Dorg.jenkinsci.plugins.gitclient.Git.useCLI=true" # like this thanks cray fellow and Luke D This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.