Occasional issues with Jenkins job

426 views
Skip to first unread message

Ron Morin

unread,
May 19, 2015, 3:38:17 PM5/19/15
to jenkins...@googlegroups.com
hi,

I am not sure if this is the correct place to post Jenkins questions\issues. so please point me to the right  place if this is not the right forum.

I am seeing two issues that come up frequently.

1.) in the Jenkins log  I see the error message:

May 19, 2015 12:57:05 PM SEVERE hudson.triggers.SCMTrigger$Runner runPolling
Failed to record SCM polling for hudson.model.FreeStyleProject@2bc957f4[Deploy Integrated Analytics]
org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id : Process leaked file descriptors. See http
://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build

I have looked at the web link but do not see how it applies.

2.) Occasionally Jenkins jobs will fail with a timeout error message trying to pull from git. This is because on the Jenkins host there are many git processes running seemingly doing nothing 

I am using Jenkins on windows Ver:1.595  the Git Client Plugin ver: 1.17.0 and GIT plugin ver: 2.3.5

and the git client is ver:1.9.5.msysgit.1 

Any help will be appreciated
Thanks
-Ron

Gösen Jojjasson

unread,
May 25, 2015, 5:36:32 AM5/25/15
to jenkins...@googlegroups.com
Hi,

We are experiencing your first problem (1) very often and I have no clue why.
Jenkins running on CentOS against a local GitLab repo.
Jenkins ver. 1.602
GIT client plugin ver. 1.17.1
GIT plugin ver. 2.3.5
/usr/bin/git --version ver. 1.8.3.1

> /usr/bin/git config --local --remove-section credential # timeout=10
ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@3b875e0e[project-name-XYZ]
org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id : Process leaked file descriptors. See htt
at org.eclipse.jgit.lib.ObjectId.fromHexString(ObjectId.java:245)
at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:233)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2333)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:576)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:526)
at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:380)
at hudson.scm.SCM.poll(SCM.java:397)
at hudson.model.AbstractProject._poll(AbstractProject.java:1446)
at hudson.model.AbstractProject.poll(AbstractProject.java:1349)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
...

Any help appreciated!

Best regards,
Gösta

Mark Waite

unread,
May 25, 2015, 8:17:01 AM5/25/15
to jenkins...@googlegroups.com
I'm not aware of any known cases where the current git plugin leaks file descriptors.  However, there are several different bug reports from the past that might be worth reviewing to see if they provide any hints for your case

https://issues.jenkins-ci.org/browse/JENKINS-17894 - don't use gitk.cmd (or git.cmd), use git.exe
https://issues.jenkins-ci.org/browse/JENKINS-20356 - don't use ssh URL if slave or master running as Windows service
http://stackoverflow.com/questions/22660446/invalid-id-process-leaked-file-descriptors-jenkins - similar stack trace to first question on this thread, but the answer is not really an answer

You might also check if you're using a shallow clone in the job definition which might be causing the reading of history to fail.

Mark Waite  

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/93103458-dfa8-4e4f-8275-39d2b4817e43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages