@ToxIcon:
2010-07-11 19:08:52,679 - sync : ERROR <fault 1:="" "exceptions.keyerror:'timestamp'"="">Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/DenyHosts/sync.py", line 117, in receive_new_hosts
self.__prefs.get("SYNC_DOWNLOAD_RESILIENCY"))
File "/usr/local/lib/python2.5/xmlrpclib.py", line 1147, in call
return self.__send(self.__name, args)
File "/usr/local/lib/python2.5/xmlrpclib.py", line 1437, in __request
verbose=self.__verbose
File "/usr/local/lib/python2.5/xmlrpclib.py", line 1201, in request
return self._parse_response(h.getfile(), sock)
File "/usr/local/lib/python2.5/xmlrpclib.py", line 1340, in _parse_response
return u.close()
File "/usr/local/lib/python2.5/xmlrpclib.py", line 787, in close
raise Fault(**self._stack[0])
Fault: <fault 1:="" "exceptions.keyerror:'timestamp'"=""></fault></fault>
Looks like the problem is not python. From the FAQ Denyhosts was written for 2.3 and 2.4.
This might help someone but I don't use it because VPNs are a we bit safer ;)
DenyHosts requires Python v2.3 or later. If you are using an earlier version of Python then you should install a newer version of Python on your system. Multiple versions of Python can safely co-exist on your server so you do not need to worry about breaking any dependencies. You should obtain the latest version of Python and install it on your system. Depending on the method of download, your latest Python executable is typically installed in /usr/local/bin or /usr/bin.
If you downloaded version Python v2.3, then the executable is python2.3. If you downloaded Python v2.4 then the executable is python2.4.
If you will be using DenyHosts in daemon mode, then you will need to edit the daemon-control-dist script. You will want to copy this file to "daemon-control" such that future DenyHosts upgrades will preserve your edits.
$ cp daemon-control-dist daemon-control
Assuming you installed Python v2.4 and the executable is in /usr/bin then you will need to make the following changes to your daemon-control script:
Line # From To
1 #!/usr/bin/env python #!/usr/bin/python2.4
18 PYTHON_BIN = "/usr/bin/env python" PYTHON_BIN = "/usr/bin/python2.4"
You may need to modify the above paths to reflect the actual installation location and version of Python that you installed.
If you are not using DenyHosts in daemon mode then to execute DenyHosts you would do the following:
$ python2.4 denyhosts … args...
-or-
$ python2.3 denyhosts ... args...