aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuled exit when connection is lost  (Read 4673 times)

whjiang

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
amuled exit when connection is lost
« on: January 04, 2010, 07:58:18 AM »

I have cross-compiled amuled and installed it on my Broadcom 6358 based ADSL router. It works fine initially. However, when the ADSL connection is down, amuled will automatically exit, even though the connection is restored later by the router.

I am using the standard configuration created by first run of amuled.

How to make amuled continuously running and retrying when the connection is temporarily down?

Thanks
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: amuled exit when connection is lost
« Reply #1 on: January 04, 2010, 03:12:26 PM »

Does the router execute an internal reset when the connection goes down? What do you find in aMuled's logfile?
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

whjiang

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: amuled exit when connection is lost
« Reply #2 on: January 05, 2010, 03:26:10 PM »

The ADSL router doesn't perform any reset operation. The pppd process just tries to restore connection.

And amuled log shows:
2010-01-05 14:07:35: Starting aMuled 2.2.6 using  v2.8.10
2010-01-05 14:07:35: ERROR: WARNING Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
2010-01-05 14:07:36: Creditfile loaded, 2443 clients are known
2010-01-05 14:07:36: Loading IP-filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2010-01-05 14:07:36: Loaded 0 IP-ranges from '/opt/amule/.aMule/ipfilter.dat'. 0 malformed lines were discarded.
2010-01-05 14:07:36: Loaded 0 IP-ranges from '/opt/amule/.aMule/ipfilter_static.dat'. 0 malformed lines were discarded.
2010-01-05 14:07:36: *** TCP socket (ECServer) listening on 0.0.0.0:4712
2010-01-05 14:07:36: Created Server UDP-Socket at port 4665
2010-01-05 14:07:36: Created Client UDP-Socket at port 4672
2010-01-05 14:07:36: Loading server.met file: /opt/amule/.aMule/server.met
2010-01-05 14:07:36: 32 servers in server.met found
2010-01-05 14:07:36: Found 5 part files
2010-01-05 14:07:36: Found 6 known shared files
2010-01-05 14:07:36: Connecting
2010-01-05 14:07:36: Deleted stale lock file '/opt/amule/.aMule/muleLock'.
2010-01-05 14:07:36: ThreadScheduler: Completed task 'AICH Syncronizing', 0 tasks remaining.
2010-01-05 14:07:36: Connecting to eserver.no1 (no1.eserver.emule.org.cn - 0.0.0.0:8080) using protocol obfuscation.
2010-01-05 14:07:36: Connected to eserver.no1 (60.190.138.106:8080)
2010-01-05 14:07:36: Kad started.
2010-01-05 14:07:36: Connecting to eDonkeyServer No1 (77.247.178.244 - 77.247.178.244:4242) using protocol obfuscation.
2010-01-05 14:07:37: Lost connection to eserver.no1 (60.190.138.106:8080)
2010-01-05 14:07:37: Connection lost
2010-01-05 14:07:51: Kad stopped.
2010-01-05 14:07:51: Connected to Kad (firewalled)
2010-01-05 14:08:02: Connection attempt to eserver.no1 (60.190.138.106:8080) timed out.
2010-01-05 14:08:02: Connecting to eDonkeyServer No2 (212.63.206.35 - 212.63.206.35:4242)
2010-01-05 14:08:02: Connection attempt to eDonkeyServer No1 (77.247.178.244:4242) timed out.
2010-01-05 14:08:02: Connecting to www.UseNeXT.to (87.230.83.44 - 87.230.83.44:443) using protocol obfuscation.
2010-01-05 14:08:02: Connection attempt to eDonkeyServer No2 (212.63.206.35:4242) timed out.
2010-01-05 14:08:02: Connecting to www.UseNeXT.to 2 (80.237.156.72 - 80.237.156.72:443) using protocol obfuscation.
2010-01-05 14:08:02: Connection attempt to www.UseNeXT.to (87.230.83.44:4661) timed out.
2010-01-05 14:08:02: Connecting to 『^樂兒^天地』P2P服务器 (210.5.152.71 - 210.5.152.71:4242) using protocol obfuscation.
2010-01-05 14:08:02: Connection attempt to www.UseNeXT.to 2 (80.237.156.72:4661) timed out.
2010-01-05 14:08:02: Connecting to PEERATES.NET (88.191.81.111 - 88.191.81.111:1111) using protocol obfuscation.
2010-01-05 14:08:02: Connection attempt to 『^樂兒^天地』P2P服务器 (210.5.152.71:4242) timed out.
2010-01-05 14:08:02: Connecting to eDonkeyServer No2 (77.247.178.245 - 77.247.178.245:443) using protocol obfuscation.
2010-01-05 14:08:02: Connection attempt to PEERATES.NET (88.191.81.111:1111) timed out.
2010-01-05 14:08:02: Connecting to TVU DonkeyServer No1 - Now On New Hardware (89.248.174.84 - 89.248.174.84:6543) using protocol obfuscation.
2010-01-05 14:08:02: Connection attempt to eDonkeyServer No2 (77.247.178.245:4242) timed out.
2010-01-05 14:08:02: Connecting to eserver 17.15 (93.174.93.215 - 93.174.93.215:4500) using protocol obfuscation.
2010-01-05 14:08:02: Connection attempt to eserver 17.15 (93.174.93.215:4500) timed out.
2010-01-05 14:08:02: Connecting to Master Server 1 (83.233.30.55 - 83.233.30.55:4500) using protocol obfuscation.
2010-01-05 14:08:02: Connected to Master Server 1 (83.233.30.55:4500)
2010-01-05 14:08:03: Connecting to Razorback 3.0 (85.17.52.92 - 85.17.52.92:5000)
2010-01-05 14:08:03: New external connection accepted
2010-01-05 14:08:03: Connecting client: amule-remote 0x0001
2010-01-05 14:08:03: Access granted.
2010-01-05 14:08:04: Connection established on: Master Server 1
2010-01-05 14:08:04: Connected to Master Server 1 with HighID
2010-01-05 14:08:04: New clientid is 2394116826
2010-01-05 14:08:04: ServerMessage: server version 17.15 (lugdunum)
2010-01-05 14:08:04: ServerMessage: Free Sex=====Free Sex=====Free Sex--=====Free Sex=====Free Sex
2010-01-05 14:08:04: ServerMessage: Free Sex                            Free Sex   Free Sex
2010-01-05 14:08:04: ServerMessage: www.StormSex.net/1/free/7            www.StormSex.net/1/free/7         www.StormSex.net/1/free/7
2010-01-05 14:08:04: ServerMessage: Free Sex                            Free Sex   Free Sex
2010-01-05 14:08:04: ServerMessage: www.StormSex.net/1/free/7            www.StormSex.net/1/free/7         www.StormSex.net/1/free/7
2010-01-05 14:08:04: ServerMessage: Free Sex                           Free Sex    Free Sex
2010-01-05 14:08:04: ServerMessage: www.StormSex.net/1/free/7            www.StormSex.net/1/free/7        www.StormSex.net/1/free/7
2010-01-05 14:08:18: Connected to Kad (ok)
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
2010-01-05 14:23:35: ServerUDP: Got server search reply with additional packet.
Logged

whjiang

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: amuled exit when connection is lost
« Reply #3 on: January 05, 2010, 03:28:15 PM »

NOTE: this log is not the original log. But an one I encountered when I tried to perform a global search later. So, the log info may not be accurate. I will report the accurate log when I encounter the problem again.
Logged

whjiang

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: amuled exit when connection is lost
« Reply #4 on: January 05, 2010, 03:49:44 PM »

Another run of amuled in non-daemon mode, the screen output is:
amuled: OnInit - starting timer
uname: not found
Initialising aMuled 2.2.6 using  v2.8.10
Checking if there is an instance already running...
No other instances are running.
uname: not found
uname: not found
uname: not found
uname: not found
ERROR: WARNING Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.

--------------------------------------------------
Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
--------------------------------------------------

ListenSocket: Ok.
HTTP download thread started
Loading temp files from /opt/disk2/amule/Temp.
Loading PartFile 8 of 8
All PartFiles Loaded.
Adding file /opt/disk2/amule/Temp/005.part.met to shares
Adding file /opt/disk2/amule/Temp/006.part.met to shares
Adding file /opt/disk2/amule/Temp/009.part.met to shares
Adding file /opt/disk2/amule/Temp/010.part.met to shares
Adding file /opt/disk2/amule/Temp/011.part.met to shares
Server hostname notified
Host: amule.sourceforge.net:80
URL: http://amule.sourceforge.net/lastversion
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended
Signal 31


The amuled logfile shows:
2010-01-05 14:38:03: Starting aMuled 2.2.6 using  v2.8.10
2010-01-05 14:38:04: ERROR: WARNING Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
2010-01-05 14:38:04: Creditfile loaded, 2482 clients are known
2010-01-05 14:38:04: Loading IP-filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2010-01-05 14:38:04: Loaded 0 IP-ranges from '/opt/amule/.aMule/ipfilter.dat'. 0 malformed lines were discarded.
2010-01-05 14:38:04: Loaded 0 IP-ranges from '/opt/amule/.aMule/ipfilter_static.dat'. 0 malformed lines were discarded.
2010-01-05 14:38:04: *** TCP socket (ECServer) listening on 0.0.0.0:4712
2010-01-05 14:38:04: Created Server UDP-Socket at port 4665
2010-01-05 14:38:04: Created Client UDP-Socket at port 4672
2010-01-05 14:38:04: Loading server.met file: /opt/amule/.aMule/server.met
2010-01-05 14:38:04: 32 servers in server.met found
2010-01-05 14:38:04: WARNING: /opt/disk2/amule/Temp/001.part might be corrupted (-55)
2010-01-05 14:38:04: Found 8 part files
2010-01-05 14:38:04: Found 6 known shared files
2010-01-05 14:38:04: Connecting
2010-01-05 14:38:04: Deleted stale lock file '/opt/amule/.aMule/muleLock'.
2010-01-05 14:38:04: Connecting to eserver.no1 (no1.eserver.emule.org.cn - 0.0.0.0:8080) using protocol obfuscation.
2010-01-05 14:38:04: Hasher: Starting to create MD4 hash for file: 001.part
2010-01-05 14:38:04: Connected to eserver.no1 (60.190.138.106:8080)
2010-01-05 14:38:04: Kad started.
2010-01-05 14:38:04: Kad stopped.
2010-01-05 14:38:04: Connected to Kad (firewalled)
2010-01-05 14:38:04: Lost connection to eserver.no1 (60.190.138.106:8080)
2010-01-05 14:38:04: Connection lost
2010-01-05 14:38:05: Connecting to eDonkeyServer No1 (77.247.178.244 - 77.247.178.244:4242) using protocol obfuscation.
2010-01-05 14:38:05: Your copy of aMule is up to date.
2010-01-05 14:38:13: New external connection accepted
2010-01-05 14:38:13: Connecting client: amule-remote 0x0001
2010-01-05 14:38:13: Access granted.
2010-01-05 14:38:30: Connection attempt to eserver.no1 (60.190.138.106:8080) timed out.
2010-01-05 14:38:30: Connecting to eDonkeyServer No2 (212.63.206.35 - 212.63.206.35:4242)
2010-01-05 14:38:30: Connection attempt to eDonkeyServer No1 (77.247.178.244:4242) timed out.
2010-01-05 14:38:30: Connecting to www.UseNeXT.to (87.230.83.44 - 87.230.83.44:443) using protocol obfuscation.
2010-01-05 14:38:30: Connection attempt to eDonkeyServer No2 (212.63.206.35:4242) timed out.
2010-01-05 14:38:30: Connecting to www.UseNeXT.to 2 (80.237.156.72 - 80.237.156.72:443) using protocol obfuscation.
2010-01-05 14:38:30: Connection attempt to www.UseNeXT.to (87.230.83.44:4661) timed out.
2010-01-05 14:38:30: Connecting to 『^樂兒^天地』P2P服务器 (210.5.152.71 - 210.5.152.71:4242) using protocol obfuscation.
2010-01-05 14:38:30: Connection attempt to www.UseNeXT.to 2 (80.237.156.72:4661) timed out.
2010-01-05 14:38:30: Connecting to PEERATES.NET (88.191.81.111 - 88.191.81.111:1111) using protocol obfuscation.
2010-01-05 14:38:30: Connection attempt to PEERATES.NET (88.191.81.111:1111) timed out.
2010-01-05 14:38:30: Connecting to eDonkeyServer No2 (77.247.178.245 - 77.247.178.245:443) using protocol obfuscation.
2010-01-05 14:38:31: Connecting to TVU DonkeyServer No1 - Now On New Hardware (89.248.174.84 - 89.248.174.84:6543) using protocol obfuscation.
2010-01-05 14:38:32: Connected to Kad (ok)
2010-01-05 14:38:56: Connection attempt to eDonkeyServer No2 (77.247.178.245:4242) timed out.
2010-01-05 14:38:56: Connecting to eserver 17.15 (93.174.93.215 - 93.174.93.215:4500) using protocol obfuscation.
2010-01-05 14:38:56: Connection attempt to eserver 17.15 (93.174.93.215:4500) timed out.
2010-01-05 14:38:56: Connecting to Master Server 1 (83.233.30.55 - 83.233.30.55:4500) using protocol obfuscation.
2010-01-05 14:38:57: Connected to Master Server 1 (83.233.30.55:4500)
2010-01-05 14:38:57: Connection attempt to TVU DonkeyServer No1 - Now On New Hardware (89.248.174.84:6543) timed out.
2010-01-05 14:38:57: Connecting to Razorback 3.0 (85.17.52.92 - 85.17.52.92:5000)
2010-01-05 14:38:57: Connection attempt to Razorback 3.0 (85.17.52.92:5000) timed out.
2010-01-05 14:38:57: Connecting to Razorback 3.2 (85.17.52.124 - 85.17.52.124:5000)
2010-01-05 14:38:59: Connection established on: Master Server 1
2010-01-05 14:38:59: Connected to Master Server 1 with HighID
2010-01-05 14:38:59: New clientid is 2394116826
2010-01-05 14:38:59: ServerMessage: server version 17.15 (lugdunum)
2010-01-05 14:38:59: ServerMessage: Free Sex=====Free Sex=====Free Sex--=====Free Sex=====Free Sex
2010-01-05 14:38:59: ServerMessage: Free Sex                            Free Sex   Free Sex
2010-01-05 14:38:59: ServerMessage: www.StormSex.net/1/free/7            www.StormSex.net/1/free/7         www.StormSex.net/1/free/7
2010-01-05 14:38:59: ServerMessage: Free Sex                            Free Sex   Free Sex
2010-01-05 14:38:59: ServerMessage: www.StormSex.net/1/free/7            www.StormSex.net/1/free/7         www.StormSex.net/1/free/7
2010-01-05 14:38:59: ServerMessage: Free Sex                           Free Sex    Free Sex
2010-01-05 14:38:59: ServerMessage: www.StormSex.net/1/free/7            www.StormSex.net/1/free/7        www.StormSex.net/1/free/7
2010-01-05 14:40:07: ThreadScheduler: Completed task 'Hashing - /opt/disk2/amule/Temp/001.part', 1 tasks remaining.
2010-01-05 14:40:07: ThreadScheduler: Completed task 'AICH Syncronizing', 0 tasks remaining.
2010-01-05 14:40:07: Finished rehashing 畫質.avi
Logged

whjiang

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: amuled exit when connection is lost
« Reply #5 on: January 05, 2010, 04:10:23 PM »

It seems this amuled exit/crash is not related to ADSL connection since in last crash, my connection keeps. Sorry for the misleading.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amuled exit when connection is lost
« Reply #6 on: January 06, 2010, 12:03:48 AM »

Signal 31

Code: [Select]
$ grep 31 /usr/include/bits/signum.h
#define SIGSYS          31      /* Bad system call.  */
Logged
concordia cum veritate