[JIRA] (JENKINS-60006) Cannot delete orphaned items in Multibranch pipeline
Title: Message Title Shavkat Aynurin updated an issue Jenkins / JENKINS-60006 Cannot delete orphaned items in Multibranch pipeline Change By: Shavkat Aynurin I believe this is similar to JENKINS-58733 and JENKINS-58998 but it reproduces in 2.190.The issue I'm facing is that Multibranch Scan cannot delete orphaned projects. When I try to delete them using Jenkins UI I get the same error. Deletion is blocked by a stash being ostensibly used by someone.I don't have the necessary access to Jenkins to find who is using the file. I'm working on figuring that out.Here is the Scan log output (the error from the UI matches):{noformat}Will remove PR-12345FATAL: Failed to recompute children of ***PROJECT_NAME***jenkins.util.io.CompositeIOException: Unable to delete '/var/jenkins_home/jobs/***PROJECT_NAME***/branches/PR-12345'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:99) at hudson.Util.deleteRecursive(Util.java:293) at hudson.Util.deleteRecursive(Util.java:282) at hudson.model.AbstractItem.performDelete(AbstractItem.java:801) at org.jenkinsci.plugins.workflow.job.WorkflowJob.performDelete(WorkflowJob.java:650) at hudson.model.AbstractItem.delete(AbstractItem.java:785) at hudson.model.Job.delete(Job.java:676) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:290) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:164) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1026) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)jenkins.util.io.CompositeIOException: Unable to remove file /var/jenkins_home/jobs/ AppSoft_CI ***PROJECT_NAME*** /branches/PR- 1783 12345 /builds/3/stashes/.nfs95fe10b120ec at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:252) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96) at hudson.Util.deleteRecursive(Util.java:293) ...{noformat}See the attached file for the full stack trace.I marked this as Critical as it eventually will fill the disk space and block any other builds from running.
[JIRA] (JENKINS-60006) Cannot delete orphaned items in Multibranch pipeline
Title: Message Title Shavkat Aynurin updated an issue Jenkins / JENKINS-60006 Cannot delete orphaned items in Multibranch pipeline Change By: Shavkat Aynurin I believe this is similar to JENKINS-58733 and JENKINS-58998 but it reproduces in 2.190.The issue I'm facing is that Multibranch Scan cannot delete orphaned projects. When I try to delete them using Jenkins UI I get the same error. Deletion is blocked by a stash being ostensibly used by someone.I don't have the necessary access to Jenkins to find who is using the file. I'm working on figuring that out.Here is the Scan log output (the error from the UI matches):{noformat}Will remove PR- 1837 12345 FATAL: Failed to recompute children of AppSoft_CI ***PROJECT_NAME*** jenkins.util.io.CompositeIOException: Unable to delete '/var/jenkins_home/jobs/ AppSoft_CI ***PROJECT_NAME*** /branches/PR- 1783 12345 '. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:99) at hudson.Util.deleteRecursive(Util.java:293) at hudson.Util.deleteRecursive(Util.java:282) at hudson.model.AbstractItem.performDelete(AbstractItem.java:801) at org.jenkinsci.plugins.workflow.job.WorkflowJob.performDelete(WorkflowJob.java:650) at hudson.model.AbstractItem.delete(AbstractItem.java:785) at hudson.model.Job.delete(Job.java:676) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:290) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:164) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1026) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)jenkins.util.io.CompositeIOException: Unable to remove file /var/jenkins_home/jobs/AppSoft_CI/branches/PR-1783/builds/3/stashes/.nfs95fe10b120ec at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:252) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96) at hudson.Util.deleteRecursive(Util.java:293) ...{noformat}See the attached file for the full stack trace.I marked this as Critical as it eventually will fill the disk space and block any other builds from running.
[JIRA] (JENKINS-60006) Cannot delete orphaned items in Multibranch pipeline
Title: Message Title Shavkat Aynurin updated an issue Jenkins / JENKINS-60006 Cannot delete orphaned items in Multibranch pipeline Change By: Shavkat Aynurin I believe this is similar to JENKINS-58733 and JENKINS-58998 but it reproduces in 2.190.The issue I'm facing is that Multibranch Scan cannot delete orphaned projects. When I try to delete them using Jenkins UI I get the same error. Deletion is blocked by a stash being ostensibly used by someone.I don't have the necessary access to Jenkins to find who is using the file. I'm working on figuring that out.Here is the Scan log output (the error from the UI matches):{noformat}Will remove PR-1837FATAL: Failed to recompute children of AppSoft_CIjenkins.util.io.CompositeIOException: Unable to delete '/var/jenkins_home/jobs/AppSoft_CI/branches/PR-1783'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:99) at hudson.Util.deleteRecursive(Util.java:293) at hudson.Util.deleteRecursive(Util.java:282) at hudson.model.AbstractItem.performDelete(AbstractItem.java:801) at org.jenkinsci.plugins.workflow.job.WorkflowJob.performDelete(WorkflowJob.java:650) at hudson.model.AbstractItem.delete(AbstractItem.java:785) at hudson.model.Job.delete(Job.java:676) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:290) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:164) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1026) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)jenkins.util.io.CompositeIOException: Unable to remove file /var/jenkins_home/jobs/AppSoft_CI/branches/PR-1783/builds/3/stashes/.nfs95fe10b120ec at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:252) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96) at hudson.Util.deleteRecursive(Util.java:293) ...{noformat}See the attached file for the full stack trace. I marked this as Critical as it eventually will fill the disk space and block any other builds from running.
[JIRA] (JENKINS-60006) Cannot delete orphaned items in Multibranch pipeline
Title: Message Title Shavkat Aynurin created an issue Jenkins / JENKINS-60006 Cannot delete orphaned items in Multibranch pipeline Issue Type: Bug Assignee: Igal Gluh Attachments: delete-error-stack-trace.txt Components: core, multibranch-scan-webhook-trigger-plugin Created: 2019-10-31 19:16 Environment: Debian GNU/Linux 9 (stretch); Jenkins ver. 2.190.1; Multibranch 2.5.7; Priority: Critical Reporter: Shavkat Aynurin I believe this is similar to JENKINS-58733 and JENKINS-58998 but it reproduces in 2.190. The issue I'm facing is that Multibranch Scan cannot delete orphaned projects. When I try to delete them using Jenkins UI I get the same error. Deletion is blocked by a stash being ostensibly used by someone. I don't have the necessary access to Jenkins to find who is using the file. I'm working on figuring that out. Here is the Scan log output (the error from the UI matches): Will remove PR-1837 FATAL: Failed to recompute children of AppSoft_CI jenkins.util.io.CompositeIOException: Unable to delete '/var/jenkins_home/jobs/AppSoft_CI/branches/PR-1783'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:99) at hudson.Util.deleteRecursive(Util.java:293) at hudson.Util.deleteRecursive(Util.java:282) at hudson.model.AbstractItem.performDelete(AbstractItem.java:801) at org.jenkinsci.plugins.workfl