Git fetch failure

234 views
Skip to first unread message

Shannon Bigelow

unread,
Jun 20, 2016, 2:33:50 PM6/20/16
to Jenkins Users

The following message is periodically generated (example: 3 out of 26) when attempting to do a git fetch.  


1) Are there any configuration options which might be a contributing factor or might help?


Setup:


Gitlab run by separate team no access to server.

Jenkins 2.0 (2.6) connecting to Gitlab


------------------------------------------------------------------


Started by timer

 > git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

 > git config remote.origin.url g...@gitlab.xxx.com:xxx.git # timeout=10

Cleaning workspace

 > git rev-parse --verify HEAD # timeout=10

Resetting working tree

 > git reset --hard # timeout=10

 > git clean -fdx # timeout=10

Fetching upstream changes from g...@gitlab.xxx.com:xxx.git

 > git --version # timeout=10

using GIT_SSH to set credentials gitlab.xxx.com

 > git fetch --tags --progress g...@gitlab.xxx.com:xxx.git +refs/heads/*:refs/remotes/origin/*

ERROR: Error fetching remote repo 'origin'

hudson.plugins.git.GitException: Failed to fetch from g...@gitlab.xxx.com:xxx.git

at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810)

at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066)

at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)

at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)

at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)

at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:57)

at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:206)

at hudson.model.ResourceController.execute(ResourceController.java:98)

at hudson.model.Executor.run(Executor.java:410)

Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress g...@gitlab.xxx.com:wwrc-xxx.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:

stdout: 

stderr: ssh_exchange_identification: Connection closed by remote host

fatal: The remote end hung up unexpectedly


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

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)

at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808)

... 8 more

ERROR: null

Finished: FAILURE


Any help would be greatly appreciated.


Regards,


Mark Waite

unread,
Jun 20, 2016, 3:19:52 PM6/20/16
to Jenkins Users
If it comes from a different node each time, then it may indicate that the server is overloaded with connections.

If it comes from the same node each time, then it may indicate that node is being specifically rejected by the gitlab server.

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/3cb3b76c-3699-40f1-9ce2-24b7cef4575d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Zoratto Thomas

unread,
Jun 20, 2016, 3:22:54 PM6/20/16
to jenkins...@googlegroups.com
Hi,

It doesn't seem to be Jenkins related

If I were you I would ask the team maintaining the gitlab server if this is a known issue or if they can do something about it. 

Maybe I'm wrong though
Reply all
Reply to author
Forward
0 new messages