Hello there. Recently I've started running a TF2 dedicated server out of my own rented box. It's nothing special, but it gets the job done fine when it runs.
The trouble is that I seem to randomly be hitting a Segmentation fault error which will repeat itself over and over on the server restart. I know this problem has actually been pretty common on Linux servers recently, but has mostly been fixed. I seem to be experiencing the problem still though.
Details:
And here is the script I use for starting the server. Note a friend of mine wrote it, but it doesn't seem to matter much. Running the server directly from the shell and not through a script had the exact same results.
If you don't want to bother reading the whole script, the actual command run to start srcds_run is:
Thanks in advance for any advice you can give me. It's becoming very frustrating to see no working solutions for my problem after a lot of searching. Not to mention thinking the server is finally going to run correctly only to have it randomly crash in the middle of the game.
In case you were curious, the log file doesn't say anything interesting. Merely part of the startup text follow by "Segmentation fault" and a restart.
The trouble is that I seem to randomly be hitting a Segmentation fault error which will repeat itself over and over on the server restart. I know this problem has actually been pretty common on Linux servers recently, but has mostly been fixed. I seem to be experiencing the problem still though.
Details:
Quote:OS: Ubuntu 9.04 (Linux Kernel 2.6.28-11-server)
RAM: 512 MB (Not stunning, but seems to work flawlessly anyway.)
CPU: Intel Dual Core 1.6 Ghz
Game: Team Fortress 2 (as mentioned)
Mods: MetaMod: Source, Sourcemod (disabling them makes no difference)
And here is the script I use for starting the server. Note a friend of mine wrote it, but it doesn't seem to matter much. Running the server directly from the shell and not through a script had the exact same results.
Code:
#!/bin/sh
SRVBIN='/home/mjcorm/tfds/tf/orangebox/srcds_run'
PARAMS='-game tf -timeout 30 -autoupdate +debuglog tf2debug.log -NoQueuedPacketThread +map cp_dustbowl +port 27015 +maxplayers 24'
LOGFILE='tf2.log'
starttf2 ()
{
nohup "$SRVBIN" "$PARAMS" >"$LOGFILE" &
echo "Started the Team Fortress 2 server."
}
stoptf2 ()
{
PID=`ps axf | grep srcds_run | grep -v grep | awk '{print $1}'`
PID2=`ps axf | grep srcds_i486 | grep -v grep | awk '{print $1}'`
kill $PID
kill $PID2
echo "Stopped the Team Fortress 2 server."
}
case "$1" in
'start')
starttf2
;;
'stop')
stoptf2
;;
*)
echo "Usage: ./tf2srv [ start | stop ]"
;;
esac
If you don't want to bother reading the whole script, the actual command run to start srcds_run is:
Code:
/home/mjcorm/tfds/tf/orangebox/srcds_run -game tf -timeout 30 -autoupdate +debuglog tf2debug.log -NoQueuedPacketThread +map cp_dustbowl +port 27015 +maxplayers 24
Thanks in advance for any advice you can give me. It's becoming very frustrating to see no working solutions for my problem after a lot of searching. Not to mention thinking the server is finally going to run correctly only to have it randomly crash in the middle of the game.
In case you were curious, the log file doesn't say anything interesting. Merely part of the startup text follow by "Segmentation fault" and a restart.