-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Versions
-------------------------------------------------------------------------------
Operating System:
Jenkins is running on an x86_64 GNU/Linux Ubuntu server.
The slave is running Windows 7 Professional
JRE/JDK vendors and versions:
Master:
$ java -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~12.04-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
Slave:
$ java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) Client VM (build 25.40-b25, mixed mode)
Jenkins and plugin versions:
We are currently running Jenkins 2.73, with Jenkins Git plugin 3.5.1
(org.jenkins-ci.plugins:git:3.5.1) and Jenkins Git client plugin 2.50
(org.jenkins-ci.plugins:git-client:2.5.0). This version of the Jenkins Git
client plugin uses JGit Core 4.5.2
(org.eclipse.jgit:org.eclipse.jgit:4.5.2.201704071617-r).
running Jenkins directly or in a container:
Directly.
reverse proxy:
No.
How you installed Jenkins:
Server: Package manager
Slave: ???
how you're launching any involved slave nodes:
???
-------------------------------------------------------------------------------
System Properties
Name ↓
Value
awt.toolkit sun.awt.X11.XToolkit
executable-war /usr/share/jenkins/jenkins.war
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
hudson.DNSMultiCast.disabled true
hudson.model.DirectoryBrowserSupport.CSP sandbox allow-scripts; default-src 'none'; img-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline';
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path /usr/share/jenkins/jenkins.war
java.class.version 52.0
java.endorsed.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed
java.ext.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext
java.home /usr/lib/jvm/java-8-openjdk-amd64/jre
java.io.tmpdir /tmp
java.library.path /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
java.net.preferIPv4Stack true
java.runtime.name OpenJDK Runtime Environment
java.runtime.version 1.8.0_111-8u111-b14-3~12.04-b14
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.8.0_111
java.vm.info mixed mode
java.vm.name OpenJDK 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.8
java.vm.vendor Oracle Corporation
java.vm.version 25.111-b14
jna.loaded true
jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib:/usr/lib/x86_64-linux-gnu/mesa
jnidispatch.path /tmp/jna--1712433994/jna1694121800813214267.tmp
line.separator
mail.smtp.sendpartial true
mail.smtps.sendpartial true
os.arch amd64
os.name Linux
os.version 3.2.0-95-generic
path.separator :
sun.arch.data.model 64
sun.boot.class.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes
sun.boot.library.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.font.fontmanager sun.awt.X11FontManager
sun.io.unicode.encoding UnicodeLittle
sun.java.command /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8800 --ajp13Port=-1
sun.java.launcher SUN_STANDARD
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.country US
user.dir /
user.home /var/lib/jenkins
user.language en
user.name jenkins
user.timezone Europe/Amsterdam
Environment Variables
Name ↓
Value
_ /usr/bin/daemon
HOME /var/lib/jenkins
JENKINS_HOME /var/lib/jenkins
LANG en_US.UTF-8
LOGNAME jenkins
MAIL /var/mail/jenkins
NODE_PATH /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD /var/lib/jenkins
SHELL /bin/bash
SHLVL 1
USER jenkins
XDG_SESSION_COOKIE c19799cd8fb889564ed57d064ea916b4-1503374409.796847-641491108
Plugins
Name ↓
Version
Enabled
accelerated-build-now-plugin 1.0.1 false
ace-editor 1.1 true
active-directory 1.47 true
analysis-core 1.92 true
android-lint 2.3 true
ansicolor 0.5.0 true
ant 1.3 true
antisamy-markup-formatter 1.5 true
authentication-tokens 1.3 true
blueocean 1.1.6 true
blueocean-autofavorite 1.0.0 true
blueocean-commons 1.1.6 true
blueocean-config 1.1.6 true
blueocean-dashboard 1.1.6 true
blueocean-display-url 2.1.0 true
blueocean-events 1.1.6 true
blueocean-git-pipeline 1.1.6 true
blueocean-github-pipeline 1.1.6 true
blueocean-i18n 1.1.6 true
blueocean-jwt 1.1.6 true
blueocean-personalization 1.1.6 true
blueocean-pipeline-api-impl 1.1.6 true
blueocean-pipeline-editor 0.2.0 true
blueocean-pipeline-scm-api 1.1.6 true
blueocean-rest 1.1.6 true
blueocean-rest-impl 1.1.6 true
blueocean-web 1.1.6 true
bouncycastle-api 2.16.2 true
branch-api 2.0.10 true
build-timeout 1.18 true
built-on-column 1.1 true
cloudbees-folder 6.1.2 true
cluster-stats 0.4.6 true
cobertura 1.9.8 true
ColumnsPlugin 1.0 true
conditional-buildstep 1.3.6 true
config-file-provider 2.11 true
console-column-plugin 1.5 true
copy-to-slave 1.4.4 true
copyartifact 1.38.1 true
cppcheck 1.21 true
credentials 2.1.14 true
credentials-binding 1.12 true
cvs 2.13 true
cygpath 1.5 true
cygwin-process-killer 0.1 true
dashboard-view 2.9.11 true
display-url-api 2.0 true
docker-commons 1.8 true
docker-workflow 1.12 true
dry 2.49 true
durable-task 1.14 true
envinject 2.1.3 true
envinject-api 1.2 true
Exclusion 0.12 true
external-monitor-job 1.7 true
extra-columns 1.18 true
favorite 2.3.0 true
git 3.5.1 true
git-client 2.5.0 true
git-server 1.7 true
github 1.27.0 true
github-api 1.86 true
github-branch-source 2.0.6 true
graphiteIntegrator 1.2 true
handlebars 1.1.1 true
htmlpublisher 1.14 true
http_request 1.8.20 true
icon-shim 2.0.3 true
ios-device-connector 1.2 true
ivy 1.26 true
jackson2-api 2.7.3 true
javadoc 1.4 true
jenkins-multijob-plugin 1.27 true
jobcopy-builder 1.3.0 true
jquery 1.11.2-0 true
jquery-detached 1.2.1 true
junit 1.21 true
kpp-management-plugin 1.0.0 true
ldap 1.12 true
lockable-resources 2.0 true
mailer 1.20 true
mapdb-api 1.0.9.0 true
matrix-auth 1.7 true
matrix-project 1.11 true
maven-plugin 2.13 true
metrics 3.1.2.10 true
momentjs 1.1.1 true
multiple-scms 0.6 true
nodelabelparameter 1.7.2 true
nunit 0.21 true
pam-auth 1.3 true
parameterized-trigger 2.35.1 true
pipeline-build-step 2.5.1 true
pipeline-graph-analysis 1.5 true
pipeline-input-step 2.8 true
pipeline-milestone-step 1.3.1 true
pipeline-model-api 1.1.9 true
pipeline-model-declarative-agent 1.1.1 true
pipeline-model-definition 1.1.9 true
pipeline-model-extensions 1.1.9 true
pipeline-rest-api 2.8 true
pipeline-stage-step 2.2 true
pipeline-stage-tags-metadata 1.1.9 true
pipeline-stage-view 2.8 true
pipeline-utility-steps 1.4.0 true
plain-credentials 1.4 true
PrioritySorter 3.5.1 true
project-stats-plugin 0.4 true
pubsub-light 1.12 true
python 1.3 true
resource-disposer 0.7 true
run-condition 1.0 true
scm-api 2.2.0 true
script-security 1.31 true
sicci_for_xcode 0.0.8 true
sloccount 1.21 true
sse-gateway 1.15 true
ssh-credentials 1.13 true
ssh-slaves 1.20 true
structs 1.10 true
subversion 2.9 true
TestComplete 1.5 true
token-macro 2.1 true
tracking-git 1.0 true
translation 1.15 true
variant 1.1 true
view-job-filters 1.27 true
windows-slaves 1.1 true
workflow-aggregator 2.5 true
workflow-api 2.20 true
workflow-basic-steps 2.6 true
workflow-cps 2.39 true
workflow-cps-global-lib 2.8 true
workflow-durable-task-step 2.13 true
workflow-job 2.14.1 true
workflow-multibranch 2.16 true
workflow-scm-step 2.6 true
workflow-step-api 2.12 true
workflow-support 2.14 true
ws-cleanup 0.34 true
xcode-plugin 1.4.9 true
xunit 1.102 true
xvfb 1.1.3 true
Versions ------------------------------------------------------------------------------- Operating System: Jenkins is running on an x86_64 GNU/Linux Ubuntu server. The slave is running Windows 7 Professional JRE/JDK vendors and versions: Master: $ java -version openjdk version "1.8.0_111" OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~12.04-b14) OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode) Slave: $ java -version java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b26) Java HotSpot(TM) Client VM (build 25.40-b25, mixed mode) Jenkins and plugin versions: We are currently running Jenkins 2.73, with Jenkins Git plugin 3.5.1 (org.jenkins-ci.plugins:git:3.5.1) and Jenkins Git client plugin 2.50 (org.jenkins-ci.plugins:git-client:2.5.0). This version of the Jenkins Git client plugin uses JGit Core 4.5.2 (org.eclipse.jgit:org.eclipse.jgit:4.5.2.201704071617-r). running Jenkins directly or in a container: Directly. reverse proxy: No. How you installed Jenkins: Server: Package manager Slave: ??? how you're launching any involved slave nodes: ??? ------------------------------------------------------------------------------- System Properties Name ↓ Value awt.toolkit sun.awt.X11.XToolkit executable-war /usr/share/jenkins/jenkins.war file.encoding UTF-8 file.encoding.pkg sun.io file.separator / hudson.DNSMultiCast.disabled true hudson.model.DirectoryBrowserSupport.CSP sandbox allow-scripts; default-src 'none'; img-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.awt.headless true java.awt.printerjob sun.print.PSPrinterJob java.class.path /usr/share/jenkins/jenkins.war java.class.version 52.0 java.endorsed.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed java.ext.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext java.home /usr/lib/jvm/java-8-openjdk-amd64/jre java.io.tmpdir /tmp java.library.path /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib java.net.preferIPv4Stack true java.runtime.name OpenJDK Runtime Environment java.runtime.version 1.8.0_111-8u111-b14-3~12.04-b14 java.specification.name Java Platform API Specification java.specification.vendor Oracle Corporation java.specification.version 1.8 java.vendor Oracle Corporation java.vendor.url http://java.oracle.com/ java.vendor.url.bug http://bugreport.sun.com/bugreport/ java.version 1.8.0_111 java.vm.info mixed mode java.vm.name OpenJDK 64-Bit Server VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Oracle Corporation java.vm.specification.version 1.8 java.vm.vendor Oracle Corporation java.vm.version 25.111-b14 jna.loaded true jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib:/usr/lib/x86_64-linux-gnu/mesa jnidispatch.path /tmp/jna--1712433994/jna1694121800813214267.tmp line.separator mail.smtp.sendpartial true mail.smtps.sendpartial true os.arch amd64 os.name Linux os.version 3.2.0-95-generic path.separator : sun.arch.data.model 64 sun.boot.class.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes sun.boot.library.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64 sun.cpu.endian little sun.cpu.isalist sun.font.fontmanager sun.awt.X11FontManager sun.io.unicode.encoding UnicodeLittle sun.java.command /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8800 --ajp13Port=-1 sun.java.launcher SUN_STANDARD sun.jnu.encoding UTF-8 sun.management.compiler HotSpot 64-Bit Tiered Compilers sun.os.patch.level unknown svnkit.http.methods Digest,Basic,NTLM,Negotiate svnkit.ssh2.persistent false user.country US user.dir / user.home /var/lib/jenkins user.language en user.name jenkins user.timezone Europe/Amsterdam Environment Variables Name ↓ Value _ /usr/bin/daemon HOME /var/lib/jenkins JENKINS_HOME /var/lib/jenkins LANG en_US.UTF-8 LOGNAME jenkins MAIL /var/mail/jenkins NODE_PATH /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD /var/lib/jenkins SHELL /bin/bash SHLVL 1 USER jenkins XDG_SESSION_COOKIE c19799cd8fb889564ed57d064ea916b4-1503374409.796847-641491108 Plugins Name ↓ Version Enabled accelerated-build-now-plugin 1.0.1 false ace-editor 1.1 true active-directory 1.47 true analysis-core 1.92 true android-lint 2.3 true ansicolor 0.5.0 true ant 1.3 true antisamy-markup-formatter 1.5 true authentication-tokens 1.3 true blueocean 1.1.6 true blueocean-autofavorite 1.0.0 true blueocean-commons 1.1.6 true blueocean-config 1.1.6 true blueocean-dashboard 1.1.6 true blueocean-display-url 2.1.0 true blueocean-events 1.1.6 true blueocean-git-pipeline 1.1.6 true blueocean-github-pipeline 1.1.6 true blueocean-i18n 1.1.6 true blueocean-jwt 1.1.6 true blueocean-personalization 1.1.6 true blueocean-pipeline-api-impl 1.1.6 true blueocean-pipeline-editor 0.2.0 true blueocean-pipeline-scm-api 1.1.6 true blueocean-rest 1.1.6 true blueocean-rest-impl 1.1.6 true blueocean-web 1.1.6 true bouncycastle-api 2.16.2 true branch-api 2.0.10 true build-timeout 1.18 true built-on-column 1.1 true cloudbees-folder 6.1.2 true cluster-stats 0.4.6 true cobertura 1.9.8 true ColumnsPlugin 1.0 true conditional-buildstep 1.3.6 true config-file-provider 2.11 true console-column-plugin 1.5 true copy-to-slave 1.4.4 true copyartifact 1.38.1 true cppcheck 1.21 true credentials 2.1.14 true credentials-binding 1.12 true cvs 2.13 true cygpath 1.5 true cygwin-process-killer 0.1 true dashboard-view 2.9.11 true display-url-api 2.0 true docker-commons 1.8 true docker-workflow 1.12 true dry 2.49 true durable-task 1.14 true envinject 2.1.3 true envinject-api 1.2 true Exclusion 0.12 true external-monitor-job 1.7 true extra-columns 1.18 true favorite 2.3.0 true git 3.5.1 true git-client 2.5.0 true git-server 1.7 true github 1.27.0 true github-api 1.86 true github-branch-source 2.0.6 true graphiteIntegrator 1.2 true handlebars 1.1.1 true htmlpublisher 1.14 true http_request 1.8.20 true icon-shim 2.0.3 true ios-device-connector 1.2 true ivy 1.26 true jackson2-api 2.7.3 true javadoc 1.4 true jenkins-multijob-plugin 1.27 true jobcopy-builder 1.3.0 true jquery 1.11.2-0 true jquery-detached 1.2.1 true junit 1.21 true kpp-management-plugin 1.0.0 true ldap 1.12 true lockable-resources 2.0 true mailer 1.20 true mapdb-api 1.0.9.0 true matrix-auth 1.7 true matrix-project 1.11 true maven-plugin 2.13 true metrics 3.1.2.10 true momentjs 1.1.1 true multiple-scms 0.6 true nodelabelparameter 1.7.2 true nunit 0.21 true pam-auth 1.3 true parameterized-trigger 2.35.1 true pipeline-build-step 2.5.1 true pipeline-graph-analysis 1.5 true pipeline-input-step 2.8 true pipeline-milestone-step 1.3.1 true pipeline-model-api 1.1.9 true pipeline-model-declarative-agent 1.1.1 true pipeline-model-definition 1.1.9 true pipeline-model-extensions 1.1.9 true pipeline-rest-api 2.8 true pipeline-stage-step 2.2 true pipeline-stage-tags-metadata 1.1.9 true pipeline-stage-view 2.8 true pipeline-utility-steps 1.4.0 true plain-credentials 1.4 true PrioritySorter 3.5.1 true project-stats-plugin 0.4 true pubsub-light 1.12 true python 1.3 true resource-disposer 0.7 true run-condition 1.0 true scm-api 2.2.0 true script-security 1.31 true sicci_for_xcode 0.0.8 true sloccount 1.21 true sse-gateway 1.15 true ssh-credentials 1.13 true ssh-slaves 1.20 true structs 1.10 true subversion 2.9 true TestComplete 1.5 true token-macro 2.1 true tracking-git 1.0 true translation 1.15 true variant 1.1 true view-job-filters 1.27 true windows-slaves 1.1 true workflow-aggregator 2.5 true workflow-api 2.20 true workflow-basic-steps 2.6 true workflow-cps 2.39 true workflow-cps-global-lib 2.8 true workflow-durable-task-step 2.13 true workflow-job 2.14.1 true workflow-multibranch 2.16 true workflow-scm-step 2.6 true workflow-step-api 2.12 true workflow-support 2.14 true ws-cleanup 0.34 true xcode-plugin 1.4.9 true xunit 1.102 true xvfb 1.1.3 true
We are having intermittent problems checkout out some of our repositories. We're not entirely sure what happens, but it seems that when a particular commit is being present in the branch history, the checkout will fail in the following way (redacted):
---8<--------- (initialisation) ... (checkout of other repositories) ... Cloning the remote Git repository Cloning repository git+ssh://git@git.company.com/reponame > C:\Program Files\Git\cmd\git.exe init ...\workspace\product\git\reponame # timeout=10 Fetching upstream changes from git+ssh://git@git.company.com/reponame > C:\Program Files\Git\cmd\git.exe --version # timeout=10 using GIT_SSH to set credentials > C:\Program Files\Git\cmd\git.exe fetch --tags --progress git+ssh://git@git.company.com/reponame +refs/heads/*:refs/remotes/origin/* # timeout=20 > C:\Program Files\Git\cmd\git.exe config remote.origin.url git+ssh://git@git.company.com/reponame # timeout=10 > C:\Program Files\Git\cmd\git.exe config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > C:\Program Files\Git\cmd\git.exe config remote.origin.url git+ssh://git@git.company.com/reponame # timeout=10 Fetching upstream changes from git+ssh://git@git.company.com/reponame using GIT_SSH to set credentials > C:\Program Files\Git\cmd\git.exe fetch --tags --progress git+ssh://git@git.company.com/reponame +refs/heads/*:refs/remotes/origin/* # timeout=20 > C:\Program Files\Git\cmd\git.exe rev-parse "origin/bugfix-branch^\{commit}" # timeout=10 Checking out Revision 721397010a24a218e8619e07645d99afe0fabb52 (origin/bugfix-branch) java.lang.StackOverflowError at java.lang.ThreadLocal.get(Unknown Source) at sun.nio.fs.NativeBuffers.getNativeBufferFromCache(Unknown Source) at sun.nio.fs.WindowsNativeDispatcher.asNativeBuffer(Unknown Source) at sun.nio.fs.WindowsNativeDispatcher.GetFileAttributesEx(Unknown Source) at sun.nio.fs.WindowsFileAttributes.get(Unknown Source) at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source) at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.readAttributes(Unknown Source) at java.nio.file.Files.readAttributes(Unknown Source) at java.nio.file.Files.getLastModifiedTime(Unknown Source) at org.eclipse.jgit.util.FileUtils.lastModified(FileUtils.java:563) at org.eclipse.jgit.util.FS.lastModified(FS.java:299) at org.eclipse.jgit.internal.storage.file.FileSnapshot.isModified(FileSnapshot.java:164) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.searchPacksAgain(ObjectDirectory.java:688) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedObject(ObjectDirectory.java:435) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:390) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:394) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:394) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:394) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:394) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:394) ... (snip 999 repeats) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:394) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:394) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:394) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:394) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:394) at ......remote call to Channel to /<ip-address>(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1554) at hudson.remoting.UserResponse.retrieve(UserRequest.java:281) at hudson.remoting.Channel.call(Channel.java:839) Caused: java.io.IOException: Remote call on Channel to /<ip-address> failed at hudson.remoting.Channel.call(Channel.java:847) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:257) at com.sun.proxy.$Proxy97.withRepository(Unknown Source) at org.jenkinsci.plugins.gitclient.RemoteGitImpl.withRepository(RemoteGitImpl.java:235) at hudson.plugins.git.GitSCM.printCommitMessageToLog(GitSCM.java:1195) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1159) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143) at hudson.scm.SCM.checkout(SCM.java:495) at hudson.model.AbstractProject.checkout(AbstractProject.java:1212) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485) at hudson.model.Run.execute(Run.java:1737) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:419) Sending e-mails to: developers@company.com [WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done Finished: FAILURE --->8---------
So far the only way we've found to resolve the problem is to omit (note: not revert, that does not help) the commit in question from the branch's history. However, this commit contains a critical bug fix and is required to be released on this branch, so simply leaving it out is not an option for us. Moreover, we are worried that this problem may start cropping up on other branches too.
We suspect that that the problem is with the version of JGit Core that is used by the Jenkins Git client plugin. Looking at the changes to JGit Core, we see the following change which fixes something which sounds suspiciously like the problem we are currently experiencing:
However, we don't really see any 'alternates' files in the repository's .git folder so we're not 100% certain that this is really the problem, although we admit that we are not familiar with Git internals.
PS. we found a workaround, we made a new reference checkout on the build machine with the problem and it the crashes have vanished. We do still have the old one so expect to be able to reproduce again.