[JIRA] [git-plugin] (JENKINS-31644) Git checkout fails on Windows Server 2012: fatal: unable to join threaded lstat

13 views
Skip to first unread message

alexander.veit@gmx.net (JIRA)

unread,
Nov 19, 2015, 3:10:01 AM11/19/15
to jenkinsc...@googlegroups.com
Alexander Veit created an issue
 
Jenkins / Bug JENKINS-31644
Git checkout fails on Windows Server 2012: fatal: unable to join threaded lstat
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin
Created: 19/Nov/15 8:09 AM
Priority: Critical Critical
Reporter: Alexander Veit

Git plugin is unable to checkout the current version in ist workspace:

Baue in Arbeitsbereich D:\jenkins\jobs\theproject\workspace
> git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git.exe config remote.origin.url git@gitcentral:/gitrepo/theproject.git # timeout=10
Fetching upstream changes from git@gitcentral:/gitrepo/theproject.git
> git.exe --version # timeout=10
using GIT_SSH to set credentials
> git.exe -c core.askpass=true fetch --tags --progress git@gitcentral:/gitrepo/theproject.git +refs/heads/:refs/remotes/origin/
> git.exe rev-parse "refs/remotes/origin/master^

{commit}" # timeout=10
> git.exe rev-parse "refs/remotes/origin/origin/master^{commit}

" # timeout=10
Checking out Revision 4ee382f1cad8053031c96f90281f4d85da6cdbb9 (refs/remotes/origin/master)
> git.exe config core.sparsecheckout # timeout=10
> git.exe checkout -f 4ee382f1cad8053031c96f90281f4d85da6cdbb9
FATAL: Could not checkout 4ee382f1cad8053031c96f90281f4d85da6cdbb9
hudson.plugins.git.GitException: Could not checkout 4ee382f1cad8053031c96f90281f4d85da6cdbb9
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$8.execute(CliGitAPIImpl.java:1907)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1060)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.plugins.git.GitException: Command "git.exe checkout -f 4ee382f1cad8053031c96f90281f4d85da6cdbb9" returned status code 128:
stdout:
stderr: fatal: unable to join threaded lstat

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:62)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$8.execute(CliGitAPIImpl.java:1899)
... 10 more
Finished: FAILURE

From the Windows cmd prompt git status produces the same error:

D:\jenkins\jobs\theproject\workspace>git status
fatal: unable to join threaded lstat

However when running git status from the gitbash shell this error does not occur.

$ git version
git version 2.6.3.windows.1

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

alexander.veit@gmx.net (JIRA)

unread,
Nov 19, 2015, 3:13:01 AM11/19/15
to jenkinsc...@googlegroups.com
Alexander Veit updated an issue
Change By: Alexander Veit
Git plugin is unable to checkout the current version in ist workspace:

Baue in Arbeitsbereich D:\jenkins\jobs\theproject\workspace
 > git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git.exe config remote.origin.url git@gitcentral:/gitrepo/theproject.git # timeout=10
Fetching upstream changes from git@gitcentral:/gitrepo/theproject.git
 > git.exe --version # timeout=10
using GIT_SSH to set credentials 
 > git.exe -c core.askpass=true fetch --tags --progress git@gitcentral:/gitrepo/theproject.git +refs/heads/*:refs/remotes/origin/*

 > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision 4ee382f1cad8053031c96f90281f4d85da6cdbb9 (refs/remotes/origin/master)
 > git.exe config core.sparsecheckout # timeout=10
 > git.exe checkout -f 4ee382f1cad8053031c96f90281f4d85da6cdbb9
FATAL: Could not checkout 4ee382f1cad8053031c96f90281f4d85da6cdbb9
hudson.plugins.git.GitException: Could not checkout 4ee382f1cad8053031c96f90281f4d85da6cdbb9
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$8.execute(CliGitAPIImpl.java:1907)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1060)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.plugins.git.GitException: Command "git.exe checkout -f 4ee382f1cad8053031c96f90281f4d85da6cdbb9" returned status code 128:
stdout: 
stderr: *fatal: unable to join threaded lstat*


at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:62)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$8.execute(CliGitAPIImpl.java:1899)
... 10 more
Finished: FAILURE

From the Windows cmd prompt git status produces the same error:

 D:\jenkins\jobs\theproject\workspace>git status
 fatal: unable to join threaded lstat

However when running git status from the gitbash shell this error does not occur.

 $ git version
 git version 2.6.3.windows.1

The repository size is ~230 MB

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

unread,
Nov 19, 2015, 8:13:04 AM11/19/15
to jenkinsc...@googlegroups.com
Mark Waite resolved as Not A Defect
 

Refer to this stackoverflow article for a description of this command line git failure mode. The failure in that stackoverflow article is on a Linux machine rather than Windows, but has the same basic cause.

The command line git program was unable to create a thread to perform file system operations in parallel.

If that happens often, the git-config man page (and the git source code) suggests that you can avoid that section of code by setting `core.preloadIndex = false` in the configuration for that repository (or the global git configuration for that machine).

I'm closing this bug report because I believe the plugin should not attempt to solve this problem with a system resource limit affecting command line git.

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

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

unread,
Nov 19, 2015, 8:14:01 AM11/19/15
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-31644
 
Re: Git checkout fails on Windows Server 2012: fatal: unable to join threaded lstat
Refer to this [stackoverflow article|http://stackoverflow.com/questions/33255285/i-get-fatal-unable-to-create-threaded-lstat-error-when-i-run-git-status-com] for a description of this command line git failure mode.  The failure in that stackoverflow article is on a Linux machine rather than Windows, but has the same basic cause.


The command line git program was unable to create a thread to perform file system operations in parallel.

If that happens often, the [git-config man page|https://www.kernel.org/pub/software/scm/git/docs/git-config.html] (and the git source code) suggests that you can avoid that section of code by setting  `
{noformat}
core.preloadIndex = false `
{noformat}
 in the configuration for that repository (or the global git configuration for that machine).

I'm closing this bug report because I believe the plugin should not attempt to solve this problem with a system resource limit affecting command line git.

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

unread,
Nov 19, 2015, 8:21:01 AM11/19/15
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-31644
Refer to this [stackoverflow article|http://stackoverflow.com/questions/33255285/i-get-fatal-unable-to-create-threaded-lstat-error-when-i-run-git-status-com] for a description of this command line git failure mode.  The failure in that stackoverflow article is on a Linux machine rather than Windows, but has the same basic cause.

The command line git program was unable to  create  join  a thread  which had been created  to perform file system operations in parallel.


If that happens often, the [git-config man page|https://www.kernel.org/pub/software/scm/git/docs/git-config.html] (and the git source code) suggests that you can avoid that section of code by setting
{noformat}
core.preloadIndex = false
{noformat}
 in the configuration for that repository (or the global git configuration for that  user or that  machine).


I'm closing this bug report because I believe the plugin should not attempt to solve this problem with a system resource limit affecting command line git.

alexander.veit@gmx.net (JIRA)

unread,
Nov 20, 2015, 2:39:01 AM11/20/15
to jenkinsc...@googlegroups.com

That helped. Thank you very much.

However, the error message is not very helpful. I've filed a bug with Git for Windows (https://github.com/git-for-windows/git/issues/538).

For the Jenkins plugin I wish it would be possible to set such properties at the GUI since not everybody has access to the Jenkins server.

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

unread,
Oct 22, 2019, 9:33:27 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