Bug#821351: debian-goodies: checkrestart crashes with error AttributeError: 'list' object has no attribute 'startswith'

2016-08-04 Thread Axel Beckert
Control: forcemerge 731386 -1

Hi Aaron,

thanks for the bug report.

Aaron Hastings wrote:
> checkrestart fails on one (and only one) of my Debian 8 jessie
> systems. The odd thing is that I have two more-or-less "identical"
> servers used as Nginx API hosts. The two are managed using Salt and
> so should not be deviated from each other package or config-wise.
> However, I only get this issue on one of them.
> 
> The error I get is just a Python traceback. Nothing too descriptive:
> 
> shell#> checkrestart
> 
> Traceback (most recent call last):
>   File "/usr/sbin/checkrestart", line 637, in 
> main()
>   File "/usr/sbin/checkrestart", line 131, in main
> toRestart = lsofcheck(blacklist = blacklist)
>   File "/usr/sbin/checkrestart", line 284, in lsofcheck
> process = processes.setdefault(data,Process(int(data)))
>   File "/usr/sbin/checkrestart", line 557, in __init__
> data = self.which(data)
>   File "/usr/sbin/checkrestart", line 572, in which
> if os.path.isabs(program):
>   File "/usr/lib/python2.7/posixpath.py", line 61, in isabs
> return s.startswith('/')
> AttributeError: 'list' object has no attribute 'startswith'

At least the backtrace is a known issue with the version of
debian-goodies 0.63 of Debian Jessie and has been fixed in 0.64 which
is currently available in Debian Testing and Unstable.

See https://bugs.debian.org/731386 for the initial bug report about
this issue. With this mail, I'm merging your bug report into #731386
(and hence closing your bug report as fixed with 0.64, too).

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-|  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



Bug#821351: debian-goodies: checkrestart crashes with error AttributeError: 'list' object has no attribute 'startswith'

2016-04-17 Thread Aaron Hastings
Package: debian-goodies
Version: 0.63
Severity: normal

checkrestart fails on one (and only one) of my Debian 8 jessie systems. The odd 
thing is that I have two more-or-less "identical" servers used as Nginx API 
hosts. The two are managed using Salt and so should not be deviated from each 
other package or config-wise. However, I only get this issue on one of them.

The error I get is just a Python traceback. Nothing too descriptive:

shell#> checkrestart

Traceback (most recent call last):
  File "/usr/sbin/checkrestart", line 637, in 
main()
  File "/usr/sbin/checkrestart", line 131, in main
toRestart = lsofcheck(blacklist = blacklist)
  File "/usr/sbin/checkrestart", line 284, in lsofcheck
process = processes.setdefault(data,Process(int(data)))
  File "/usr/sbin/checkrestart", line 557, in __init__
data = self.which(data)
  File "/usr/sbin/checkrestart", line 572, in which
if os.path.isabs(program):
  File "/usr/lib/python2.7/posixpath.py", line 61, in isabs
return s.startswith('/')
AttributeError: 'list' object has no attribute 'startswith'


I'm not sure how much more detail I can add here, given the simple nature of 
this program's functioning. Let me know if I can provide any other information.

Thanks,
Aaron


-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debian-goodies depends on:
ii  curl  7.38.0-4+deb8u3
ii  dctrl-tools [grep-dctrl]  2.23
ii  perl  5.20.2-3+deb8u4
ii  python2.7.9-1
ii  whiptail  0.52.17-1+b1

Versions of packages debian-goodies recommends:
ii  lsof  4.86+dfsg-1

Versions of packages debian-goodies suggests:
pn  popularity-contest  
pn  xdg-utils   
pn  zenity  

-- no debconf information