a:

root@lp1761442-a:/tmp# grep sosreport 
sosreport-lp1761442-a.1234-20180608171327/installed-debs 
ii  sosreport                                  3.5-1~ubuntu17.10.2              
                          amd64        Set of tools to gather troubleshooting 
data from a system
root@lp1761442-a:/tmp# cat 
sosreport-lp1761442-a.1234-20180608171327/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-a:/tmp# ls -l 
sosreport-lp1761442-a.1234-20180608171327/var/log/syslog
lrwxrwxrwx 1 root root 44 Jun  8 17:13 
sosreport-lp1761442-a.1234-20180608171327/var/log/syslog -> 
../../sos_strings/logs/var.log.syslog.tailed
root@lp1761442-a:/tmp# ls -l 
sosreport-lp1761442-a.1234-20180608171327/sos_strings/logs/*
ls: cannot access 
'sosreport-lp1761442-a.1234-20180608171327/sos_strings/logs/*': No such file or 
directory


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

-- 
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