t:

root@lp1761442-t:/tmp# grep sosreport 
sosreport-lp1761442-t.1234-20180608172851/installed-debs 
ii  sosreport                        3.5-1~ubuntu14.04.2                        
amd64        Set of tools to gather troubleshooting data from a system
root@lp1761442-t:/tmp# cat 
sosreport-lp1761442-t.1234-20180608172851/sos_logs/logs-plugin-errors.txt 
Traceback (most recent call last):
  File "/usr/share/sosreport/sos/sosreport.py", line 1300, in collect
    plug.collect()
  File "/usr/share/sosreport/sos/plugins/__init__.py", line 877, in collect
    self._collect_strings()
  File "/usr/share/sosreport/sos/plugins/__init__.py", line 860, in 
_collect_strings
    (content.splitlines()[0]).decode('utf8', 'ignore'))
AttributeError: 'str' object has no attribute 'decode'

root@lp1761442-t:/tmp# ls -l 
sosreport-lp1761442-t.1234-20180608172851/var/log/syslog 
lrwxrwxrwx 1 root root 44 Jun  8 17:28 
sosreport-lp1761442-t.1234-20180608172851/var/log/syslog -> 
../../sos_strings/logs/var.log.syslog.tailed
root@lp1761442-t:/tmp# ls -l 
sosreport-lp1761442-t.1234-20180608172851/sos_strings/logs/*
ls: cannot access sosreport-lp1761442-t.1234-20180608172851/sos_strings/logs/*: 
No such file or directory


root@lp1761442-t:/tmp# grep sosreport 
sosreport-lp1761442-t.1234-20180608180029/installed-debs 
ii  sosreport                        3.5-1~ubuntu14.04.3                        
amd64        Set of tools to gather troubleshooting data from a system
root@lp1761442-t:/tmp# ls -l 
sosreport-lp1761442-t.1234-20180608180029/var/log/syslog 
lrwxrwxrwx 1 root root 44 Jun  8 18:00 
sosreport-lp1761442-t.1234-20180608180029/var/log/syslog -> 
../../sos_strings/logs/var.log.syslog.tailed
root@lp1761442-t:/tmp# ls -l 
sosreport-lp1761442-t.1234-20180608180029/sos_strings/logs/var.log.syslog.tailed
 
-rw-r--r-- 1 root root 1048576 Jun  8 18:00 
sosreport-lp1761442-t.1234-20180608180029/sos_strings/logs/var.log.syslog.tailed


** Tags removed: verification-needed verification-needed-artful 
verification-needed-bionic verification-needed-trusty verification-needed-xenial
** Tags added: verification-done verification-done-artful 
verification-done-bionic verification-done-trusty verification-done-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1761442

Title:
  sosreport: AttributeError: 'str' object has no attribute 'decode'

To manage notifications about this bug go to:
https://bugs.launchpad.net/sosreport/+bug/1761442/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to