How to alleviate error when running a multi-branch pipeline scan?

236 views
Skip to first unread message

zil...@gmail.com

unread,
Sep 5, 2023, 4:50:15 PM9/5/23
to Jenkins Users
I created a new multi-branch pipeline, but made a mistake and configured it to scan ALL branches, which is a LOT of them.

I therefore deleted the pipeline.

I created another one, and this time only included the master branch.

However, when I ran a scan, I get

FATAL: Failed to recompute children of CMM-Builder org.eclipse.jgit.errors.LockFailedException: Cannot lock /var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/.git/config. Ensure that no other process has an open file handle on the lock file /var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/.git/config.lock, then you may delete the lock file and retry. at org.eclipse.jgit.storage.file.FileBasedConfig.save(FileBasedConfig.java:221) at jenkins.plugins.git.GitHooksConfiguration.disable(GitHooksConfiguration.java:139) at jenkins.plugins.git.GitHooksConfiguration.lambda$configure$2f1f6402$1(GitHooksConfiguration.java:113) at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:87) at jenkins.plugins.git.GitHooksConfiguration.configure(GitHooksConfiguration.java:112) at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:377) at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:350) at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:590) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:283) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:640) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:166) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1031) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Finished: FAILURE

I went on the Jenkins master node and deleted the whole /var.../git-30f6fb77245bdf4480300d8825694e98 directory.

However, I'm still getting the same error when I run the scan. What to do?

zil...@gmail.com

unread,
Sep 5, 2023, 4:52:04 PM9/5/23
to Jenkins Users
BTW. before deleting the whole var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/ directory, I looked for the config.lock file and it wasn't there.

zil...@gmail.com

unread,
Sep 5, 2023, 6:28:11 PM9/5/23
to Jenkins Users
I even restarted my Jenkins master node to no avail.

Chris

Reply all
Reply to author
Forward
0 new messages