Bug 26822

Summary: denyhosts Start failure because of Python3 transition
Product: Mageia Reporter: Juan Magallón <waldergeist>
Component: RPM PackagesAssignee: David GEIGER <geiger.david68210>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: cooker
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://github.com/denyhosts/denyhosts/issues/54
Whiteboard:
Source RPM: denyhosts-3.1-7.mga8.src.rpm CVE:
Status comment:

Description Juan Magallón 2020-06-19 00:54:00 CEST
denyhosts service usually fails to start due to a missing change in the move to python3:

Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]: Traceback (most recent call last):
Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]:   File "/usr/bin/denyhosts.py", line 228, in <module>
Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]:     dh = DenyHosts(f, prefs, lock_file, ignore_offset,
Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]:   File "/usr/lib/python3.8/site-packages/DenyHosts/deny_hosts.py", line 78, in __init__
Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]:     offset = self.process_log(logfile, last_offset)
Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]:   File "/usr/lib/python3.8/site-packages/DenyHosts/deny_hosts.py", line 501, in process_log
Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]:     self.__report.add_section(msg, new_denied_hosts)
Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]:   File "/usr/lib/python3.8/site-packages/DenyHosts/report.py", line 43, in add_section
Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]:     if (type(i) is types.ListType) or (type(i) is types.TupleType):
Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]: AttributeError: module 'types' has no attribute 'ListType'
Jun 19 00:52:47 pandora.cps.unizar.es denyhosts.py[4655]: DenyHosts exited abnormally
Jun 19 00:52:47 pandora.cps.unizar.es systemd[1]: denyhosts.service: Can't open PID file /run/denyhosts.pid (yet?) after start: Operation not permitted
Jun 19 00:52:47 pandora.cps.unizar.es systemd[1]: denyhosts.service: Failed with result 'protocol'.

Problem is described here:

https://github.com/denyhosts/denyhosts/issues/54

and solution is also there.
Comment 1 David GEIGER 2020-06-19 12:57:42 CEST
Should be fixed with next denyhosts-3.1-8.mga8 update!

CC: (none) => geiger.david68210

Comment 2 Lewis Smith 2020-06-19 21:13:46 CEST
Thanks David for pre-empting this already. Hence assigning it to you.
Can you close it fixed when the update is done? I would not see that.
CC'ing JohnnyS (apparently still with us) as the registered maintainer.

[This looks a jolly useful pkg for a server].

CC: geiger.david68210 => cooker
Assignee: bugsquad => geiger.david68210

Comment 3 Lewis Smith 2020-06-19 21:19:55 CEST
See also bug 26823.

Summary: Start failure because of Python3 transition => denyhosts Start failure because of Python3 transition

Comment 4 David GEIGER 2021-01-06 13:24:15 CET
Closing as resolved fixed!

Status: NEW => RESOLVED
Resolution: (none) => FIXED