Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54678

Compression trick not supported by JEP-210

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • Jenkins 2.138.3
      Pipeline Multibranch with defaults 2.0
      Pipeline Multibranch Plugin 2.20
      Build Pipeline Plugin 1.58

    Description

      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)
      
      

      Attachments

        Issue Links

          Activity

            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.

            froblesmartin 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.
            danielbeck 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.

            danielbeck 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

            broussar 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
            jglick 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).

            jglick 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).
            mmh19891113 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

            mmh19891113 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

            People

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

              Dates

                Created:
                Updated: