Joined: 20 Dec 2010
|Posted: Mon Dec 20, 2010 9:45 am Post subject: Denyhosts, strptime and python - fails to run
|I have searched the forum and the internet but have found no answer.
Until recently, denyhosts worked fine. Now, however, I get a runtime error as follows:
Traceback (most recent call last):
File "/usr/bin/denyhosts.py-2.6", line 164, in <module>
first_time, noemail, daemon)
File "/usr/lib/python2.6/site-packages/DenyHosts/deny_hosts.py", line 82, in __init__
offset = self.process_log(logfile, last_offset)
File "/usr/lib/python2.6/site-packages/DenyHosts/deny_hosts.py", line 423, in process_log
login_attempt.add(user, host, success, invalid)
File "/usr/lib/python2.6/site-packages/DenyHosts/loginattempt.py", line 66, in add
File "/usr/lib/python2.6/site-packages/DenyHosts/counter.py", line 37, in age_count
epoch = time.mktime(time.strptime(self.__date))
File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time
return _strptime(data_string, format)
File "/usr/lib/python2.6/_strptime.py", line 325, in _strptime
ValueError: time data 'Sun' does not match format '%a %b %d %H:%M:%S %Y'
I have re-emerged gcc, glibc, python, denyhosts and anything else I could think of to no avail.
Any pointers on how to fix this please?