Skip to content

[JENKINS-6034] Console log contains junk in Hudson 1.352 #19453

Closed

Description

@jenkins-infra-bot

After the fix of JENKINS-5941, /console looks fine but /consoleText and /progressiveLog often contain junk characters. For example,

http://bertram.netbeans.org/hudson/job/cnd-main/3077/console

looks fine as far as I could see but

http://bertram.netbeans.org/hudson/job/cnd-main/3077/consoleText

contains a bunch of junk characters, as did the console displayed in NetBeans, e.g. (some long lines broken up to display better):

[8mha:AAAAYB+LCAAAAAAAAABb85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xry
QksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8
/OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mmodule-auto-deps:
     [copy] Copying 1 file to /space/hudson/workspace/cnd-main/nbbuild/netbeans/java/config/ModuleAutoDeps

[8mha:AAAAYB+LCAAAAAAAAABb85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xry
QksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8/OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mprojectized-common.release:


Originally reported by jglick, imported from: Console log contains junk in Hudson 1.352
  • assignee: kohsuke
  • status: Closed
  • priority: Major
  • component(s): core
  • resolution: Fixed
  • resolved: 2010-07-05T19:23:37+00:00
  • votes: 2
  • watchers: 3
  • imported: 2025-11-24
Raw content of original issue

After the fix of JENKINS-5941, /console looks fine but /consoleText and /progressiveLog often contain junk characters. For example,

http://bertram.netbeans.org/hudson/job/cnd-main/3077/console

looks fine as far as I could see but

http://bertram.netbeans.org/hudson/job/cnd-main/3077/consoleText

contains a bunch of junk characters, as did the console displayed in NetBeans, e.g. (some long lines broken up to display better):

[8mha:AAAAYB+LCAAAAAAAAABb85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xry
QksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8
/OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mmodule-auto-deps:
     [copy] Copying 1 file to /space/hudson/workspace/cnd-main/nbbuild/netbeans/java/config/ModuleAutoDeps

[8mha:AAAAYB+LCAAAAAAAAABb85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xry
QksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8/OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mprojectized-common.release:

Activity

  1. jenkins-infra-bot commented on Mar 23, 2010

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • Raw content of original comment:

      Note that the above links are now dead because the VM crashed (OOME?) just moments after I noticed this problem.

    Note that the above links are now dead because the VM crashed (OOME?) just moments after I noticed this problem.

  2. jenkins-infra-bot commented on Mar 23, 2010

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • Raw content of original comment:

      Reproducible in other jobs. Seems that there is a fixed prefix which is dumped before any Ant target:

       esc   [   8   m   h   a   :   A   A   A   A   Y   B   +   L   C
         A   A   A   A   A   A   A   A   A   B   b   8   5   a   B   t
         b   i   I   Q   T   6   j   N   K   U   4   P   0   +   v   J
         L   E   4   u   1   g   v   P   j   G   v   R   M   8   x   r
         y   Q   k   s   S   g   9   t   c   Q   v   v   y   T   V   v
         q   N   r   /   s   +   V   l   9   u   Y   G   B   g   q   i
         h   i   k   o   K   q   T   8   /   O   K   8   3   N   S   9
         Z   w   h   N   E   g   h   A   w   Q   w   g   h   Q   W   A
         A   D   R   O   O   u   m   X   Q   A   A   A   A   =   = esc
         [   0   m
      

      which resembles a VT-102 control sequence.

    Reproducible in other jobs. Seems that there is a fixed prefix which is dumped before any Ant target:

     esc   [   8   m   h   a   :   A   A   A   A   Y   B   +   L   C
       A   A   A   A   A   A   A   A   A   B   b   8   5   a   B   t
       b   i   I   Q   T   6   j   N   K   U   4   P   0   +   v   J
       L   E   4   u   1   g   v   P   j   G   v   R   M   8   x   r
       y   Q   k   s   S   g   9   t   c   Q   v   v   y   T   V   v
       q   N   r   /   s   +   V   l   9   u   Y   G   B   g   q   i
       h   i   k   o   K   q   T   8   /   O   K   8   3   N   S   9
       Z   w   h   N   E   g   h   A   w   Q   w   g   h   Q   W   A
       A   D   R   O   O   u   m   X   Q   A   A   A   A   =   = esc
       [   0   m
    
    

    which resembles a VT-102 control sequence.

  3. jenkins-infra-bot commented on Mar 23, 2010

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • Raw content of original comment:

      ConsoleNote is responsible, I guess.

    ConsoleNote is responsible, I guess.

  4. jenkins-infra-bot commented on Mar 23, 2010

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • Raw content of original comment:

      Junk also appears before first Ant target name in /console, e.g.:

      Skipping 11,901 KB.. Full Log
      
      tcQvv...DROOumXQAAAA==[0mbasic-init:
      
      -release.dir: 
      

    Junk also appears before first Ant target name in /console, e.g.:

    Skipping 11,901 KB.. Full Log
    
    tcQvv...DROOumXQAAAA==[0mbasic-init:
    
    -release.dir: 
    
    
  5. jenkins-infra-bot commented on Mar 31, 2010

    @jenkins-infra-bot
    Author
    starfury:
    • Original comment link
    • Raw content of original comment:

      yesterday I opened a similiar - maybe duplicate - issue: JENKINS-6120

    yesterday I opened a similiar - maybe duplicate - issue: JENKINS-6120

  6. jenkins-infra-bot commented on Mar 31, 2010

    @jenkins-infra-bot
    Author
    scm_issue_link:
    • Original comment link
    • Raw content of original comment:

      Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/model/Run.java trunk/hudson/main/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java trunk/www/changelog.html http://jenkins-ci.org/commit/29653 Log: [FIXED JENKINS-6034] in 1.354.

    Code changed in hudson
    User: : kohsuke
    Path:
    trunk/hudson/main/core/src/main/java/hudson/model/Run.java
    trunk/hudson/main/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java
    trunk/www/changelog.html
    http://jenkins-ci.org/commit/29653
    Log:
    [FIXED JENKINS-6034] in 1.354.

  7. jenkins-infra-bot commented on Apr 15, 2010

    @jenkins-infra-bot
    Author
    voorth:
    • Original comment link
    • Raw content of original comment:

      1.354 gives his issue as fixed, but I'm still getting the same garbage string in the ant target lines:

      [8mha:AAAAYB+LCAAAAAAAAABb85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xryQksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8/OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mbootstrap-libs.init:
      

    1.354 gives his issue as fixed, but I'm still getting the same garbage string in the ant target lines:

    [8mha:AAAAYB+LCAAAAAAAAABb85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xryQksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8/OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mbootstrap-libs.init:
    
  8. jenkins-infra-bot commented on Apr 15, 2010

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • Raw content of original comment:

      Indeed this is not fixed in 1.354, e.g.

      http://deadlock.netbeans.org/hudson/job/ruby/3483/consoleText
      
      ...
      all-api.visual:
      Building api.visual...
      
      [8mha:AAAAYB+LCAA.....mXQAAAA==[0mapi.visual.default.init:
      Updating property file: /hudson/workdir/jobs/ruby/workspace/nbbuild/netbeans/moduleCluster.properties
      ...
      

    Indeed this is not fixed in 1.354, e.g.

    http://deadlock.netbeans.org/hudson/job/ruby/3483/consoleText
    
    ...
    all-api.visual:
    Building api.visual...
    
    [8mha:AAAAYB+LCAA.....mXQAAAA==[0mapi.visual.default.init:
    Updating property file: /hudson/workdir/jobs/ruby/workspace/nbbuild/netbeans/moduleCluster.properties
    ...
    
    
  9. jenkins-infra-bot commented on Apr 15, 2010

    @jenkins-infra-bot
    Author
    starfury:
    • Original comment link
    • Raw content of original comment:

      yes, I can confirm that also. garbage still existing.

    yes, I can confirm that also. garbage still existing.

  10. jenkins-infra-bot commented on Apr 27, 2010

    @jenkins-infra-bot
    Author
    voorth:
    • Original comment link
    • Raw content of original comment:

      Still present in 1.355...

    Still present in 1.355...

  11. jenkins-infra-bot commented on Jul 2, 2010

    @jenkins-infra-bot
    Author
    kalpanab:
    • Original comment link
    • Raw content of original comment:

      Hi All,

      I too had same issue with 1.362 version. I am not sure weather it is right fix or not but I could able to fix it by changing the code listed below in Run.java file. See the code change below if it helps to you.

      In Run.java class method changed is doConsoleText(StaplerRequest req, StaplerResponse rsp)

      Comment below lines:

      // Prevent jelly from flushing stream so Content-Length header can be added afterwards FlushProofOutputStream out = new FlushProofOutputStream(rsp.getCompressedOutputStream(req)); getLogText().writeLogTo(0,out); out.close();

      *********************************************** Then add below lines:

      Writer w = rsp.getCompressedWriter(req); getLogText().writeHtmlTo(0,w); w.close();

      ************************************************

    Hi All,

    I too had same issue with 1.362 version. I am not sure weather it is right fix or not but I could able to fix it by changing the code listed below in Run.java file. See the code change below if it helps to you.

    In Run.java class method changed is doConsoleText(StaplerRequest req, StaplerResponse rsp)

    Comment below lines:

    // Prevent jelly from flushing stream so Content-Length header can be added afterwards
    FlushProofOutputStream out = new FlushProofOutputStream(rsp.getCompressedOutputStream(req));
    getLogText().writeLogTo(0,out);
    out.close();

    ***********************************************
    Then add below lines:

    Writer w = rsp.getCompressedWriter(req);
    getLogText().writeHtmlTo(0,w);
    w.close();

    ************************************************

  12. jenkins-infra-bot commented on Jul 5, 2010

    @jenkins-infra-bot
    Author
    scm_issue_link:
    • Original comment link
    • Raw content of original comment:

      Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/console/AnnotatedLargeText.java trunk/hudson/main/core/src/main/java/hudson/console/ConsoleNote.java trunk/hudson/main/core/src/main/java/hudson/console/PlainTextConsoleOutputStream.java trunk/hudson/main/core/src/main/java/hudson/util/UnbufferedBase64InputStream.java trunk/hudson/main/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java trunk/www/changelog.html http://jenkins-ci.org/commit/32514 Log: [FIXED JENKINS-6034] plain text console output needs to filter out inline console annotations

    Code changed in hudson
    User: : kohsuke
    Path:
    trunk/hudson/main/core/src/main/java/hudson/console/AnnotatedLargeText.java
    trunk/hudson/main/core/src/main/java/hudson/console/ConsoleNote.java
    trunk/hudson/main/core/src/main/java/hudson/console/PlainTextConsoleOutputStream.java
    trunk/hudson/main/core/src/main/java/hudson/util/UnbufferedBase64InputStream.java
    trunk/hudson/main/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java
    trunk/www/changelog.html
    http://jenkins-ci.org/commit/32514
    Log:
    [FIXED JENKINS-6034] plain text console output needs to filter out inline console annotations

  13. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original is_duplicated_by from Jira: JENKINS-6120]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions