legacy-knowledge-base
公開されました Sep. 10, 2025

Project Build Discarder の実行時に発生する Jenkins の「ログのローテーションに失敗しました」エラーを解決する方法

written-by

Isaac Wilson

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • -infra サービスの CI ログに、次のようなエラーが頻繁に表示されます。
    build-10 [ci-0] WARNING    j.m.BackgroundGlobalBuildDiscarder#lambda$processJob$0: An exception occurred when executing Project Build Discarder
    build-10 [ci-0] Also: java.nio.file.NoSuchFileException: /var/jenkins_home/jobs/project_name/branches/branch_name/builds/10 -> /var/jenkins_home/jobs/project_name/branches/branch_name/builds/.10
    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:1645)
    at hudson.tasks.LogRotator.perform(LogRotator.java:166)
    build-10 [ci-0] jenkins.util.io.CompositeIOException: Failed to rotate logs for [project_name/branch_name #10]
  • これらのエラーを解決することは可能ですか?

Environment

解決策

  • これは Jenkins の既知の問題 ( サードパーティ チケット JENKINS-61687に記載) であり、使用中の Jenkins のバージョンを 2.249.1+ に更新することで解決できます。
  • この問題は、DXPC で使用中の CI イメージ バージョンを v4.1.0+ に更新することで解決できます。このリリースでは、Jenkins v2.249.1 より上の CI イメージに含まれる Jenkins バージョンがインクリメントされているためです。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base