ragnazorg

My Server Crashed Help! (linux guide)

Recommended Posts

So basically for years of being someone who uses eathena and 3ceam just like you guys, I noticed a lot of people saying

HELP!! My server crashed blabla this blabla that.

Now how can we help you if your server crashed if you're only telling us a few words or lines without the crash dumps.

For Linux Servers:

I bet most of you doesn't have GDB installed.

If you do not have ROOT access to your server, you can try logging on via SSH and type

sudo apt-get install gdb
sudo aptitude install gdb

Now some of you might say, command not found etc etc.

If this happens and you do not have ROOT access since you're using a vps you can always ask your Host to install GDB for you.

Now for Servers who have root access you can install gdb by accessing your root and type

apt-get install gdb

Now this is sometimes tricky..

My server didn't save the crash dumps from my last server crash!!

to check if its enabled type in

ulimit -c

If its set to 0 then it means it is disabled and it will not save your crash dumps. Now what you have to do is type in

ulimit -c 9999999 (or any big number)

then to check if its now enabled type in

ulimit -c

again.

It will give you its now Unlimited.

Some problems might arise especially if you're in a VPS and you may have to ask your Hosting Provider to set this up for you since most of their system got it disabled. Meaning, no matter how you set it to unlimited it will still return back to 0.

Once again your server crashed.

When you check the directory of your SVN you'll see a file named core, or xxx-server_sql.core, or xxx-server.core.

Normally your server wont crash if its just login/char server. So we will assume its the map server or just to check if its really the map server

Login to your SSH and type in

top

to exit this command type q

You'll see the processes your computer/server is running. From here you can verify which server crashed.

Now going back since you have the core file. For example the core file is in trunk/ and its file name it map-server_sql.core all you have to do is

cd trunk

gdb map-server map-server_sql.core

then type

bt full

It will show you the crash dumps and you can paste it on pastebin or copy the files here so some developer can take a look onto it.

Cheers.

  • Upvote 2

Share this post


Link to post
Share on other sites

After the fall of the server still does not appear report file! how to be?

Аnd saves the file to the dump?

Edited by zdox21

Share this post


Link to post
Share on other sites

I have GDB insalled but there isn't any core dump file in trunk. Should I make it or is that system generated. I feel the guide is lacking in details. Kindly expound thank you.

 

I am having random map-server session time-outs and there are absolutely no error messages. Without help from a log,  I cannot figure out why there would be issues.

Edited by pandaplaygames

Share this post


Link to post
Share on other sites

Hello, i've my map server is crashing randomly. So, i've tryed to use your commands, but when i put " gdb map-server map-server_sql.core " it shows this in server:

 

GNU gdb (GDB) 7.4.1-debian
Copyright © 2012 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /root/Rathena/map-server...(no debugging symbols found)...done.
/root/Rathena/map-server_sql.core: Arquivo ou diretório não encontrado.
(gdb) ^CQuit
(gdb) bt full
No stack.
(gdb)

Share this post


Link to post
Share on other sites

 

Hello, i've my map server is crashing randomly. So, i've tryed to use your commands, but when i put " gdb map-server map-server_sql.core " it shows this in server:

 

GNU gdb (GDB) 7.4.1-debian
Copyright © 2012 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /root/Rathena/map-server...(no debugging symbols found)...done.
/root/Rathena/map-server_sql.core: Arquivo ou diretório não encontrado.
(gdb) ^CQuit
(gdb) bt full
No stack.
(gdb)

 

 

UP for this issue.

Share this post


Link to post
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
Reply to this topic...

×   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.

Loading...