[JIRA] (JENKINS-36269) git fetch returned status code 143 after 10 minute timeout

4,535 views
Skip to first unread message

andy.costanza@gmail.com (JIRA)

unread,
Jun 28, 2016, 8:49:02 AM6/28/16
to jenkinsc...@googlegroups.com
Andy Costanza created an issue
 
Jenkins / Bug JENKINS-36269
git fetch returned status code 143 after 10 minute timeout
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin
Created: 2016/Jun/28 12:48 PM
Environment: Jenkins 2.11, git client plugin 1.19.6, git plugin 2.5.0, git server plugin 1.6, scm api plugin 1.2, credential plugin 2.1.4, gitlab 8.7.4, git 2.8.0
Priority: Blocker Blocker
Reporter: Andy Costanza

A couple of week my job can't connect to my gitlab-ce repository.
All Jenkins plugins are up to date but the problem still happen.
Look at this error message that appears after 10 minutes git fetching

Building in workspace /opt/jenkins/jobs/test/workspace
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository http://gitsec.ucm.be/sec/Starter.git
 > /usr/bin/git init /opt/jenkins/jobs/test/workspace # timeout=10
Fetching upstream changes from http://gitsec.ucm.be/sec/Starter.git
 > /usr/bin/git --version # timeout=10
using .gitcredentials to set credentials
 > /usr/bin/git config --local credential.username root # timeout=10
 > /usr/bin/git config --local credential.helper store --file=/opt/jenkins/temp/git6597766348472233914.credentials # timeout=10
Setting http proxy: localhost:5865
 > /usr/bin/git -c core.askpass=true fetch --tags --progress http://x.y.z/group/repo.git +refs/heads/*:refs/remotes/origin/*
ERROR: Timeout after 10 minutes
 > /usr/bin/git config --local --remove-section credential # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "/usr/bin/git -c core.askpass=true fetch --tags --progress http://x.y.z/group/repo.git +refs/heads/*:refs/remotes/origin/*" returned status code 143:
stdout: 
stderr: 
	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 org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:506)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1039)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1079)
	at hudson.scm.SCM.checkout(SCM.java:495)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1270)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
	at hudson.model.Run.execute(Run.java:1720)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
ERROR: null
Finished: FAILURE
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andy.costanza@gmail.com (JIRA)

unread,
Jun 28, 2016, 8:50:02 AM6/28/16
to jenkinsc...@googlegroups.com
Andy Costanza updated an issue
Change By: Andy Costanza
A couple of week my job can't connect to my gitlab-ce repository.
All Jenkins plugins are up to date but the problem still happen.
Look at this error message that appears after 10 minutes git fetching
{code:java}

Building in workspace /opt/jenkins/jobs/test/workspace
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository http:// gitsec x . ucm y . be z / sec group / Starter repo .git

> /usr/bin/git init /opt/jenkins/jobs/test/workspace # timeout=10
Fetching upstream changes from http:// gitsec x . ucm y . be z / sec group / Starter repo .git
{code}

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 28, 2016, 11:11:02 AM6/28/16
to jenkinsc...@googlegroups.com
Mark Waite resolved as Not A Defect
 

ERROR: Timeout after 10 minutes usually means one of the following:

  1. incorrect credentials were provided with the Jenkins job definition
  2. repository is so large that it takes more than 10 minutes to clone
  3. bandwidth to the git server is slow enough that it takes more than 10 minutes to clone

None of those can be resolved by a change to the plugin, so I'm closing this bug report

Change By: Mark Waite
Status: Open Resolved
Resolution: Not A Defect

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 3:59:02 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza commented on Bug JENKINS-36269
 
Re: git fetch returned status code 143 after 10 minute timeout

I'm sorry Mark Waite but on my jenkins server with git command line, it works.

Unable to find source-code formatter for language: shell. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
$ git init workspace
Initialized empty Git repository in /home/consult/workspace/.git/
$ cd workspace/
$ git --version
git version 2.8.0
$ git config --local credential.username root
$ git -c core.askpass=true fetch --tags --progress http://gitsec.ucm.be/common/CommonService.git
remote: Counting objects: 536, done.
remote: Compressing objects: 100% (206/206), done.
remote: Total 536 (delta 206), reused 510 (delta 199)
Receiving objects: 100% (536/536), 3.28 MiB | 0 bytes/s, done.
Resolving deltas: 100% (206/206), done.
From http://gitsec.ucm.be/common/CommonService
 * branch            HEAD       -> FETCH_HEAD
 * [new tag]         commonservice-0.1.80 -> commonservice-0.1.80
 * [new tag]         commonservice-0.1.85 -> commonservice-0.1.85
 * [new tag]         commonservice-0.1.86 -> commonservice-0.1.86
 * [new tag]         commonservice-0.1.87 -> commonservice-0.1.87
$ git config remote.origin.url http://gitsec.ucm.be/common/CommonService.git
$ git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
$ git pull origin master
From http://gitsec.ucm.be/common/CommonService
 * branch            master     -> FETCH_HEAD
$ git checkout master
Already on 'master'
$ ls
infinitest.filters  lib  mvnw  mvnw.cmd  pom.xml  src

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 4:01:01 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza edited a comment on Bug JENKINS-36269
I'm sorry [~markewaite] but on my jenkins server with git command line, it works.

{code:shell}

$ git init workspace
Initialized empty Git repository in /home/consult/workspace/.git/
$ cd workspace/
$ git --version
git version 2.8.0
$ git config --local credential.username root
$ git -c core.askpass=true fetch --tags --progress http:// gitsec x . ucm y . be z / common group / CommonService repository .git

remote: Counting objects: 536, done.
remote: Compressing objects: 100% (206/206), done.
remote: Total 536 (delta 206), reused 510 (delta 199)
Receiving objects: 100% (536/536), 3.28 MiB | 0 bytes/s, done.
Resolving deltas: 100% (206/206), done.
From http:// gitsec x . ucm y . be z / common group / CommonService repository
* branch            HEAD       -> FETCH_HEAD
* [new tag]         commonservice-0.1.80 -> commonservice-0.1.80
* [new tag]         commonservice-0.1.85 -> commonservice-0.1.85
* [new tag]         commonservice-0.1.86 -> commonservice-0.1.86
* [new tag]         commonservice-0.1.87 -> commonservice-0.1.87
$ git config remote.origin.url http:// gitsec x . ucm y . be z / common group / CommonService repository .git

$ git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
$ git pull origin master
From http:// gitsec x . ucm y . be z / common group / CommonService repository
* branch            master     -> FETCH_HEAD
$ git checkout master
Already on 'master'
$ ls
infinitest.filters  lib  mvnw  mvnw.cmd  pom.xml  src
{code}

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 4:06:07 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza updated an issue
Change By: Andy Costanza
Attachment: 2016-06-29 10_04_53-Update Center [Jenkins] – Chromium.png
Attachment: 2016-06-29 10_04_33-Update Center [Jenkins] – Chromium.png
Attachment: 2016-06-29 10_04_21-Update Center [Jenkins] – Chromium.png
Attachment: 2016-06-29 10_04_04-Update Center [Jenkins] – Chromium.png
Attachment: 2016-06-29 10_03_41-Update Center [Jenkins] – Chromium.png

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 4:07:01 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza commented on Bug JENKINS-36269
 
Re: git fetch returned status code 143 after 10 minute timeout

Here, my complete list of installed plugins

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 5:58:03 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza updated an issue
Change By: Andy Costanza
Attachment: 2016-06-29 10_04_53-Update Center [Jenkins] – Chromium.png

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 5:58:03 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza updated an issue
Change By: Andy Costanza
Attachment: 2016-06-29 10_04_33-Update Center [Jenkins] – Chromium.png

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 5:58:03 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza updated an issue
Change By: Andy Costanza
Comment:
Here, my complete list of installed plugins
!2016-06-29 10_04_53-Update Center [Jenkins] – Chromium.png|thumbnail!  !2016-06-29 10_04_33-Update Center [Jenkins] – Chromium.png|thumbnail!  !2016-06-29 10_04_21-Update Center [Jenkins] – Chromium.png|thumbnail!  !2016-06-29 10_04_04-Update Center [Jenkins] – Chromium.png|thumbnail!  !2016-06-29 10_03_41-Update Center [Jenkins] – Chromium.png|thumbnail!

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 5:58:03 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza updated an issue
Change By: Andy Costanza
Comment:
I'm sorry [~markewaite] but on my jenkins server with git command line, it works.

{code:shell}
$ git init workspace
Initialized empty Git repository in /home/consult/workspace/.git/
$ cd workspace/
$ git --version
git version 2.8.0
$ git config --local credential.username root
$ git -c core.askpass=true fetch --tags --progress http://x.y.z/group/repository.git

remote: Counting objects: 536, done.
remote: Compressing objects: 100% (206/206), done.
remote: Total 536 (delta 206), reused 510 (delta 199)
Receiving objects: 100% (536/536), 3.28 MiB | 0 bytes/s, done.
Resolving deltas: 100% (206/206), done.

* branch            HEAD       -> FETCH_HEAD
* [new tag]         commonservice-0.1.80 -> commonservice-0.1.80
* [new tag]         commonservice-0.1.85 -> commonservice-0.1.85
* [new tag]         commonservice-0.1.86 -> commonservice-0.1.86
* [new tag]         commonservice-0.1.87 -> commonservice-0.1.87
$ git config remote.origin.url http://x.y.z/group/repository.git

$ git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
$ git pull origin master

* branch            master     -> FETCH_HEAD
$ git checkout master
Already on 'master'
$ ls
infinitest.filters  lib  mvnw  mvnw.cmd  pom.xml  src
{code}

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 5:58:03 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza updated an issue
Change By: Andy Costanza
Attachment: 2016-06-29 10_04_21-Update Center [Jenkins] – Chromium.png

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 5:58:04 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza updated an issue
Change By: Andy Costanza
Attachment: 2016-06-29 10_04_04-Update Center [Jenkins] – Chromium.png

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 5:58:04 AM6/29/16
to jenkinsc...@googlegroups.com
Andy Costanza updated an issue
Change By: Andy Costanza
Attachment: 2016-06-29 10_03_41-Update Center [Jenkins] – Chromium.png

andy.costanza@gmail.com (JIRA)

unread,
Jun 29, 2016, 6:00:01 AM6/29/16
to jenkinsc...@googlegroups.com
 
Re: git fetch returned status code 143 after 10 minute timeout

ok, after checking my proxy configuation, I add my gitlab URL to proxy exeption and ... it works.

d.halin.lee@gmail.com (JIRA)

unread,
Dec 11, 2016, 10:50:02 PM12/11/16
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 11, 2016, 10:55:02 PM12/11/16
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-36269
 
Re: git fetch returned status code 143 after 10 minute timeout

That's great news. Any suggestions on how the plugin could have detected and isolated that problem for you? There is an ongoing pattern of authentication issues which users encounter. They typically result in a bug report (like this one), which I close. It would be much better if I could find ways to provide a detailed diagnosis of the exact location in the chain where the authentication failed.

d.halin.lee@gmail.com (JIRA)

unread,
Dec 11, 2016, 11:03:01 PM12/11/16
to jenkinsc...@googlegroups.com

d.halin.lee@gmail.com (JIRA)

unread,
Dec 11, 2016, 11:05:01 PM12/11/16
to jenkinsc...@googlegroups.com
Halin Lee updated an issue
Change By: Halin Lee
Attachment: NetworkRecord.png

d.halin.lee@gmail.com (JIRA)

unread,
Dec 11, 2016, 11:07:01 PM12/11/16
to jenkinsc...@googlegroups.com
Halin Lee commented on Bug JENKINS-36269
 
Re: git fetch returned status code 143 after 10 minute timeout

I have the same issue,but still not figure out,

My log:

My Setting:

My Network Record:

The third request is successful authenticated

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 22, 2019, 9:32:26 PM10/22/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Not A Defect
 
Change By: Mark Waite
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages