aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2 3

Author Topic: Kademlia gets disconnected and can't reconnect  (Read 14685 times)

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Kademlia gets disconnected and can't reconnect
« on: October 27, 2005, 06:34:33 PM »

Hi, all!

I observed a, at least for me, strange behaviour of amuled concerning kad.

I use amuled/amuleweb/amulcmd on Debian Sarge w/o any gui. All three magic ports are forwarded to the PC and I have a high id.

After starting amuled I can see the usual lines in the log file. The first tells me, that 0 (sometimes more) kad contacts have been read (don't know the exact phrasing in English, as I'm using German version). Some minutes later I am connected to kad, but firewalled. Another few minutes later kad is OK. So far, so good.

But, after some time, again the message in the log file, that I am connected to kad (firewalled) and after a few minutes, that kad is OK. No message that kad was disconnected.

I get those disconnect messages, too, once in a while, so I know, that they do exist.

After some time, I get to the point that the web server tells me "Kad: off". If I take a look in the log file, the last line with the string "kad" in it, says "connected to Kad(firewalled)" and is 16 hours old. No mention of "disconnected" before or after.

Even if I manually do a "connect kad" in amulecmd (which is answered with "successfull"), nothing changes. Kad is still off and stays that way, until I restart amuled. Then the connection is OK again for some hours.

I can, of course, see the same with amulegui under WinXP. It makes no difference at all. Only mentioning this for the sake of completeness.

Any ideas about that? What about the settings concerning the learning of new servers from other clients? Do these have an effect on Kademlia?
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

Aethereal

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: Kademlia gets disconnected and can't reconnect
« Reply #1 on: October 31, 2005, 10:13:52 AM »

Just a brief note to confirm I have the same behaviour with CVS 20051028
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Kademlia gets disconnected and can't reconnect
« Reply #2 on: October 31, 2005, 03:32:54 PM »

Hum.
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Kademlia gets disconnected and can't reconnect
« Reply #3 on: November 01, 2005, 10:38:53 AM »

And I have to say that the same is happening for me on CVS 20051029. This is the logfile after starting the daemon:
2005-10-31 22:21:06: Read 161 Kad contacts
2005-10-31 22:21:07: Connected to Kad (firewalled)
2005-10-31 22:21:21: Connected to Kad (ok)
2005-11-01 00:21:11: Connected to Kad (firewalled)
2005-11-01 00:21:11: Connected to Kad (ok)
2005-11-01 03:21:08: Connected to Kad (firewalled)
2005-11-01 03:21:08: Connected to Kad (ok)
2005-11-01 04:52:35: Disconnected from Kad

Then I used the commandline to connect to kad and it shows:
2005-11-01 10:51:00: Read 8 Kad contacts

Something is happening, but it stays disconnected from kad.
Logged
A waste is a terrible thing to mind.

Bambu75

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Kademlia gets disconnected and can't reconnect
« Reply #4 on: November 02, 2005, 05:59:08 PM »

Same behavior also with the 20051101. I use a Mandrake 10.1 and aMule is compiled with the gui, but in my case Kad does not disconnect, simply somtimes is ok and sometimes is firewalled.

There is a new port to open on the firewall?

See you
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Kademlia gets disconnected and can't reconnect
« Reply #5 on: November 02, 2005, 06:02:52 PM »

Only the three ports shown in preferences - connection.

Kad always starts assuming it is firewalled because it has no server that can tell amule 'The Kad port is reachable.' So it starts thinking it is firewalled and sets the status to OK after receiving the first Kad packages from the outside. So it is perfectly normal that Kad is in status firewalled some time after connecting.
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

Bambu75

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Kademlia gets disconnected and can't reconnect
« Reply #6 on: November 02, 2005, 06:40:05 PM »

Also during dowloads? For instance, now my amule is downloading and kad is firewalled; 5 minutes ago was waiting and kad said me ok.
So, for some reason kad was disconnected and the reconnected automaticaly and next time I will see amule status will be ok? Is it right?

See you
« Last Edit: November 02, 2005, 06:40:19 PM by Bambu75 »
Logged

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
CVS 2005-11-22: still disconnecting from kad
« Reply #7 on: November 23, 2005, 12:13:35 PM »

Just a little update:

Yesterday's CVS (2005-11-22) still has the same behaviour. After some time kad disconnects and won't reconnect, even if saying so (response after executing "connect" in amulecmd).

The only noticeable difference was that now I have a message in the log about kad having disconnected. (Has been firewalled first, then ok for some time).

BTW: In said CVS I don't see any mentioning of kad in amuleweb anymore?! I'm using chicane template. I have to look into the log or "status" with amulecmd to see the kad status.
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Kademlia gets disconnected and can't reconnect
« Reply #8 on: November 23, 2005, 12:17:26 PM »

This seems to me like a network overload problem, to be fair.
Logged

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Re: Kademlia gets disconnected and can't reconnect
« Reply #9 on: November 24, 2005, 09:43:36 AM »

On which side?

My network load at the internet connection is at maybe 10% or less. My intranet (min 3, max up to 10 computers of any flavours) has not much load, either. Exceptions are of course, while making software updates, but that's only for short times and not that often. I normally don't have many, if any, downloads over amule active. And I don't see, why I shouldn't be able to reconnect to kad manually.

