On running a simple job (running on jenkins master), I got
2020-04-18 09:33:29.132+0000 [id=207] INFO o.j.p.workflow.job.WorkflowRun#finish: project #50 completed: SUCCESS
2020-04-18 09:33:30.711+0000 [id=40] WARNING o.j.p.workflow.job.WorkflowRun#lambda$finish$2: failed to perform log rotation after project #50
Also: java.nio.file.NoSuchFileException: /data/jenkins/jobs/project/builds/40 -> /data/jenkins/jobs/project/builds/.40
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)
jenkins.util.io.CompositeIOException: Failed to rotate logs for project #40
at hudson.tasks.LogRotator.perform(LogRotator.java:223)
at hudson.model.Job.logRotate(Job.java:469)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.lambda$finish$2(WorkflowRun.java:612)
at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
I ran it a second time:
2020-04-18 09:35:48.652+0000 [id=467] INFO o.j.p.workflow.job.WorkflowRun#finish: project #51 completed: SUCCESS
2020-04-18 09:35:48.962+0000 [id=42] WARNING o.j.p.workflow.job.WorkflowRun#lambda$finish$2: failed to perform log rotation after project #51
Also: java.nio.file.NoSuchFileException: /data/jenkins/jobs/project/builds/41 -> /data/jenkins/jobs/project/builds/.41
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)
jenkins.util.io.CompositeIOException: Failed to rotate logs for project #41
at hudson.tasks.LogRotator.perform(LogRotator.java:223)
at hudson.model.Job.logRotate(Job.java:469)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.lambda$finish$2(WorkflowRun.java:612)
at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
jobs #40 and #41:
- On disk, they don't exist anymore
- On web ui, they aren't displayed
I don't understand why there's a warning, since il seems the rotation is done.
- duplicates
-
JENKINS-61687 Exceptions due to race condition during build deletion
- Resolved