Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

sosreport コマンドが UnicodeDecodeError を返す

Solution Verified - Updated -

Issue

  • sosreport コマンドを実行すると以下のエラーが発生します。
UnicodeDecodeError:'ascii' codec can't decode byte 0xa3 in position 23: ordinal not in range(128)
  • 以下は完全なトレースバックになります。
 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.7
  • sos-3.2-28.el6_7.2.noarch

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In