aMule Forum

English => aMule Help => Topic started by: MatB on March 29, 2006, 01:58:59 PM

Title: Can't connect to Kademlia
Post by: MatB on March 29, 2006, 01:58:59 PM
Hi,
I compiled Amule on a Asus WL500gx which has no interface, so i'm running amuleweb.
I can connect to a server, but not to Kad:
- when i put a (surely working) IP in the web interface "bootstrap from node" nothing happens.
- i also tried to copy the nodes.dat file from my pc, but i get the following error, probably because of Endianess problem:
  Kademlia Indexing: Exception in CIndexed::readFile (IO error(6))
  Read 0 Kad contacts
- from the CLI, when i type 'connect Kad' i get 'Operation was successful' but status still reports 'Not connected'

Please help, i spent a lot of time to compile on this box.
Title: Re: Can't connect to Kademlia
Post by: stefanero on March 29, 2006, 04:56:23 PM
hey

stop aMule

edit amule.conf and enable auto-connect to kad

wget http://download.overnet2000.de/nodes.dat

the "new" nodes.dat and restart aMUle,

it should automatically connect to kad now...
Title: Re: Can't connect to Kademlia
Post by: MatB on March 29, 2006, 05:57:37 PM
Now Kad is connected, non firewalled; but any search on kad returns nothing. (I disabled E2DK in the conf file).
The nodes list also 'starves': every time i restart aMule i see less contacts; in a couple of runs it reaches 0 and i have to restart from your nodes.dat file.
My firewall rules are fine.

Also, for some reason, the dynamically generated graphs do not work and i cannot see how many peers are known; do you think it's possible to use the remote gui from a windows box? I'm not very comfortable with the web interface.

Thanks
Title: Re: Can't connect to Kademlia
Post by: stefanero on March 29, 2006, 08:31:07 PM
you should be able to see the graphs from windooze gui yes...

but sure kad is "ok" and not "firewalled" because I dont see no reason why your nodes should decrease instead of increase...

you aso need all udp ports, so 4662/tcp, 4665/udp and 4672/udp , all 3 of them are importand
Title: Re: Can't connect to Kademlia
Post by: MatB on March 29, 2006, 09:38:17 PM
Something is stinky wrong with the ports... i get an high ID from E2DK; but Kademlia sometimes refuses to start, sometimes is firewalled, sometime is 'ok' but in any case the know nodes count is always 0. Also the iptables counter for the udp packets is stuck to 0.
I'll investigate the issue further, thanks for the help so far.
Do you think it would be wise to give the CVS version a spin?
Title: Re: Can't connect to Kademlia
Post by: stefanero on March 29, 2006, 11:03:26 PM
well for kad not really, only if you want to download files > 4gb...
Title: Re: Can't connect to Kademlia
Post by: TheOnlyFish on March 30, 2006, 01:19:54 PM
Maybe its this bug: Connection to Kad lost (http://forum.amule.org/thread.php?threadid=8604&sid=)?
Title: Re: Can't connect to Kademlia
Post by: kikkoman on March 30, 2006, 02:28:59 PM
Quote
Originally posted by stefanero

edit amule.conf and enable auto-connect to kad


How can I do this?
Title: Re: Can't connect to Kademlia
Post by: TheOnlyFish on March 30, 2006, 02:43:23 PM
Quote
Originally posted by kikkoman
Quote
Originally posted by stefanero

edit amule.conf and enable auto-connect to kad


How can I do this?

in amule.conf, section [eMule] edit these lines as follows
Code: [Select]
ConnectToKad=1
Autoconnect=1
Title: Re: Can't connect to Kademlia
Post by: kikkoman on March 30, 2006, 06:53:28 PM
thanks!

I followed Stefanero's advices (2nd post of this thread) and Kad connected.

Kad ist still connected now, but the nodes.dat is now, after some hours, only 4 Byte small.
Content of nodes.dat: "...." (in words: four points)

maybe thats the reason I couldn't reconnect before. I'll hava an eye on that...
Title: Re: Can't connect to Kademlia
Post by: MatB on March 31, 2006, 02:04:25 PM
same problem here.
Let us know if any solution comes afloat.
Title: Re: Can't connect to Kademlia
Post by: phoenix on March 31, 2006, 02:30:32 PM
MatB,

Are you sure you have all 3 ports free on a firewall or port forwarded on a router?
Title: Re: Can't connect to Kademlia
Post by: MatB on March 31, 2006, 03:58:15 PM
sure, that's the first thing i checked.
Title: Re: Can't connect to Kademlia
Post by: kikkoman on March 31, 2006, 10:19:51 PM
Kad Status: OK since this morning.

I recompiled wxBase 2.6.3 and aMule 2.1.1, started aMule and it runs fine until now.
Size of nodes.dat: down to 104 bytes.

BTW:
In the wiki
Code: [Select]
./configure --prefix=/usr/ is given as the configline for wxBase. But is the last slash really necessary? I used it and
Code: [Select]
ls -l /usr/bin/wx* showed something with ".../usr//bin..." (doubleslash).
Title: Re: Can't connect to Kademlia
Post by: stefanero on March 31, 2006, 10:34:19 PM
teh slash at teh end should not matter... configure is smart enougth doto it right..