#49 Sync Fails

closed-duplicate
nobody
None
5
2010-08-20
2010-08-10
Mark Smith
No

I recently updated to the latest version of DenyHosts with hope of fixing this error, but it still occurs. Every sync I get the same results.

Aug 08 22:00:01 - sync : ERROR invalid literal for long() with base 10
: ''
Aug 08 22:00:03 - sync : ERROR [Errno 61] Connection refused
Traceback (most recent call last):
File "/data/applications/denyhosts/DenyHosts/sync.py", line 117, in receive_ne
w_hosts
self.__prefs.get("SYNC_DOWNLOAD_RESILIENCY"))
File "/data/applications/python/lib/python2.6/xmlrpclib.py", line 1199, in __c
all__
return self.__send(self.__name, args)
File "/data/applications/python/lib/python2.6/xmlrpclib.py", line 1489, in __r
equest
verbose=self.__verbose
File "/data/applications/python/lib/python2.6/xmlrpclib.py", line 1235, in req
uest
self.send_content(h, request_body)
File "/data/applications/python/lib/python2.6/xmlrpclib.py", line 1349, in sen
d_content
connection.endheaders()
File "/data/applications/python/lib/python2.6/httplib.py", line 892, in endhea
ders
self._send_output()
File "/data/applications/python/lib/python2.6/httplib.py", line 764, in _send_
output
self.send(msg)
File "/data/applications/python/lib/python2.6/httplib.py", line 723, in send
self.connect()
File "/data/applications/python/lib/python2.6/httplib.py", line 704, in connec
t
self.timeout)
File "/data/applications/python/lib/python2.6/socket.py", line 514, in create_
connection
raise error, msg
error: [Errno 61] Connection refused
Aug 08 22:00:44 - denyhosts : INFO new denied hosts: ['61.115.196.206']
equest
verbose=self.__verbose
File "/data/applications/python/lib/python2.6/xmlrpclib.py", line 1235, in req
uest
self.send_content(h, request_body)
File "/data/applications/python/lib/python2.6/xmlrpclib.py", line 1349, in sen
d_content
connection.endheaders()
File "/data/applications/python/lib/python2.6/httplib.py", line 892, in endhea
ders
self._send_output()
File "/data/applications/python/lib/python2.6/httplib.py", line 764, in _send_
output
self.send(msg)
File "/data/applications/python/lib/python2.6/httplib.py", line 723, in send
self.connect()
File "/data/applications/python/lib/python2.6/httplib.py", line 704, in connec
t
self.timeout)
File "/data/applications/python/lib/python2.6/socket.py", line 514, in create_
connection
raise error, msg
error: [Errno 61] Connection refused

Discussion

  • Mark Smith

    Mark Smith - 2010-08-10

    Operating system is FreeBSD 7.2 python is 2.6 and I can get to denyhosts.net

     
  • Phil Schwartz

    Phil Schwartz - 2010-08-20
    • status: open --> closed-duplicate
     
  • Phil Schwartz

    Phil Schwartz - 2010-08-20

    duplicate of tracker: 2898723

    In the comments section I provided this potential fix:

    You could also try editing sync.py, line 47:

    from:
    timestamp = long(timestamp.strip())
    to:
    timestamp = timestamp.strip()

    This fixed it on one of my hosts running python 2.6

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks