Jump to content
  • 0

Random Map Server Crash


Vengeance

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

My map server just crashed dont know the issue.. I have copied the map-server.log... my version r17353 and on CentOS 2GB ram..

 

[Status]: Memory manager initialised: log/map-server_sql.leaks
 
 
rAthena Development Team presents
___ __ __
_____/ | / /_/ /_ ___ ____ ____ _
/ ___/ /| |/ __/ __ \/ _ \/ __ \/ __ `/
/ / / ___ / /_/ / / / __/ / / / /_/ /
/_/ /_/ |_\__/_/ /_/\___/_/ /_/\__,_/
 
http://rathena.org/board/
 
[Info]: SVN Revision: '12'.
[Warning]: You are running rAthena with root privileges, it is not necessary.
[Info]: Server supports up to '1024' concurrent connections.
[Info]: Char Server IP Address : '127.0.0.1' -> '127.0.0.1'.
[Info]: Map Server IP Address : '127.0.0.1' -> '127.0.0.1'.
[Status]: Using SQL dbs: yes
 
[Debug]: mapindex_name2id: Map "prt_fild.0" not found in index list!
[Warning]: npc_scriptcont: failed npc_checknear test.
[Warning]: npc_scriptcont: failed npc_checknear test.
[Warning]: npc_scriptcont: failed npc_checknear test.
[Status]: Loading NPC file: npc/other/Global_Functions.txt
[Status]: Loading NPC file: npc/other/CashShop_Functions.txt
[Status]: Loading NPC file: npc/airports/airships.txt
[Status]: Loading NPC file: npc/airports/einbroch.txt
[Status]: Loading NPC file: npc/airports/hugel.txt
[Status]: Loading NPC file: npc/airports/izlude.txt
[Status]: Loading NPC file: npc/airports/lighthalzen.txt
[Info]: Done loading '9701' NPCs:
-'2592' Warps
-'167' Shops
-'6859' Scripts
-'2970' Spawn sets
-'33813' Mobs Cached
-'0' Mobs Not Cached
[Status]: Event 'OnInit' executed with '662' NPCs.
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Event 'OnInterIfInitOnce' executed with '0' NPCs.
[Info]: Closed connection from '174.122.46.31'.
[Info]: Closed connection from '174.122.46.31'.
[Info]: Character 'Jaaz' logged off.
[Info]: 'Jaaz' logged in. (AID/CID: '2000001/150022', Packet Ver: '26', IP: '120.60.38.251', Group '99').
[Status]: Loading NPC file: npc/other/Global_Functions.txt
[Status]: Loading NPC file: npc/other/CashShop_Functions.txt
[Status]: Loading NPC file: npc/airports/airships.txt
[Status]: Loading NPC file: npc/airports/einbroch.txt
[Status]: Loading NPC file: npc/airports/hugel.txt
[Status]: Loading NPC file: npc/airports/izlude.txt
[Status]: Loading NPC file: npc/airports/lighthalzen.txt
[Info]: Done loading '9636' NPCs:
-'2592' Warps
-'167' Shops
-'6876' Scripts
-'2970' Spawn sets
-'33813' Mobs Cached
-'0' Mobs Not Cached
[Status]: Event 'OnInit' executed with '662' NPCs.
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Event 'OnInterIfInitOnce' executed with '0' NPCs.
[Debug]: mapindex_name2id: Map "gef_fild07 " not found in index list!
[Info]: Character 'Vene' logged off.
[Info]: Character 'Kaz' logged off.
[Error]: buildin_rid2name: invalid RID
[Error]: buildin_rid2name: invalid RID
[Error]: script_rid2sd: fatal error ! player not attached!
[Debug]: Function: getitem (2 parameters):
[Debug]: Data: number value=20057
[Debug]: Data: number value=1
[Debug]: Source (NPC): runordie (invisible/not on a map)
[Info]: 'Vene' logged in. (AID/CID: '2000000/150000', Packet Ver: '26', IP: '5.151.77.150', Group '99').
[Status]: Done reading '6299' entries in 'item_db'.
[Status]: Done reading '23' entries in 'item_db2'.
[Status]: Done reading '155' entries in 'item_combo_db'.
[Status]: Done reading 'item_group_db.txt'.
[Status]: Done reading '1' entries in 'db/item_avail.txt'.
[Status]: Done reading '19' entries in 'db/pre-re/item_noequip.txt'.
[Status]: Done reading '1580' entries in 'db/pre-re/item_trade.txt'.
[Status]: Done reading '10' entries in 'db/item_delay.txt'.
[Status]: Done reading '10' entries in 'db/item_stack.txt'.
[Status]: Done reading '1057' entries in 'db/pre-re/item_buyingstore.txt'.
[Status]: Done reading '124' entries in 'db/item_nouse.txt'.
[Status]: Done reading '0' entries in 'item_cash_db'.
[Status]: Done reading '0' entries in 'item_cash_db2'.
[Info]: Character 'Vene' logged off.
[Info]: 'Vene' logged in. (AID/CID: '2000000/150000', Packet Ver: '26', IP: '5.151.77.150', Group '99').
[Status]: Done reading '6299' entries in 'item_db'.
[Status]: Done reading '23' entries in 'item_db2'.
[Status]: Done reading '155' entries in 'item_combo_db'.
[Status]: Done reading 'item_group_db.txt'.
[Status]: Done reading '1' entries in 'db/item_avail.txt'.
[Status]: Done reading '19' entries in 'db/pre-re/item_noequip.txt'.
[Status]: Done reading '1577' entries in 'db/pre-re/item_trade.txt'.
[Status]: Done reading '10' entries in 'db/item_delay.txt'.
[Status]: Done reading '10' entries in 'db/item_stack.txt'.
[Status]: Done reading '1057' entries in 'db/pre-re/item_buyingstore.txt'.
[Status]: Done reading '124' entries in 'db/item_nouse.txt'.
[Status]: Done reading '0' entries in 'item_cash_db'.
[Status]: Done reading '0' entries in 'item_cash_db2'.
[Status]: Loading NPC file: npc/other/Global_Functions.txt
[Status]: Loading NPC file: npc/other/CashShop_Functions.txt
[Status]: Loading NPC file: npc/airports/airships.txt
[Status]: Loading NPC file: npc/airports/einbroch.txt
[Status]: Loading NPC file: npc/airports/hugel.txt
[Status]: Loading NPC file: npc/airports/izlude.txt
[Status]: Loading NPC file: npc/airports/lighthalzen.txt
[Status]: Loading NPC file: npc/airports/rachel.txt
[Info]: Done loading '9636' NPCs:
-'2592' Warps
-'167' Shops
-'6876' Scripts
-'2970' Spawn sets
-'33813' Mobs Cached
-'0' Mobs Not Cached
[Status]: Event 'OnInit' executed with '662' NPCs.
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Event 'OnInterIfInitOnce' executed with '0' NPCs.
[Info]: Character 'Vene' logged off.
[Info]: Closed connection from '174.122.46.31'.
[Info]: Character 'Jaaz' logged off.
[Info]: 'Jaaz' logged in. (AID/CID: '2000001/150022', Packet Ver: '26', IP: '120.60.38.251', Group '99').
[Info]: Character 'Jaaz' logged off.
[Info]: Closed connection from '174.122.46.31'.
[Info]: Closed connection from '174.122.46.31'.
[Info]: Closed connection from '174.122.46.31'.
[Info]: Closed connection from '174.122.46.31'.
[Info]: Closed connection from '174.122.46.31'.
[Info]: Closed connection from '174.122.46.31'.
[Info]: Closed connection from '174.122.46.31'.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Info]: Closed connection from '174.122.46.31'.
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Info]: Closed connection from '174.122.46.31'.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Info]: Pinging SQL server to keep connection alive...
[Info]: Pinging SQL server to keep connection alive...
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 127.0.0.1:6121
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Fatal Error]: Memory manager::block_alloc failed.

Edited by Vengeance
Link to comment
Share on other sites

19 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  218
  • Reputation:   32
  • Joined:  05/29/12
  • Last Seen:  

Mhmm i think its a RAM issue.. are you sure thats you have 2gb ram?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

yes im sure its a 2GB ram... well the server is all fine in the start after 2-3 hours this problem is caused...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Use GDB.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

Ok I have enabled and installed the GDB let me see what it says when the error occurs...



my map-server_sql will suddenly spike to 99% ram and after some time it shuts down... the error was this only.. I am able to see currently the Ram used is 99% and the map server is still not crashed

 

error.png



I have installed GDB according to what it says in these 2 topics http://rathena.org/board/topic/53447-how-to-enable-crashcore-dumps-in-your-server-linux/ and http://rathena.org/board/topic/63493-how-to-install-gdb-in-centos/ but when i tried this after the map server crash

 

gdb map-server_sql map-server_sql.core

 

it showed this error 

 

[root@server trunk]# gdb map-server_sql map-server_sql.core
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright © 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/trunk/map-server_sql...done.
/root/trunk/map-server_sql.core: No such file or directory.
(gdb)


Any help on this..??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  192
  • Reputation:   9
  • Joined:  05/08/13
  • Last Seen:  

I'm also having a problem after typing this

gdb map-server_sql map-server_sql.core

 

doesn't seem to show anything concerning the errors.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  161
  • Reputation:   5
  • Joined:  02/07/13
  • Last Seen:  

This seems similar to my issue:

http://rathena.org/board/topic/83674-session-8-timed-out-char-server-lost/

 

I posted my solution on that thread, so far I'm at 18 hours without any crashes or issues.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  05/05/13
  • Last Seen:  

same problem

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

I have enabled the stat sending option for rathena to receive reports.. lets see if any help..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  161
  • Reputation:   5
  • Joined:  02/07/13
  • Last Seen:  

I just disabled it for my server (about 4 hours ago).

I'll post back if we manage to stay stable for more than 24 hours. /whisp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

looks like no one have any idea of how to solve this issue...??!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  218
  • Reputation:   32
  • Joined:  05/29/12
  • Last Seen:  

still the same problem?

Thought it was solved ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

No nowadays server goes down like after 1-1.5 days.. !!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

Same problem, this happens after I update to the latest svn.

Anyone solved the issue? Or is there any automatic re-open of map server to be an alternative solution to the problem?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

I just switched back to an older version.. There is no error also to give to the devs instead I thought of going back to the old version for now..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

What version are you using now?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi Vengeance,

 

You need to run the map-server_sql under GDB; it seems that your VPS is not generating the .core file after the crash. 

 

Within the SSH/terminal, you type the following commands...
 
cd /location/to/trunk
gdb ./map-server_sql
run
 
Then the process of the map-server_sql will start running. After it receives the crash signal, you would need to type;
 
bt full
 
Finally, you get the debug report that you need; use that report to submit a bug report.
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

Well Asura I used your method but after the crash when I login into that screen it wont be in gdb anymore.. it will be out of gdb promt.. looks like some wierd error of VPS as i shifted to eathena and still have a similiar issue.. in eathena i keep getting - Session #6 timed out..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi Vengeance,

Ah, so it looks to be a memory leak with no crash. Well, I'm no good with this; it's obviously something the developers recently added which is causing this to happen... Probably have to check the change logs to see :(.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

Hi Vengeance,

Ah, so it looks to be a memory leak with no crash. Well, I'm no good with this; it's obviously something the developers recently added which is causing this to happen... Probably have to check the change logs to see :(.

Is there any possibility that webhosting/vps/flux would also be a reason to cause this.. ?? As im facing almost the same issue on eathena and rathena both...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...