Posts: 323
Threads: 30
Joined: Sep 2012
Reputation:
0
Hey there
I'm currently having some problems running my SA-MP server on my dedicated server. Since yesterday my server closes itself every 12-18 hours without any reasons (no errors in the server log). The load isn't too high since it most likely happens at night when the server is (almost) empty.
I tried to load the server on a few different ways such as screen, nohup and screen + nohup but that did not seem to work out.
Am I doing anything wrong? How could I recreate this problem?
Thanks!
Posts: 579
Threads: 5
Joined: Oct 2015
Do you have crashdetect plugin loaded? Because even if the server crashed you wouldn't find anything in server log without crashdetect.
Posts: 323
Threads: 30
Joined: Sep 2012
Reputation:
0
This script did not use to crash, there where no significant changes. I did not have this plugin loaded, I don't think its output will show something useful?
Posts: 579
Threads: 18
Joined: Apr 2017
Reputation:
0
Compile your script with crashdetect with debug flag '-d3'.
****** the flag to know more about it.
Posts: 579
Threads: 5
Joined: Oct 2015
Quote:
Originally Posted by -Shifty-
This script did not use to crash, there where no significant changes. I did not have this plugin loaded, I don't think its output will show something useful?
|
It does show useful output (at least for developers?), you can easily track whatever causing the crash from the output of it, if you can't, you can just post the output here and anyone will tell you what's causing it.
Posts: 6,242
Threads: 8
Joined: Jun 2008
The flags are compiler options, in pawno under settings.
They're nothing to do with the script. CrashDetect will run, without any modification to the script, but when the server does crash, it will return an output to the server.log, that will be meaningless if you don't use -d3.
Posts: 323
Threads: 30
Joined: Sep 2012
Reputation:
0
I will set it up on my server next time it occurs, I will leave the output here.
Posts: 579
Threads: 18
Joined: Apr 2017
Reputation:
0
Get crashdetect.inc and paste it into includes.
Include crashdetect in your script near includes.
Compile your script.
Paste crashdetect.so & .DLL in plugins folder.(given that we don't know your SO)
Open server.cfg and write crashdetect in plugins line.
Delete server_log.txt (optional)
Start your server.
Whenever it will crash in server_log.text you'll have something with AMX backtrace....
Paste that code here.
Posts: 18
Threads: 1
Joined: Apr 2015
I would always honestly use Windows for any type of SAMP server, It's more customizable that way.
Posts: 205
Threads: 31
Joined: Aug 2015
Reputation:
0
Update all your plugins, compile the script, if it compiles, run the server.
Posts: 390
Threads: 65
Joined: Dec 2012
Reputation:
0
Don't run xSF gamemode if you can't script. lmao