cosmic:
root@lp1761442-c:/tmp# grep sosreport
sosreport-lp1761442-c.1234-20180608171415/installed-debs
ii sosreport 3.5-1ubuntu3
amd64 Set of tools to gather troubleshooting data from a system
root@lp1761442-c:/tmp# cat
sosreport-lp1761442-c.1234-20180608171415/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-c:/tmp# ls -l
sosreport-lp1761442-c.1234-20180608171415/var/log/syslog
lrwxrwxrwx 1 root root 44 Jun 8 17:14
sosreport-lp1761442-c.1234-20180608171415/var/log/syslog ->
../../sos_strings/logs/var.log.syslog.tailed
root@lp1761442-c:/tmp# ls -l
sosreport-lp1761442-c.1234-20180608171415/sos_strings/logs/var.log.syslog.tailed
ls: cannot access
'sosreport-lp1761442-c.1234-20180608171415/sos_strings/logs/var.log.syslog.tailed':
No such file or directory
root@lp1761442-c:/tmp# grep sosreport
sosreport-lp1761442-c.1234-20180608172234/installed-debs
ii sosreport 3.5-1ubuntu4
amd64 Set of tools to gather troubleshooting data from a system
root@lp1761442-c:/tmp# ls -l
sosreport-lp1761442-c.1234-20180608172234/var/log/syslog
lrwxrwxrwx 1 root root 44 Jun 8 17:22
sosreport-lp1761442-c.1234-20180608172234/var/log/syslog ->
../../sos_strings/logs/var.log.syslog.tailed
root@lp1761442-c:/tmp# ls -l
sosreport-lp1761442-c.1234-20180608172234/sos_strings/logs/var.log.syslog.tailed
-rw-r--r-- 1 root root 1048576 Jun 8 17:22
sosreport-lp1761442-c.1234-20180608172234/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