Git fetch failure

26 views
Skip to first unread message

Shannon Bigelow

unread,
Jun 20, 2016, 2:32:16 PM6/20/16
to GitLab

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


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


2) Are there any configuration options that we might setup on the Gitlab client side that 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 advice would be greatly appreciated.


Regards


thomas...@n-fuse.de

unread,
Jul 21, 2016, 10:50:14 AM7/21/16
to GitLab
I have the same issue.
Did you find an answer or a solution?

Drew Blessing

unread,
Jul 25, 2016, 5:58:44 PM7/25/16
to GitLab
What kind of resources does your server have (CPU, RAM, etc)? Are there any errors in the GitLab logs when this occurs? It could be a timeout, a lack of resources at the time the clone is performed, or many other things. Errors like this are unfortunately difficult to diagnose. 
Reply all
Reply to author
Forward
0 new messages