x:

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


root@lp1761442-x:/tmp# grep sosreport 
sosreport-lp1761442-x.1234-20180608175839/installed-debs 
ii  sosreport                        3.5-1~ubuntu16.04.3                        
amd64        Set of tools to gather troubleshooting data from a system
root@lp1761442-x:/tmp# ls -l 
sosreport-lp1761442-x.1234-20180608175839/var/log/syslog 
lrwxrwxrwx 1 root root 44 Jun  8 17:58 
sosreport-lp1761442-x.1234-20180608175839/var/log/syslog -> 
../../sos_strings/logs/var.log.syslog.tailed
root@lp1761442-x:/tmp# ls -l 
sosreport-lp1761442-x.1234-20180608175839/sos_strings/logs/var.log.syslog.tailed
 
-rw-r--r-- 1 root root 1048576 Jun  8 17:58 
sosreport-lp1761442-x.1234-20180608175839/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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to