-
I believe the last entry may have been a temporary network glitch, I tested a second time, and now I get '0 hosts' when syncing with --debug, with both python 2.5 and 2.6.
2010-01-07 09:01:21 UTC by derkjan
-
This is odd, running with python 2.6 and --debug I get a connection timout. I tested using telnet and the server and port are reacheable just fine.
2010-01-07 09:07:33,917 - denyhosts : INFO DenyHosts launched with the following args:
2010-01-07 09:07:33,918 - denyhosts : INFO /usr/sbin/denyhosts --daemon --debug --purge --config=/etc/denyhosts.conf --config=/etc/denyhosts.conf...
2010-01-07 08:35:28 UTC by derkjan
-
I'm running it with the change to line 47 in sync.py and it's working fine for me. Is it still returning 0 every time for you? Can you run it in --debug mode and see if it logs anything else that might be of use?.
2010-01-07 01:25:09 UTC by phil_schwartz
-
I am also running Debian (debian testing on AMD64), kernel 2.6.30-2-amd64. I have just upgraded Python to 2.6, but the error remains:
2010-01-01 20:27:54,594 - sync : ERROR long int exceeds XML-RPC limits
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...
2010-01-01 19:59:13 UTC by derkjan
-
Did you restart the DenyHosts deamon after modifying sync.py?.
2009-12-31 16:51:28 UTC by phil_schwartz
-
Thanks for the help with this issue.
First off, I just realized that I didn't include my distribution/kernel version/etc or the Python version. I'm not sure what I was thinking when I wrote this up, sorry! I'm using Debian, kernel version 2.6.30-1-amd64. My Python version is 2.5.4. I'm using DenyHosts installed from apt, version 2.6-6.
I tried removing long() from line 47 of sync.py, but I...
2009-12-31 01:34:47 UTC by keithbuck
-
You could also try editing sync.py, line 47:
from:
timestamp = long(timestamp.strip())
to:
timestamp = timestamp.strip()
That should fix the issue w/ your current version of python.
2009-12-31 00:51:42 UTC by phil_schwartz
-
Can you try using python2.6? It may fix the issue but not sure. Are you running DenyHosts on a 64-bit kernel?.
2009-12-31 00:24:09 UTC by phil_schwartz
-
Here this issue gets discussed, it's apparently caused by running on a 64-bit OS:
http://mail.python.org/pipermail/python-dev/2009-July/090645.html
I'm no programmer myself though, so unfortunately I can't fix this. Besides that, it will probably need modifications on both client and server part, where the server part is still closed source AFAIK.
2009-12-29 10:12:37 UTC by derkjan
-
I'm having this problem, too. Although denyhosts keeps running (or appears to, at least), it fills its logfile with a lot of noise. I don't think the sync works either.
Anyone heard rumor of a fix?.
2009-12-22 17:22:41 UTC by nobody