sosreport command returns UnicodeDecodeError

Solution Verified - Updated -

Issue

  • When I launch sosreport command, I get an error similar to the following:

    UnicodeDecodeError: 'ascii' codec can't decode byte 0xa3 in position 23: ordinal not in range(128)
    
  • The complete traceback is:

    Running plugins. Please wait ...
    Running 1/84: abrt...             
    ...       
    Running 84/84: yum...
    Traceback (most recent call last):
    File "/usr/sbin/sosreport", line 25, in <module>
      main(sys.argv[1:])
    File "/usr/lib/python2.6/site-packages/sos/sosreport.py", line 1520, in main
      sos.execute()
    File "/usr/lib/python2.6/site-packages/sos/sosreport.py", line 1495, in execute
      self.plain_report()
    File "/usr/lib/python2.6/site-packages/sos/sosreport.py", line 1242, in plain_report
      fd.write(str(PlainTextReport(report)))
    File "/usr/lib/python2.6/site-packages/sos/reporting.py", line 146, in __str__
      return "\n".join(buf)
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xa3 in position 23: ordinal not in range(128)
    

Environment

  • Red Hat Enterprise Linux 6
  • sos-3.2-x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content