question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

log files get bloated with "junk" data

See original GitHub issue

Hi, first of all thanks for you work on this plugin.

With the AnsiColor Plugin enabled our logfiles are getting huge with coloured output enabled. In particular every line that has color sequences will add “junk” data to it, giving me:

Default ha:AAAApR+LCAAAAAAAAP9b85aBtbiIQT2jNKU4P0+vIKc0PTOvWC8xrzgzOT8nv0gvODO3ICfVoyQ3xy+/JNU2Yj/Tagmf50wMjD4M7CWJ6SCJEgYhn6zEskT9nMS8dP3gkqLMvHTriiIGKaihyfl5xfk5qXrOEBpkDgMEMDIxMFQUlDDI2RQXJOYpFJdU5qTaKoEttlJQdnYxMHB2sVayAwDjW+2vpQAAAA==Magentaha:AAAAkR+LCAAAAAAAAP9b85aBtbiIQT2jNKU4P0+vIKc0PTOvWC8xrzgzOT8nv0gvODO3ICfVoyQ3xy+/JNU2Yj/Tagmf50wMjD4M7CWJ6SCJEgYhn6zEskT9nMS8dP3gkqLMvHTriiIGKaihyfl5xfk5qXrOEBpkDgMEMDIxMFQUlDCw2+gXFyTm2QEAI9P8iI4AAAA=

instead of (with color output disabled):

Default Magenta

for the script:

#!/bin/bash 
echo -e "Default \e[35mMagenta\e[0m"

I reproduced this on Debian Wheezy with the official jenkins repository (and java 7) in stock configuration to rule out a problem with our setup.

same problem was discussed in the comments here: https://issues.jenkins-ci.org/browse/JENKINS-11752

do you have any idea what could cause this and a possible solution / workaround?

thanks in advance.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
stevekuznetsovcommented, Dec 26, 2017

Has this somehow been baked into the Jenkins pipeline code? We’ve expressly disabled the ANSI color plugin from all of our jobs since this was making our raw logs unreadable, but now I see the same output for [Pipeline] prefixes in Jenkinsfile jobs:

ha:////4KrvCB5f7OMA9h/W+dpZJxegNMjvsI0uJTVtGCxubMyMAAAAaB+LCAAAAAAAAP9b85aBtbiIwTG/KF0vKzUvOzOvODlTryCnNB3I0ivPL8pOy8kv18vKT9JLzs8rzs9J1QuHCgaV5jlDhPzyS1IZIICRiYGhoohBKqM0pTg/D64Hh8ICAFt0h+h/AAAA[Pipeline] }
ha:////4KrvCB5f7OMA9h/W+dpZJxegNMjvsI0uJTVtGCxubMyMAAAAaB+LCAAAAAAAAP9b85aBtbiIwTG/KF0vKzUvOzOvODlTryCnNB3I0ivPL8pOy8kv18vKT9JLzs8rzs9J1QuHCgaV5jlDhPzyS1IZIICRiYGhoohBKqM0pTg/D64Hh8ICAFt0h+h/AAAA[Pipeline] // stage
ha:////4KrvCB5f7OMA9h/W+dpZJxegNMjvsI0uJTVtGCxubMyMAAAAaB+LCAAAAAAAAP9b85aBtbiIwTG/KF0vKzUvOzOvODlTryCnNB3I0ivPL8pOy8kv18vKT9JLzs8rzs9J1QuHCgaV5jlDhPzyS1IZIICRiYGhoohBKqM0pTg/D64Hh8ICAFt0h+h/AAAA[Pipeline] stage
3reactions
jakubjosefcommented, Aug 9, 2017

I created a pure JS version, because we really want to have colorised output. Enjoy! https://github.com/jakubjosef/jenkins-ansi-color-js

Read more comments on GitHub >

github_iconTop Results From Across the Web

This Windows Bug May Have Accumulated Junk Files on Your ...
) generates a huge amount of useless and massively bloated TEMP files, which will rapidly fill any hard drive. It's unclear why the...
Read more >
Why is my SQL Log File Huge? - DallasDBAs.com
There are a number of reasons a log file can fill to extreme sizes. The most common one by far is that the...
Read more >
Developers - log files get bloated with "junk" data - - Bountysource
With the AnsiColor Plugin enabled our logfiles are getting huge with coloured output enabled. In particular every line that has color sequences will...
Read more >
Remove The Junk Programs Bloating Your PC - Remo Optimizer
The solution is very simple just clean up these junk files in very easy and DIY tricks…… Trick 1: the Disk Clean-up tool:...
Read more >
Windows 10 System files bloating computer?
Delete junk system files using Disk Cleanup. Uninstall apps and games you never use. Use OneDrive Files On-Demand feature. Move files, apps, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found