aMule Forum

English => en_Bugs => Topic started by: darkbasic on November 04, 2007, 05:53:06 PM

Title: kademlia doesn't work... (amule 2.2 + NAT)
Post by: darkbasic on November 04, 2007, 05:53:06 PM
(http://www.quellicheilpc.com/darkbasic/kad.png)

(http://www.quellicheilpc.com/darkbasic/kad2.png)

Hi! I'm using debian sid 64 bit,  gcc 4.2, the latest amule 2.2 snapshot and wxgtk 2.8.6.
I'm behind NAT, so I have low id.
I tried to download nodes.dat from http://emule-inside.net/nodes.dat and connecting to a server and bootstrap from known clients.
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: skolnick on November 05, 2007, 04:41:09 AM
And what is exactly what it doesn't work?
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: myth on November 05, 2007, 07:03:16 AM
You mean the Kad-contacts, which aren't stable? Or what?

Doesn't aMule upload (and download)?
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: darkbasic on November 05, 2007, 07:52:27 PM
And what is exactly what it doesn't work?
Kademlia doesn't find any nodes (in fact if I try to search something with kad I have no results).

Doesn't aMule upload (and download)?
No,  it doesn't upload if I use kad only. It doesn't find any sources.

I tried to install the stable version (2.1.3), to connect to kademlia, to backup nodes.dat and to copy it to the aMule 2.2 cvs profile directory (~/.aMule).
Now aMule 2.2 cvs works properly (http://www.quellicheilpc.com/darkbasic/kad_ok.png)!!
Now I have another one problem: when I finish to download something, amule stops to upload it (I think the publishing of the shared files doesn't work).
Screenshot (http://www.quellicheilpc.com/darkbasic/no_upload.png)
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: darkbasic on November 07, 2007, 09:15:23 PM
when I finish to download something, amule stops to upload it (I think the publishing of the shared files doesn't work).
Screenshot (http://www.quellicheilpc.com/darkbasic/no_upload.png)

Up
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: wuischke on November 08, 2007, 12:43:45 AM
This happens because you are not connected to a server and you have no contact to other clients via kad. Try downloading something to get in contact with some sources and uploads will start (you can stop the other download once it started).
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: darkbasic on November 08, 2007, 11:14:51 AM
This happens because you are not connected to a server and you have no contact to other clients via kad.
I have 900 kad nodes and I'm downloading tons of files :(
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: wuischke on November 08, 2007, 05:40:56 PM
OK, are there any clients in the client list waiting to download ubuntu from you?
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: darkbasic on November 08, 2007, 06:33:39 PM
No
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: darkbasic on November 11, 2007, 10:37:10 AM
up
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: Vollstrecker on November 11, 2007, 12:39:35 PM
If noone asks you for a file, to whom are you planning to upload?
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: Gnucco on November 11, 2007, 03:44:50 PM
Now I have another one problem: when I finish to download something, amule stops to upload it (I think the publishing of the shared files doesn't work).

This behaviour is due to the tag/string serialization bug I reported some time ago.
The workaround I proposed seems to fix this.

Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: darkbasic on November 11, 2007, 07:05:07 PM
If noone asks you for a file, to whom are you planning to upload?
If no one asks me for a file, it's because of a bug:  when I was downloading that file, tens of users asked me for it.

This behaviour is due to the tag/string serialization bug I reported some time ago.
The workaround I proposed seems to fix this.
Thank you, next time I'll compile a snapshot, I'll apply it :)
http://forum.amule.org/index.php?topic=13609.0
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: RRT4 on November 11, 2007, 08:22:31 PM
Now I have another one problem: when I finish to download something, amule stops to upload it (I think the publishing of the shared files doesn't work).

This behaviour is due to the tag/string serialization bug I reported some time ago.
The workaround I proposed seems to fix this.



i had a strange problem with publishing on kad too, in my environment (archlinux current, kad enabled, servers connection disabled, more than 500 files shared) amuled did not upload anything (not a single file request in hours of uptime) if i started it through the init script from the wiki page or directly with the command
su my_amuled_user -c 'amuled -f'

instead it worked well (publishing and uploading within few minutes) if i logged into the system as my_amuled_user through ssh and started it with 'amuled -f'

now i have applied your patch to the daily cvs and it started working well always (also if i start amuled at boot time through the init script)
so tnx, i hope your patch will be committed soon

edit: i want to add that in every test i was not downloading files, so no user could reach my queue as a consequence of the fact that i was entered in his queue
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: darkbasic on November 11, 2007, 08:56:30 PM
instead it worked well (publishing and uploading within few minutes) if i logged into the system as my_amuled_user through ssh and started it with 'amuled -f'
It makes no sense :)
It's a _very_ strange behaviour...

Edit: what about su - my_amuled_user -c 'amuled -f'?

i hope your patch will be committed soon
Me too.
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: RRT4 on November 11, 2007, 09:27:14 PM
instead it worked well (publishing and uploading within few minutes) if i logged into the system as my_amuled_user through ssh and started it with 'amuled -f'
It makes no sense :)

i agree, it is really inexplicable and probably someone will laugh about this, but it is the only way to make a kad (uploading only) amuled client working well on my system

Quote
Edit: what about su - my_amuled_user -c 'amuled -f'?
that i used is what is reported in the example init script
su $USER -c "$DAEMON -f"
http://www.amule.org/wiki/index.php/AMuleWeb#aMuled_and_aMuleWeb_as_services

just to clarify it is not a problem of starting the client or of permissions on the shared files, in both way amuled starts as user my_amuled_user, reads the same configuration files, loads the same shared files (show log in amulecmd reports 'loaded 505 shared files, etc), but publishing and uploading only works in the second way

however, hopefully my issue is solved with the patch of Gnucco
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: phoenix on November 12, 2007, 12:14:00 AM
I have committed Gnucco's patch, if anyone disagrees I roll it back.

Cheers!
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: darkbasic on November 12, 2007, 07:33:18 PM
Gnucco's patch doesn't work for me :(
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: darkbasic on November 16, 2007, 12:23:27 PM
up
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: phoenix on November 16, 2007, 12:26:26 PM
I don't know about the others, but "up" gives on my nerves.
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: Kry on November 17, 2007, 06:53:16 PM
Seconded
Title: Re: kademlia doesn't work... (amule 2.2 + NAT)
Post by: Vollstrecker on November 19, 2007, 10:23:26 AM
Next