Denyhosts cannot purge
Michael_google gmail_Gersten
keybounce at gmail.com
Tue Jan 11 20:39:39 PST 2011
Denyhosts cannot purge entries for me.
2011-01-11 20:11:10,879 - denyfileutil: INFO purging entries older
than: Tue Jan 11 16:11:10 2011
2011-01-11 20:11:11,188 - root : ERROR invalid literal for
int() with base 10: 'Sat Jun 5 20'
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/DenyHosts/deny_hosts.py",
line 241, in sleepAndPurge
purge_time)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/DenyHosts/denyfileutil.py",
line 145, in __init__
purged_hosts = self.create_temp(self.get_data())
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/DenyHosts/denyfileutil.py",
line 164, in create_temp
banned = self.purge_counter.get_banned_for_life()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/DenyHosts/purgecounter.py",
line 41, in get_banned_for_life
if int(count) > self.purge_threshold:
ValueError: invalid literal for int() with base 10: 'Sat Jun 5 20'
This isn't recent.
This started, according to my log file, way back (earlier version) with
2010-06-07 08:07:14,428 - denyfileutil: INFO purging entries older
than: Mon Jun 7 04:07:14 2010
2010-06-07 08:07:14,363 - root : ERROR invalid literal for
int() with base 10: 'Sat Jun 5 20'
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/DenyHosts/deny_hosts.py",
line 241, in sleepAndPurge
purge_time)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/DenyHosts/denyfileutil.py",
line 145, in __init__
purged_hosts = self.create_temp(self.get_data())
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/DenyHosts/denyfileutil.py",
line 164, in create_temp
banned = self.purge_counter.get_banned_for_life()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/DenyHosts/purgecounter.py",
line 41, in get_banned_for_life
if int(count) > self.purge_threshold:
In other words, for about 7 months, denyhosts has not been purging bad hosts.
I updated denyhosts (and python). I cleared out my hosts.deny file. I
restarted a fresh new denyhosts.
As expected, it fetched a bunch of bad hosts, created hosts.deny, and
then started complaining all over again.
Any ideas?
--
Political and economic blog of a strict constitutionalist
http://StrictConstitution.BlogSpot.com
More information about the macports-users
mailing list