Since the exception is being caught and reraised the exact line number of the crash is not present in the traceback. My best guess is that the very last line in your HOSTS_DENY file (/etc/hosts.deny or /etc/hosts.evil or whatever you use) looks like # DenyHosts: <timestamp> | <IP> and the actual line banning that IP that is supposed to appear immediately afterward is not there. If this is the case you should be able to add the missing line back in by hand. Or you can delete the comment line but then DenyHosts might add the entry back in on the next run and you'd have the wrong timestamp on it.
In the long term, create_temp should be changed to check that it isn't running off the end of the array and that catch-and-reraise should probably be removed to improve future tracebacks. -- James Abbatiello http://www.stardrifter.org/ > Hi, > Every hour when deny hosts is trying to purge entries it dies and I have > to restart it again. > Anyone seen this before. > > This is te last error I get before the daemon dies. > > denyfileutil: INFO purging entries older than: Sun Dec 16 07:43:01 > 2007 > 2007-12-17 07:43:01,524 - root : ERROR list index out of range > Traceback (most recent call last): > File "/usr/share/denyhosts/DenyHosts/deny_hosts.py", line 241, in > sleepAndPurge > purge_time) > File "/usr/share/denyhosts/DenyHosts/denyfileutil.py", line 159, in > __init__ > purged_hosts = self.create_temp(self.get_data()) > File "/usr/share/denyhosts/DenyHosts/denyfileutil.py", line 232, in > create_temp > raise e > IndexError: list index out of range > > Many thanks, > Wim > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Denyhosts-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/denyhosts-user > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Denyhosts-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/denyhosts-user
