I even restarted my Jenkins master node to no avail. Chris
On Tuesday, September 5, 2023 at 4:52:04 PM UTC-4 [email protected] wrote: > BTW. before deleting the whole > var/jenkins_home/caches/git-30f6fb77245bdf4480300d8825694e98/ directory, > I looked for the config.lock file and it wasn't there. > On Tuesday, September 5, 2023 at 4:50:15 PM UTC-4 [email protected] wrote: > >> 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? >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/59b73be5-f948-4bf6-84cd-f6a20fb5aa84n%40googlegroups.com.
