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] 4 5

Author Topic: Connection to Kad lost  (Read 41866 times)

Pinky's Brain

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Connection to Kad lost
« Reply #30 on: February 04, 2006, 10:19:03 PM »

It's a bit weird ... AFAICS if KAD is shut down a restart should go exactly the same as when amuled gets started, but somehow it isn't. Shrug, I guess there are some uninitialized variables left which work by accident on first start.
« Last Edit: February 04, 2006, 10:19:48 PM by Pinky's Brain »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Connection to Kad lost
« Reply #31 on: February 04, 2006, 10:21:11 PM »

No, there isn't.
Logged

lao

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Connection to Kad lost
« Reply #32 on: February 05, 2006, 09:16:39 AM »

Quote
Originally posted by acehigh
With or without the patch i always see the number of contacts to zero after kad disconnects the first time. Before the first (and the only) disconnection, the number of contacts increases from zero up to about 900 and stays there for some time (hours).

Well, it does seem as if for some reason the reconnect fails on your end. Unfortunately, after running the daemon w/patch for a few days, I can't reproduce this.

But as your log shows, you still have enough contacts when the reconnect is effected. So I suppose that whatever causes your Kad connection to stagnate for 20 minutes on your end, also prevents the reconnect from working.

With that in mind, try the following patch (applies on top of the previous one).

http://www.amule.org/abugs/file_download.php?file_id=130&type=bug

Note: UNTESTED

It should effectively retry the reconnect every 15 or so minutes, until it succeeds.

HTH,
lao
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Connection to Kad lost
« Reply #33 on: February 05, 2006, 04:31:29 PM »

I keep betting on UDP port dying.
Logged

lao

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Connection to Kad lost
« Reply #34 on: February 05, 2006, 05:23:16 PM »

Hmm, I've frequently seen amule (which often runs on idle prio here) transfers starving when some other CPU hungry process is running for longer periods of time. Would that fit?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Connection to Kad lost
« Reply #35 on: February 05, 2006, 05:36:36 PM »

Nope.
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Connection to Kad lost
« Reply #36 on: February 05, 2006, 05:42:13 PM »

Kry, is there any way to check your theory? On a Linux box, that is, is there any way of checking the UDP port death?

Lately I haven't had any disconnects, but then again, aMule crashes invariably in about 2 days, and I am downloading some stuff again.
Logged
A waste is a terrible thing to mind.

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Connection to Kad lost
« Reply #37 on: February 05, 2006, 06:27:32 PM »

Activate all debug log for UDP ports, then send a random packet to the UDP port.   If it shows in the log as malformed packet, port is ok.
Logged

EvolutionCrazy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Connection to Kad lost
« Reply #38 on: March 03, 2006, 10:58:12 AM »

I've the same problem here :(

amuled running only as upload server (never ever download a file)...

i start it, kad stay connected for some time (maybe 2~4hours) and then disconnect....

