Thanks Mark! I had not seen all of those reports. I shall investigate.

Terry

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mark Waite
Sent: Tuesday, May 19, 2015 7:16 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Git polling: could not lock config file .git/config: File exists

There are a few bug reports which might give you hints of things to try.  The 
bug reports do not mention your specific case ("File exists"), but the ideas 
may help you explore the problem further.

https://issues.jenkins-ci.org/browse/JENKINS-21914 - matches your error 
message, but I can't duplicate it
https://issues.jenkins-ci.org/browse/JENKINS-21376 - different error message, 
but related to lock file
https://issues.jenkins-ci.org/browse/JENKINS-24179 - different error message
https://issues.jenkins-ci.org/browse/JENKINS-25353 - lingering lock file (not 
likely related to this one)

Mark Waite


On Tue, May 19, 2015 at 3:46 PM Dunnigan, Terrence J 
<terrence.j.dunni...@boeing.com<mailto:terrence.j.dunni...@boeing.com>> wrote:
I’ve seen this error more than a few times on some of my machines:

Has anyone else seen this?

Jenkins 1.554.3, Git plugin 2.2.9, Git client plugin 1.12.0
Windows 7 Slave connected as a service
Git 1.9.5.msysgit.1 running on the slave


Started on May 19, 2015 4:30:39 PM
Polling SCM changes on Basic
Using strategy: Default
[poll] Last Built Revision: Revision de4fc75113af9b795c2ce1c94e59bf4566c24855 
(origin/latest/int, origin/master)
> C:\Program Files (x86)\Git\cmd\git.exe rev-parse --is-inside-work-tree # 
> timeout=120
Fetching changes from the remote Git repositories
> C:\Program Files (x86)\Git\cmd\git.exe config remote.origin.url 
> git@server:repo.git<mailto:git@server:repo.git> # timeout=120
FATAL: hudson.plugins.git.GitException: Failed to fetch from 
git@server:repo.git<mailto:git@server:repo.git>
hudson.util.IOException2: hudson.plugins.git.GitException: Failed to fetch from 
git@server:repo.git<mailto:git@server:repo.git>
     at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:496)
     at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
     at hudson.scm.SCM.poll(SCM.java:373)
     at 
hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1605)
     at hudson.model.AbstractProject._poll(AbstractProject.java:1575)
     at hudson.model.AbstractProject.poll(AbstractProject.java:1493)
     at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:462)
     at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:491)
     at 
hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:745)
Caused by: hudson.plugins.git.GitException: Failed to fetch from 
git@server:repo.git<mailto:git@server:repo.git>
     at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:668)
     at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:575)
     at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:494)
     ... 13 more
Caused by: hudson.plugins.git.GitException: Command "C:\Program Files 
(x86)\Git\cmd\git.exe config remote.origin.url 
git@server:repo.git<mailto:git@server:repo.git>" returned status code 255:
stdout:
stderr: error: could not lock config file .git/config: File exists

     at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1442)
     at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1418)
     at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1414)
     at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1117)
     at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1127)
     at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.setRemoteUrl(CliGitAPIImpl.java:839)
     at hudson.plugins.git.GitAPI.setRemoteUrl(GitAPI.java:120)
     at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
     at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280)
     at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239)
     at hudson.remoting.UserRequest.perform(UserRequest.java:118)
     at hudson.remoting.UserRequest.perform(UserRequest.java:48)
     at hudson.remoting.Request$2.run(Request.java:328)
     at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
     at java.util.concurrent.FutureTask.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Done. Took 0.1 sec
No changes

Thanks,

Terry
--
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-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9AD8B655B5126D4FAE1397203CDDBF2D18A9E5%40XCH-PHX-205.sw.nos.boeing.com<https://groups.google.com/d/msgid/jenkinsci-users/9AD8B655B5126D4FAE1397203CDDBF2D18A9E5%40XCH-PHX-205.sw.nos.boeing.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHFXJWO1DMA-XiRnH09Y88gf9O_UaFFW_TXJzGXy571xA%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHFXJWO1DMA-XiRnH09Y88gf9O_UaFFW_TXJzGXy571xA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9AD8B655B5126D4FAE1397203CDDBF2D18ACF5%40XCH-PHX-205.sw.nos.boeing.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to