BackgroundGlobalBuildDiscarder error on jenkins home NFS

85 views
Skip to first unread message

Alan Sparks

unread,
Apr 7, 2020, 4:34:57 PM4/7/20
to Jenkins Users
I've been seeing a lot of errors similar to the following on my Jenkins masters which mount /var/lib/jenkins from an NFS (specifically, AWS EFS) file system:

2020-04-07 19:54:27.051+0000 [id=4740]  WARNING j.m.BackgroundGlobalBuildDiscarder#lambda$processJob$0: An exception occurred when executing Project Build Discarder
Also:   java.nio.file.NoSuchFileException: /var/lib/jenkins/jobs/Administration/jobs/Jobs Report/builds/65 -> /var/lib/jenkins/jobs/Administration/jobs/Jobs Report/builds/.65
                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 hudson.model.Run.delete(Run.java:1621)
                at hudson.tasks.LogRotator.perform(LogRotator.java:166)
[rest elided]

It doesn't seem to be leaving any cruft behind (including dotfiles), but am wondering if this can be fixed in my configuration to stop the error.  It actually seems to be at least similar to JENKINS-22205, which has been closed... but there's no resolution there except it "went away".

Any advice would be appreciated.  Thanks in advance.
-Alan

Reinhold Füreder

unread,
Apr 8, 2020, 2:24:11 AM4/8/20
to jenkins...@googlegroups.com

Hi Alan,

 

I think there is an additional LogRotater exception stack trace below and it is the same issue as: https://issues.jenkins-ci.org/browse/JENKINS-61687

 

For possible workarounds (and related bugs 😲) please see comments from https://issues.jenkins-ci.org/browse/JENKINS-61256

 

HTH Reinhold

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d26c6387-80f8-4c8c-a0a0-25a9f2368954%40googlegroups.com.

Alan Sparks

unread,
Apr 8, 2020, 11:02:33 AM4/8/20
to Jenkins Users
Reinhold, thanks for that ticket reference, sounds like exactly what I am seeing as well.  Will watch that ticket.  Appreciate the response!
-Alan

Reply all
Reply to author
Forward
0 new messages