aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: How to diagnose problem with UDP?  (Read 2781 times)

lumi

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 16
How to diagnose problem with UDP?
« on: February 19, 2012, 01:16:02 PM »

Hi,

  I run aMule for a long time without problems, I didn't change configuration - not amule, not firewall, not nothing. The only possibility is, I upgraded some system library (like glibc).

  And from some time (2-3 weeks) out of the blue I get this error when starting aMule:
Code: [Select]
MuleUDPSocket.cpp(77): MuleUDPSocket: Failed to create valid Server UDP-Socket
and later (I don't know if related or not):
Code: [Select]
2012-02-19 13:07:08: UPnPBase.cpp(945): Universal Plug and Play: UPnP Error: CUPnPControlPoint::AddPortMapping: WAN Service not detected.
There is no more info, or error reason given. I get connected, highID, transfer is OK, etc. but without UDP this is only TCP in action.

It is the latest version of aMule (2.3.1), how can I diagnose what is the reason of this error?

Thank you!
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: How to diagnose problem with UDP?
« Reply #1 on: February 19, 2012, 05:25:12 PM »

Try a few different UDP ports, that's my best guess. There is no error message available here.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

lumi

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 16
Re: How to diagnose problem with UDP?
« Reply #2 on: February 19, 2012, 05:55:32 PM »

Thank you, this is completely crazy, but it worked.

Is there any possibility, that dying (crashing) aMule can somehow "lock" given port, and when I later run it again (I have uptimes of the system ~ a month) the "lock" is preserved and aMule cannot use this port again?

I am asking, but now it hit me -- when trying to solve this issue I've googled and I read the about the problems when running several instances on the same computer. Maybe remains of aMule + aMule somehow are in clash when it comes to the UDP ports?

If not this, for me it seems like pure magic :)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: How to diagnose problem with UDP?
« Reply #3 on: February 19, 2012, 07:47:06 PM »

Well, a reboot sometimes does magic.  :D
Not so much in Linux as in Windows, but it's sure possible that some effect somehow locks a port in your OS. If you never rebooted since the problem occurred that's the most probable solution.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

lumi

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 16
Re: How to diagnose problem with UDP?
« Reply #4 on: February 19, 2012, 10:36:48 PM »

My OS is Linux, don't know how about Windows, but in Linux you don't have to restart computer every day, and it would be great to keep it that way.

Anyone, one such "accident" per several years is rather miniscule problem but if you by any chance spot a way to handle better those port locks, it would be great - thank you in advance.
Logged

lumi

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 16
Re: How to diagnose problem with UDP?
« Reply #5 on: February 19, 2012, 10:37:44 PM »

PS. I is not that I am too lazy to reboot machine, it is when you run server it is not very applicable.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: How to diagnose problem with UDP?
« Reply #6 on: February 20, 2012, 10:45:59 PM »

It's rather a problem of your OS if it keeps resources locked after their process terminates.
Anyway, just one of the glitches you get when working with computers.  :)
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

stoatwblr

  • Sr. Member
  • ****
  • Karma: 12
  • Offline Offline
  • Posts: 318
Re: How to diagnose problem with UDP?
« Reply #7 on: March 03, 2012, 06:13:20 PM »

I've seen this kind of behaviour in the past.

Such reservations should expire after 10 minutes at most.

Logged