Problem cloning project with Git plugin

493 views
Skip to first unread message

Rodrigo Uchôa

unread,
Dec 7, 2015, 10:58:06 AM12/7/15
to Jenkins Users
Hi everyone!

I'm having a problem that's driving me crazy. We have several jenkins installations and all of them are working except for one, so it's not like I haven't done this before. When cloning the project from Git, jenkins throws the following exception: (I changed the real URL because it's not relevant)

Caused by: hudson.plugins.git.GitException: Command "/usr/local/git/bin/git -c core.askpass=true fetch --tags --progress http://git.xx.xx.xx/xxx/xxx.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: fatal: unable to access 'http://git.xx.xx.xx/xxx/xxx.git/': Failed connect to git.xx.xx.xx:80; Operation now in progress

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640)



What's more stange is that I already tried the exact same commands used by jenkins in the command line, using the jenkins user, and it works. Only when running from jenkins itself we get this "Failed connect". So we can rule out firewall issues. Also checked proxy settings.

Does anyone have a clue? 

Thanks!

Rodrigo Uchôa

unread,
Dec 7, 2015, 11:05:17 AM12/7/15
to Jenkins Users
The complete console output:

Fetching upstream changes from http://git.xx.xx.xx/xxx/xxx.git
 > /usr/local/git/bin/git --version # timeout=10
using .gitcredentials to set credentials
 > /usr/local/git/bin/git config --local credential.username xxx.xxx # timeout=10
 > /usr/local/git/bin/git config --local credential.helper store --file=/tmp/git1190630939683432581.credentials # timeout=10
 > /usr/local/git/bin/git -c core.askpass=true fetch --tags --progress http://git.xx.xx.xx/xxx/xxx.git +refs/heads/*:refs/remotes/origin/*
 > /usr/local/git/bin/git config --local --remove-section credential # timeout=10
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from http://git.xx.xx.xx/xxx/xxx.git
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043)
	at hudson.scm.SCM.checkout(SCM.java:485)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1275)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
	at hudson.model.Run.execute(Run.java:1741)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:408)
Caused by: hudson.plugins.git.GitException: Command "/usr/local/git/bin/git -c core.askpass=true fetch --tags --progress http://git.xx.xx.xx/xxx/xxx.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: fatal: unable to access 'http://git.xx.xx.xx/xxx/xxx.git/
': Failed connect to git.xx.xx.xx:80; Operation now in progress

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761)
	... 11 more
ERROR: null
Finished: FAILURE


Mark Waite

unread,
Dec 7, 2015, 1:45:55 PM12/7/15
to Jenkins Users
I've never seen that message, so these are only guesses based on google search results.

https://groups.google.com/forum/#!topic/git-users/89QwDlciXbo hints that there may be a configuration problem with your http server configuration on the problem git server.

https://github.com/guzzle/guzzle/issues/685 suggests that such a message might be a result of a stateful firewall on the git server side.

https://wiki.freeswitch.org/wiki/Git_Tips suggests that it may be related to http proxy configuration.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7181dfb6-6f87-4270-8fd1-5ca9df577ac7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages