Menu

#46 Sync failure - "long int exceeds XML-RPC limits"

open
nobody
None
5
2015-04-16
2009-11-16
Keith Buck
No

DenyHosts successfully syncs twice, downloading 50 hosts each time, and then on the third sync it dies with this traceback when downloading hosts (upload is not affected):

Traceback (most recent call last):
File "/usr/share/denyhosts/DenyHosts/sync.py", line 117, in receive_new_hosts
self.__prefs.get("SYNC_DOWNLOAD_RESILIENCY"))
File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.5/xmlrpclib.py", line 1431, in __request
allow_none=self.__allow_none)
File "/usr/lib/python2.5/xmlrpclib.py", line 1080, in dumps
data = m.dumps(params)
File "/usr/lib/python2.5/xmlrpclib.py", line 623, in dumps
dump(v, write)
File "/usr/lib/python2.5/xmlrpclib.py", line 635, in __dump
f(self, value, write)
File "/usr/lib/python2.5/xmlrpclib.py", line 661, in dump_long
raise OverflowError, "long int exceeds XML-RPC limits"
OverflowError: long int exceeds XML-RPC limits

My sync settings are:

2009-11-16 03:03:47,874 - prefs : INFO SYNC_DOWNLOAD: [yes]
2009-11-16 03:03:47,874 - prefs : INFO SYNC_DOWNLOAD_RESILIENCY: [18000]
2009-11-16 03:03:47,874 - prefs : INFO SYNC_DOWNLOAD_THRESHOLD: [50]
2009-11-16 03:03:47,874 - prefs : INFO SYNC_INTERVAL: [3600]
2009-11-16 03:03:47,874 - prefs : INFO SYNC_SERVER: [http://xmlrpc.denyhosts.net:9911]
2009-11-16 03:03:47,874 - prefs : INFO SYNC_UPLOAD: [yes]

As mentioned before, this only happens after two successful syncs. I've found another report about it, but no solutions: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546772

Thanks for reading.

Discussion

<< < 1 2 (Page 2 of 2)
  • Anonymous

    Anonymous - 2010-05-29

    Correction: I have successfully synched twice in a
    row with the time stamp file showing a single time stamp.

     
  • kozimodo

    kozimodo - 2010-05-30

    I can confirm that changing the "a" to a "w" works and the line 47 and 57 edits are not necessary with the line 55 edit

     
  • Kyle Willmon

    Kyle Willmon - 2011-04-25

    As distributed, denyhosts currently uses "w" on line 55. This code is actually due to a debian patch added in June of 2009 in an attempt to fix the following bugs:

    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508504
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510126

    Unfortunately, this patch was a poorly chosen solution to this problem. I am creating a new patch that will be included in the next debian revision of the denyhosts package. Just wanted to clarify that this is a debian issue and not a denyhosts issue. Sorry Phil.

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.