The main point is for me the difference between the first connect after starting amuled, which invariably succeeds, and all following attempts after once losing the connection, which invariably fail...

I make all connections "by hand", by the way (entering "connect" in amulecmd).

It may of course be, that this behaviour is quite normal for kademlia, because I don't have any downloads, so the connected clients aren't really "needed". But a new connection attempt should be successfull, I believe, at least for a few minutes.

And I had this same behaviour while downloading an OS-Image with quite a lot of sources (no idea how many of these were ed2k and how many kad), so I don't really think that's the point.

Are there any traces I could activate to track this? I didn't look into the sources, yet, because of the "end of year == no time, everyone is going bananas"-problem. But I am system software developer, so if you have any suggestion where I could take a look or make a test - shoot ahead!
« Last Edit: November 24, 2005, 09:45:20 AM by Radek »
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Kademlia gets disconnected and can't reconnect
« Reply #10 on: December 05, 2005, 12:39:41 AM »

Just to open up an old thread again: CVS 20051203 (yes, I did get it to compile....)  is still having this "kad disconnect" issue. Perhaps the previous ones I tried have it as well, but since I use the daemon generally in detached mode there are no logs to show it (nudge Kry....)

My logfile of today shows:
 cat logfile | grep Kad
2005-12-04 12:11:29: Read 69 Kad contacts
2005-12-04 12:11:30: Connected to Kad (firewalled)
2005-12-04 12:11:36: Connected to Kad (ok)
2005-12-04 13:11:30: Connected to Kad (firewalled)
2005-12-04 13:11:31: Connected to Kad (ok)
2005-12-04 17:11:30: Connected to Kad (firewalled)
2005-12-04 17:11:30: Connected to Kad (ok)
2005-12-04 21:22:56: Disconnected from Kad
2005-12-05 00:36:39: Read 10 Kad contacts
2005-12-05 00:36:39: Connected to Kad (firewalled)

The first entry is related to the starting of the daemon, the last entry was because I used the command "connect kad". However, nothing really happens, amulegui and amuleweb still happily report Kad to be off.  And status in amulecmd: Not connected.

Checking the logfiles of both amule and system nothing out of the ordinary shows up at or around 21:22.

As for downloads, the last one finished around 18:11, and I started 2 downloads around 00:20. Can't really be a network problem, since my DSL line is showing usage of around 150 kbps up and 0 down on a 600/3000 subscription.

One odd thing too is that the reconnects always occur on the same minute of the hour....... Exactly the minute the daemon was started.
« Last Edit: December 05, 2005, 12:40:09 AM by vdb »
Logged
A waste is a terrible thing to mind.

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Re: Kademlia gets disconnected and can't reconnect
« Reply #11 on: December 05, 2005, 12:06:39 PM »

I just checked my logs and can confirm this behaviour (CVS 2005-12-04).

The reconnects always happen at about the same minute of the hour (+/- 10-15 seconds)

As my kad is disconnected for about 23 hours ("connected" lasted only about 140 minutes), I entered "connect kad" in amulecmd which produced a "Operation was successful". The output of "status" tells me "Kad: Not connected", whereas the log says "Reading 86 kad contacts | Kad connected (firewalled)" (or something like that, I have the german version).

Every snapshot I tried, up to the mentioned one, had this behaviour.

BTW: In amuleweb with "chicane" there is no indication of kad status anymore. The connection to "Razorback 2.0" is mentioned, as are IP address and port number, but nothing about kad. Not really important but maybe connected somehow?
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

Aethereal

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: Kademlia gets disconnected and can't reconnect
« Reply #12 on: December 06, 2005, 01:22:04 PM »

I still (CVS 2005-12-05 ) get the same behaviour as usual (at least for me): Kad connect, initially firewalled then Ok, and after about 1h30m get disconnected (regardless of the fact that there are active downloads or uploads) and NEVER reconnect, even after several hours...
There is something I can monitor? I'd like to understand why...
Logged

DigitoErgoSum

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: Kademlia gets disconnected and can't reconnect
« Reply #13 on: December 11, 2005, 11:44:44 PM »

Quote
Originally posted by Aethereal
I still (CVS 2005-12-05 ) get the same behaviour as usual (at least for me): Kad connect, initially firewalled then Ok, and after about 1h30m get disconnected (regardless of the fact that there are active downloads or uploads) and NEVER reconnect, even after several hours...
There is something I can monitor? I'd like to understand why...
Are you a fastweb user ???? (could it be caused by a nat problem ???? )
I got similar "error"...
Logged

Aethereal

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: Kademlia gets disconnected and can't reconnect
« Reply #14 on: December 12, 2005, 10:01:40 AM »

Nope, the server running aMuled is not on Fastweb, but it is NATted.
Both the local and the public addresses are static, so I don't see why it should stop working after some time...
I noticed Kad is working in the first 1h30m, because I am able to do searches on it, if it were a NAT issue it shouldn't work from the beginning... but I am not a Kad guru...
Logged
Pages: [1] 2 3