If you use DenyHosts in Ubuntu Lucid 10.04, you are all but guaranteed to have the problems below.
I'm posting this solution to two problems in DenyHosts. Solving these problems took a lot of work. So I'm trying to make it much easier for the next person who has these problems.
The following error logs are actually one problem. However the solution is a two step fix.
Fixing the long int exceeds XML-RPC limits.2010-09-27 08:59:06,673 - sync : ERROR [Errno 2] No such file or directory: '/var/lib/denyhosts/sync-timestamp'
2010-09-27 10:59:14,193 - sync : ERROR long int exceeds XML-RPC limits
Look for the following and make the change from a to w.Code:sudo nano -w /usr/share/denyhosts/DenyHosts/sync.py
fp = open(os.path.join(self.__work_dir,
SYNC_TIMESTAMP), "a")Now to fix the missing sync-timestamp file.fp = open(os.path.join(self.__work_dir,
But we need to also change the UNIX time in the file to something more appropriate in order to stop the error message long int exceeds XML-RPC limits. Find the current UNIX time.Code:sudo touch /var/lib/denyhosts/sync-timestamp
The result should look like this.Code:date +%sJust copy and paste the UNIX time number into sync-timestamp, removing anything that may already be present in the sync-timestamp file. Save and restart DenyHosts.Code:1285624219
Code:sudo service denyhosts restart