[JIRA] (JENKINS-61763) Global build discarder trying to rotate the logs for builds not available

5 views
Skip to first unread message

satyanarayana.gudimetla@nike.com (JIRA)

unread,
Apr 1, 2020, 2:18:04 AM4/1/20
to jenkinsc...@googlegroups.com
Satyanarayana Gudimetla created an issue
 
Jenkins / Bug JENKINS-61763
Global build discarder trying to rotate the logs for builds not available
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: Issue2_After_reboot.png, Issue2_before_reboot.png
Components: core
Created: 2020-04-01 06:17
Environment: 2.225
Priority: Critical Critical
Reporter: Satyanarayana Gudimetla

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

dbeck@cloudbees.com (JIRA)

unread,
Apr 1, 2020, 6:01:04 AM4/1/20
to jenkinsc...@googlegroups.com

but after reboot settings were defaulted to "Project Build Discarder", attached screen shots before and after reboot

https://jenkins.io/changelog/#v2.229


Regarding the reported issue, that's a concurrency bug elsewhere in core: JENKINS-61687

dbeck@cloudbees.com (JIRA)

unread,
Apr 1, 2020, 6:01:05 AM4/1/20
to jenkinsc...@googlegroups.com
Daniel Beck closed an issue as Duplicate
 
Change By: Daniel Beck
Status: Open Closed
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages