aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Can't connect to Kademlia  (Read 6330 times)

MatB

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Can't connect to Kademlia
« 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.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Can't connect to Kademlia
« Reply #1 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...
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

MatB

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Can't connect to Kademlia
« Reply #2 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
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Can't connect to Kademlia
« Reply #3 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
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

MatB

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Can't connect to Kademlia
« Reply #4 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?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Can't connect to Kademlia
« Reply #5 on: March 29, 2006, 11:03:26 PM »

well for kad not really, only if you want to download files > 4gb...
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

TheOnlyFish

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: Can't connect to Kademlia
« Reply #6 on: March 30, 2006, 01:19:54 PM »

Maybe its this bug: Connection to Kad lost?
Logged

kikkoman

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Can't connect to Kademlia
« Reply #7 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?
Logged

TheOnlyFish

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: Can't connect to Kademlia
« Reply #8 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
Logged

kikkoman

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Can't connect to Kademlia
« Reply #9 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...
Logged

MatB

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Can't connect to Kademlia
« Reply #10 on: March 31, 2006, 02:04:25 PM »

same problem here.
Let us know if any solution comes afloat.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Can't connect to Kademlia
« Reply #11 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?
Logged

MatB

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Can't connect to Kademlia
« Reply #12 on: March 31, 2006, 03:58:15 PM »

sure, that's the first thing i checked.
Logged

kikkoman

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Can't connect to Kademlia
« Reply #13 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).
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Can't connect to Kademlia
« Reply #14 on: March 31, 2006, 10:34:19 PM »

teh slash at teh end should not matter... configure is smart enougth doto it right..
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."