no way to get it reconnected :(

from amulegui if i click "kad -> disconnected", then "kad -> bootstrap from know clients" in the log i see:
Quote
2006-03-03 10:53:48: Read 199 Kad contacts
2006-03-03 10:53:48: Kad started.

but kad is still died...  :(

it's a dedicated server... i've never seen any problem with my connection.... for some time i've also run a CoD2 game server (UDP only) without any problem...
it sounds weird to me a problem on UDP  ;(

in amuled i see:
Code: [Select]
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
Error on CKademliaUDPListener::processPublishRequest received from: 21.58.213.83:4672
No ip match
Error on CKademliaUDPListener::processPublishRequest received from: 59.186.48.81:4672
No ip match
Invalid Kad tag; type=0xea name=0x00
Error on CKademliaUDPListener::processPublishRequest received from: 189.9.159.82:4672
No ip match

again :(
Quote
2006-03-03 17:11:43: Connected to Kad (firewalled)
2006-03-03 17:11:43: Connected to Kad (ok)
2006-03-03 17:29:54: New external connection accepted
2006-03-03 17:29:54: Connecting client: amule-remote 0x0001
2006-03-03 17:29:54: Access granted.
2006-03-03 17:30:09: External connection closed.
2006-03-03 18:45:53: Disconnected from Kad

Code: [Select]
[xxx@xxx .aMule]$ amuled
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
Loading temp files from /home/xxx/.aMule/Temp.

All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
CECSocket error: Input/Output error
CECSocket error: Input/Output error

2006/03/05
others errors today:
Code: [Select]
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
Invalid Kad tag; type=0xc8 name=0x00
Error on CKademliaUDPListener::processPublishRequest received from: 125.175.242.81:50260
No ip match
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
Error on CKademliaUDPListener::processPublishRequest received from: 1.162.233.200:4672
No ip match
Error on CKademliaUDPListener::processPublishRequest received from: 106.50.200.83:4672
No ip match
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
Error on CKademliaUDPListener::processPublishRequest received from: 251.183.59.82:4672
No ip match
Invalid Kad tag; type=0x82 name=0x00
Error on CKademliaUDPListener::processPublishRequest received from: 89.5.234.82:4672
No ip match
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
CECSocket error: Input/Output error
CECSocket error: Input/Output error
CECSocket error: Input/Output error
CECSocket error: Input/Output error
Invalid Kad tag; type=0xdc name=0x00
Error on CKademliaUDPListener::processPublishRequest received from: 244.241.106.212:4672
No ip match
Error on CKademliaUDPListener::processPublishRequest received from: 237.1.4.88:4672
No ip match
Error on CKademliaUDPListener::processPublishRequest received from: 143.44.46.83:10195
No ip match
Error on CKademliaUDPListener::processPublishRequest received from: 209.152.190.84:4672
No ip match
Invalid Kad tag; type=0xaa name=0x00
Error on CKademliaUDPListener::processPublishRequest received from: 6.190.6.84:4672
No ip match
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.
Error on CKademliaUDPListener::processPublishRequest received from: 66.184.49.83:4672
No ip match
Error on CKademliaUDPListener::processPublishRequest received from: 125.95.130.83:4672
No ip match
Invalid Kad tag; type=0xfd name=0x00
Error on CKademliaUDPListener::processPublishRequest received from: 16.1.58.83:19607
No ip match
WARNING! Client UDP-Socket discarded packet due to errors (2) while sending.

 ;(
« Last Edit: March 05, 2006, 12:42:37 PM by EvolutionCrazy »
Logged

TheOnlyFish

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: Connection to Kad lost
« Reply #39 on: April 03, 2006, 09:19:22 AM »

It's the same problem here in 2.1.1. Kad is running fine for 48 hours then disconnects. Do I have a problem at my side or is this just the same bug in amuled?
Logged

realcruncher

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 46
kad
« Reply #40 on: April 16, 2006, 08:24:49 PM »

Somehow the CVS version from 14.4. is still connected to kad after 16hours.
Logged

Aethereal

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: Connection to Kad lost
« Reply #41 on: April 18, 2006, 09:04:31 AM »

Did you had the same problem before, with the same configuration?
I am using CVS from 14 April too but I experienced the same disconnec after some hours as usual.

Looking at the thread, I think I've noticed some point in common between my config and those of other users with the same behaviour, so I'd like to check:

1 - My server has a static private IP address
2 - The server is published on the internet with a static public address
3 - Only the relevant TCP/UDP ports are mapped
4 - The mapping is done by a firewall, not by the local machine (that is unaware of its own public address)
5 - The server mostly "serve" files, but does do downloads only occasionally (there are only 20 files on my DL queue now, all of them rare files of which no parts are available at the moment)

Can someone confirm that?
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Connection to Kad lost
« Reply #42 on: April 18, 2006, 10:11:55 AM »

Yes, I have this same setup. And with 2.1.1 usually the Kad connection stays up for up to 4 days now before giving in. But it still does disconnect after a while:
2006-03-30 20:29:46: Read 146 Kad contacts
2006-03-30 20:29:47: Connected to Kad (firewalled)
2006-03-30 20:29:50: Connected to Kad (ok)
2006-03-30 21:29:47: Connected to Kad (firewalled)
2006-03-30 21:29:48: Connected to Kad (ok)

2006-04-03 12:29:55: Connected to Kad (firewalled)
2006-04-03 12:29:56: Connected to Kad (ok)
2006-04-03 14:12:55: Disconnected from Kad

Perhaps it's because I run the daemon only, never the monolith? And of course, I run the daemon 24*7, until it crashes or it reaches 50% memory usage or it disconnects from Kad, whichever comes first.
« Last Edit: April 18, 2006, 10:28:32 AM by vdb »
Logged
A waste is a terrible thing to mind.

acehigh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
Re: Connection to Kad lost
« Reply #43 on: May 02, 2006, 11:53:54 PM »

Aethereal requests:

My configuration is similar to yours but:

2) Router has a dynamic IP (no static ip address)

The rest of points are about the same.

I'm stuck to 2.1.1. after I tried many CVSs, but the kad problem still appears.

I'm also involved in ISP blocking some ports (i.e. I got connections with lowID even if the ports were ok, till the day before!!), now solved, but either before or after this problem, kad gets disconnected after a while (2-3 days or so).

P.S. Realcruncher: obviously 16 hours is not enough, just to say.
« Last Edit: May 02, 2006, 11:55:51 PM by acehigh »
Logged
-- In a world without doors and locks, why do we need Windows and Gates? --

TheOnlyFish

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: Connection to Kad lost
« Reply #44 on: May 03, 2006, 06:35:16 AM »

Quote
Originally posted by Kry
I keep betting on UDP port dying.

Activate all debug log for UDP ports, then send a random packet to the UDP port.   If it shows in the log as malformed packet, port is ok.

Where do I have to activate the debug log (for the UDP ports) - in the firewall or in amule itself?

(BTW my config is similar to acehigh).
Logged
Pages: 1 2 [3] 4 5