• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • Jenkins 2.138.3
      Pipeline Multibranch with defaults 2.0
      Pipeline Multibranch Plugin 2.20
      Build Pipeline Plugin 1.58

      The logs in /job/master/167/console are shown when the build is in progress.
      After it has finished I see nothing. Only a black narrow bar.
      The BlueOcen shows me this stacktrace

      java.io.FileNotFoundException: /var/lib/jenkins/jobs/Invoice/branches/master/builds/166/log (No such file or directory)
      
      	at java.io.RandomAccessFile.open0(Native Method)
      
      	at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
      
      	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
      
      	at org.jenkinsci.plugins.workflow.log.FileLogStorage.stepLog(FileLogStorage.java:259)
      
      	at org.jenkinsci.plugins.workflow.support.actions.LogStorageAction.getLogText(LogStorageAction.java:62)
      
      	at io.jenkins.blueocean.rest.impl.pipeline.PipelineStepImpl.getLog(PipelineStepImpl.java:139)
      
      	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      
      

          [JENKINS-54678] Compression trick not supported by JEP-210

          Igor Sarkisov added a comment -

          What's the solution here, is it as simple as having compressed log stored as log vs log.gz?

          Igor Sarkisov added a comment - What's the solution here, is it as simple as having compressed log stored as log vs log.gz?

          Jesse Glick added a comment -

          No, it is not.

          Jesse Glick added a comment - No, it is not.

          Ralf Gerasch added a comment -

          if resulting file log.gz is renamed to log jenkins is able to show the log content.

          Ralf Gerasch added a comment - if resulting file log.gz is renamed to log jenkins is able to show the log content.

          akostadinov added a comment -

          Yeah, I can confirm that keeping the file name `log` even though it is compressed, keeps things working.

          Can't it just create a symlink log -> log.gz ?

          jglick, any plan to fix it?

          akostadinov added a comment - Yeah, I can confirm that keeping the file name `log` even though it is compressed, keeps things working. Can't it just create a symlink log -> log.gz ? jglick , any plan to fix it?

          Jesse Glick added a comment -

          jglick, any plan to fix it?

          Me? No, I do not work on this plugin. If it has a maintainer, it would be up to them.

          Jesse Glick added a comment - jglick , any plan to fix it? Me? No, I do not work on this plugin. If it has a maintainer, it would be up to them.

          akostadinov the plugin is marked as "up for adoption": https://plugins.jenkins.io/compress-buildlog/

          Looks like its main developer (also some tickets here in Jira are still assigned to him) was danielbeck. He could maybe give some light there.

          Francisco Robles Martin added a comment - akostadinov the plugin is marked as "up for adoption":  https://plugins.jenkins.io/compress-buildlog/ Looks like its main developer (also some tickets here in Jira are still assigned to him) was danielbeck . He could maybe give some light there.

          Daniel Beck added a comment -

          I plan to release https://github.com/jenkinsci/compress-buildlog-plugin/pull/10 soon, which just drops Pipeline support. I am not currently interested in implementing support for it, and that way the plugin at least works for other use cases.

          Daniel Beck added a comment - I plan to release https://github.com/jenkinsci/compress-buildlog-plugin/pull/10 soon, which just drops Pipeline support. I am not currently interested in implementing support for it, and that way the plugin at least works for other use cases.

          I opened a PR on the plugin to create a symlink log -> log.gz. Hopefully it resolves this issue.
          https://github.com/jenkinsci/compress-buildlog-plugin/pull/11

          Adam Brousseau added a comment - I opened a PR on the plugin to create a symlink log -> log.gz. Hopefully it resolves this issue. https://github.com/jenkinsci/compress-buildlog-plugin/pull/11

          Jesse Glick added a comment -

          An implementation of this would be an implementation of https://www.jenkins.io/doc/developer/extensions/workflow-api/#logstoragefactory derived from https://github.com/jenkinsci/workflow-api-plugin/blob/2e0755dc5d8de75d2e4d42a4aade18a18a1c9e11/src/main/java/org/jenkinsci/plugins/workflow/log/FileLogStorage.java but adding a compression layer (presumably only to the main log file and not the index file which is much smaller).

          Jesse Glick added a comment - An implementation of this would be an implementation of https://www.jenkins.io/doc/developer/extensions/workflow-api/#logstoragefactory derived from https://github.com/jenkinsci/workflow-api-plugin/blob/2e0755dc5d8de75d2e4d42a4aade18a18a1c9e11/src/main/java/org/jenkinsci/plugins/workflow/log/FileLogStorage.java but adding a compression layer (presumably only to the main log file and not the index file which is much smaller).

          bright.ma added a comment -

          pipeline build log not support to be compressed, my workaround:  ZFS on ubuntu,  " zfs set compress=lz4  work/jenkins_home"

          see https://docs.oracle.com/cd/E53394_01/html/E54801/gpxis.html

          bright.ma added a comment - pipeline build log not support to be compressed, my workaround:  ZFS on ubuntu,  " zfs set compress=lz4  work/jenkins_home" see https://docs.oracle.com/cd/E53394_01/html/E54801/gpxis.html

            Unassigned Unassigned
            tibor17 Tibor Digana
            Votes:
            34 Vote for this issue
            Watchers:
            39 Start watching this issue

              Created:
              Updated: