Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Denyhosts, strptime and python - fails to run
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pdm
n00b
n00b


Joined: 20 Dec 2010
Posts: 1

PostPosted: Mon Dec 20, 2010 9:45 am    Post subject: Denyhosts, strptime and python - fails to run Reply with quote

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
self.__abusive_hosts_restricted[host].age_count(self.__age_reset_restricted)
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)[0]
File "/usr/lib/python2.6/_strptime.py", line 325, in _strptime
(data_string, format))
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?

Pieter
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum