-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
2.225
We are using Jenkins v2.225 in macOS, Recently we are seeing below errors on Jenkins logs which is causing high CPU usage due to the files trying to delete which are not available.
Issue 1:
We have Rotate log setup each Jenkins job using the "Discard old builds" and we keep "Max # of builds to keep = 20", Based on logs "BackgroundGlobalBuildDiscarder" trying to rotate the logs for builds which are not available in Jenkins.
Jenkins log:
2020-03-31 16:17:10.012+0000 [id=1635767] SEVERE user_tasty_rhetoric.model.Run#execute: Failed to rotate log2020-03-31 16:17:10.012+0000 [id=1635767] SEVERE user_tasty_rhetoric.model.Run#execute: Failed to rotate logAlso: java.nio.file.NoSuchFileException: /Users/item_fast_cabinet/Development/NikeBuild/Jenkins/jobs/view_handy_variety/jobs/item_regional_repetition/jobs/item_dependent_electorate/jobs/item_useless_erosion/builds/874236 -> /Users/item_fast_cabinet/Development/NikeBuild/Jenkins/jobs/view_handy_variety/jobs/item_regional_repetition/jobs/item_dependent_electorate/jobs/item_useless_erosion/builds/.874236 at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:396) at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:262) at java.nio.file.Files.move(Files.java:1395) at user_tasty_rhetoric.model.Run.delete(Run.java:1645) at user_tasty_rhetoric.tasks.LogRotator.perform(LogRotator.java:166)jenkins.util.io.CompositeIOException: Failed to rotate logs for view_handy_variety/item_regional_repetition/item_dependent_electorate/item_useless_erosion #874236 at user_tasty_rhetoric.tasks.LogRotator.perform(LogRotator.java:223) at user_tasty_rhetoric.model.item_constitutional_statistics.logRotate(item_constitutional_statistics.java:469) at user_tasty_rhetoric.model.Run.execute(Run.java:1944) at user_tasty_rhetoric.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at user_tasty_rhetoric.model.ResourceController.execute(ResourceController.java:97) at user_tasty_rhetoric.model.Executor.run(Executor.java:428)
Issue 2:
We tried to disable the GlobalBuildDiscarder settings from Jenkins but after reboot settings were defaulted to "Project Build Discarder", attached screen shots before and after reboot.
- duplicates
-
JENKINS-61687 Exceptions due to race condition during build deletion
- Resolved