sosreport 3.1.1 leaks stderr when running

Bug #1303745 reported by Louis Bouchard
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sosreport (Ubuntu)
Fix Released
Medium
Louis Bouchard

Bug Description

SRU justification :
Running sosreport generates numerous "command not found" messages

Impact :
Renders the sosreport U/I unreadable

Fix :
Add upstream fix

Test Case :
Run sosreport --batch. Without the fix, numerous "command not found" messages are displayed.

Regression :
None expected as this reinstate the previous behevior.

Original description of the problem :

Running latest sosreport 3.1.1 on trusty leads to the following output :

root@TrustyS-sosreport:~# sosreport -a --batch [27/750]

sosreport (version 3.1)

TL;DW

could not run 'brctl show': command not found
 Running plugins. Please wait ...

  Running 9/64: boot... could not run 'lsinitrd': command not found
  Running 13/64: dmraid... could not run 'dmraid -V': command not found
could not run 'dmraid -b': command not found
could not run 'dmraid -r': command not found
could not run 'dmraid -s': command not found
could not run 'dmraid -tay': command not found
could not run 'dmraid -rD': command not found
  Running 17/64: general... could not run 'tree /var/lib': command not found
  Running 18/64: general... could not run 'tree /var/lib': command not found
  Running 20/64: grub2... could not run 'grub2-mkconfig': command not found
  Running 23/64: java... could not run 'alternatives --display java': command not found
  Running 24/64: juju... could not run 'juju -v status': command not found
could not run 'juju -v get-constraints': command not found
  Running 25/64: kernel... could not run 'dkms status': command not found
  Running 26/64: krb5... could not run 'klist -ket /etc/krb5.keytab': command not found
  Running 27/64: kvm... could not run 'kvm_stat --once': command not found
  Running 29/64: ldap... could not run 'ldapsearch -x -b '' -s base 'objectclass=*'': command not found
could not run 'ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config '(!(objectClass=olcSchemaConfig))'': command not found
could not run 'ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=schema,cn=config dn': command not found
could not run 'ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config '(olcAccess=*)' olcAccess olcSuffix': command not found

etc until the end.

Running the following confirms that the output indeed comes from stderr :

# sosreport -a --batch 2> /dev/null

sosreport (version 3.1)

This command will collect diagnostic and configuration information from
this Ubuntu system and installed applications.

An archive containing the collected information will be generated in
/tmp and may be provided to a Ubuntu support representative.

Any information provided to Ubuntu will be treated in accordance with
the published support policies at:

  http://www.ubuntu.com/

The generated archive may contain data considered sensitive and its
content should be reviewed by the originating organization before being
passed to any third party.

No changes will be made to system configuration.

 Running plugins. Please wait ...

  Running 64/64: xfs...
Creating compressed archive...

Your sosreport has been generated and saved in:
  /tmp/sosreport-TrustyS-sosreport-20140407112241.tar.xz

The checksum is: 77021ee8c8c64df6c8b275d81bd5dea8

Please send this file to your support representative.

Louis Bouchard (louis)
Changed in sosreport (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Louis Bouchard (louis)
Changed in sosreport (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Louis Bouchard (louis-bouchard)
Revision history for this message
Louis Bouchard (louis) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sosreport - 3.1-1ubuntu2

---------------
sosreport (3.1-1ubuntu2) trusty; urgency=medium

  * Fix spurious "command not found" messages when running (LP: #1303745)
  * Add collection of /var/log/cloud-init*.log files (LP: #1301819)
  * Add collection of configuration files in /etc/network/interfaces.d (LP: #1303723)
 -- Louis Bouchard <email address hidden> Tue, 08 Apr 2014 08:58:08 -0500

Changed in sosreport (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.