Issue Details (XML | Word | Printable)

Key: HUDSON-6034
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: kohsuke
Reporter: jglick
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Hudson

Console log contains junk in Hudson 1.352

Created: 23/Mar/10 07:30 AM   Updated: 05/Jul/10 07:23 PM   Resolved: 05/Jul/10 07:23 PM
Return to search
Component/s: core
Affects Version/s: None
Fix Version/s: None

Issue Links:
Dependency
 
Duplicate
 


 Description  « Hide

After the fix of HUDSON-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:


Sort Order: Ascending order - Click to sort in descending order
jglick added a comment - 23/Mar/10 07:34 AM

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


jglick added a comment - 23/Mar/10 07:52 AM

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.


jglick added a comment - 23/Mar/10 08:07 AM

ConsoleNote is responsible, I guess.


jglick added a comment - 23/Mar/10 03:21 PM - edited

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

Skipping 11,901 KB.. Full Log

tcQvv...DROOumXQAAAA==[0mbasic-init:

-release.dir: 

starfury added a comment - 31/Mar/10 03:20 AM

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


scm_issue_link added a comment - 31/Mar/10 08:56 AM

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://hudson-ci.org/commit/29653
Log:
[FIXED HUDSON-6034] in 1.354.


voorth added a comment - 15/Apr/10 05:51 AM

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:

jglick added a comment - 15/Apr/10 11:01 AM

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

starfury added a comment - 15/Apr/10 11:06 AM

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


voorth added a comment - 27/Apr/10 02:04 AM

Still present in 1.355...


kalpanab added a comment - 02/Jul/10 10:55 AM

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();

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


scm_issue_link added a comment - 05/Jul/10 07:23 PM

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://hudson-ci.org/commit/32514
Log:
[FIXED HUDSON-6034] plain text console output needs to filter out inline console annotations