FWIW, here's fix #2 for this issue:
at the end of the file change the 2 "### <<<<" lines as shown:
broken:
=========
if sync_download:
new_hosts = sync.receive_new_hosts()
if new_hosts:
info("received new hosts: %s", str(new_hosts))
sync.get_denied_hosts() ### <<<< sync to dh
sync.update_hosts_deny(new_hosts) ### <<<< sync to dh
fixed:
========
if sync_download:
new_hosts = sync.receive_new_hosts()
if new_hosts:
info("received new hosts: %s", str(new_hosts))
dh.get_denied_hosts()
dh.update_hosts_deny(new_hosts)
Phil
On Fri, 7 Nov 2008, Jason L Tibbitts III wrote:
>>>>>> "PS" == Phil Schwartz <[EMAIL PROTECTED]> writes:
>
> PS> The quick fix is to put the following line into
> PS> /usr/bin/denyhosts:
>
> Yes, that makes things progress further, but it does fail later; now
> the output at the end looks like:
>
> receive_new_hosts()
> [Errno 2] No such file or directory:
> '/var/lib/denyhosts/sync-timestamp'
> received 50 new hosts
> received new hosts: ['86.55.4.206', '213.178.48.4', '125.102.33.90',
> '211.20.41.56', '209.40.204.111', '220.232.139.145',
> '202.124.135.199', '217.7.212.127', '200.182.248.36', '66.211.37.98',
> '195.101.130.217', '124.137.205.55', '82.160.223.145',
> '217.148.95.137', '61.153.20.118', '61.82.92.204', '211.44.250.174',
> '63.139.11.158', '203.91.145.98', '60.31.195.66', '211.45.131.220',
> '64.191.188.46', '216.146.46.15', '195.34.33.74', '203.163.253.230',
> '83.238.244.214', '72.21.10.90', '218.106.247.91', '72.44.90.50',
> '222.35.136.84', '66.34.250.64', '202.103.17.21', '67.152.231.99',
> '211.95.84.70', '196.44.189.163', '122.155.0.104', '203.130.248.134',
> '70.137.200.179', '212.122.161.247', '213.228.152.158',
> '221.135.102.70', '81.91.236.67', '81.91.236.79', '61.218.67.101',
> '81.180.118.132', '210.51.184.105', '60.191.122.66', '222.35.136.30',
> '195.39.102.82', '194.72.73.247']
> Error synchronizing data
> Sync instance has no attribute 'get_denied_hosts'
>
> - J<
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Denyhosts-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/denyhosts-user
>
--
Regards,
Phil Schwartz
- http://www.phil-schwartz.com
Open Source Projects:
- DenyHosts: http://www.denyhosts.net
- Kodos: http://kodos.sourceforge.net
- ReleaseForge: http://releaseforge.sourceforge.net
- Scratchy: http://scratchy.sourceforge.net
- FAQtor: http://faqtor.sourceforge.net
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user