Jump to content
Sign in to follow this  
ben_sherman

Linux Server crashes on mission launch.

Recommended Posts

Hi there,

So I've been struggling with my WIP mission for so long now to get it to work on my VPS host as it performs better on a dedicated server then if I host it and test it out with a few friends, anyhow a while ago I ran some test missions on the VPS just to see how it performs there and I can say it works really really great, so here comes the part where it doesn't work at all.

Here are my list of what I've done so far.

  1. Checked all permissions so their 755 or 777.
  2. Ran the install script to set all files and folders in lowercased letters.
  3. Re-write the launch script as it uses mods.
  4. Checked server logs.

The problem is that it's still now launching the server correct, as when I click continue after I choosed my character I supose to cache the mission, it states "Retrieving Mission File: 1/38560" just en example and then it stops, if you wait long enough you loose connection and go in again and still same problem. After vewing the log files it turns out that the server is restarting itself. I'm pretty much stuck now and I've been going over server guides, other peoples topics simular to mine, I've checked other websites and here for the past 2 hours and still nothing. So now I'm asking for all help I can get.

I'll be sending all logs, launch script, config and so on, maybe you have a clue what it can be or why it's not working. Thanks to everyone who is looking at this thread and take the time to help me!


log.txt Sorry was to big so I couldn't post it without uploading it some where. (The text that you have entered is too long (914151 characters). Please shorten it to 50000 characters long.)

server_console.log

08.11.2013, 15:48:23 BattlEye Server: Initialized (v1.177)
08.11.2013, 15:48:23 Host identity created.
08.11.2013, 15:48:32 Dave uses modified data file
08.11.2013, 15:48:32 BattlEye Server: Player #0 Dave (***************) connected
08.11.2013, 15:48:32 Player Dave connecting.
08.11.2013, 15:48:32 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:32 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:32 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:33 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:33 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:33 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:34 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:34 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:34 Player Dave connected (id=***********).
08.11.2013, 15:48:34 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:34 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:35 BattlEye Server: Player #0 Dave - GUID: ****************************** (unverified)
08.11.2013, 15:48:35 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:35 BattlEye Server: Verified GUID (******************************) of player #0 Dave
08.11.2013, 15:48:35 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:35 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:35 Ben Sherman uses modified data file
08.11.2013, 15:48:35 BattlEye Server: Player #1 Ben Sherman (***************) connected
08.11.2013, 15:48:35 Player Ben Sherman connecting.
08.11.2013, 15:48:35 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:36 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:36 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:36 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:37 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:37 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:37 Player Ben Sherman connected (id=************).
08.11.2013, 15:48:37 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:37 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:38 BattlEye Server: Player #1 Ben Sherman - GUID: ****************************** (unverified)
08.11.2013, 15:48:38 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:38 BattlEye Server: Verified GUID (******************************) of player #1 Ben Sherman
08.11.2013, 15:48:38 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:38 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:38 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:39 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:39 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:39 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:40 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:40 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:40 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:40 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:41 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:41 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:41 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:41 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:42 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:42 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:42 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:43 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:43 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:43 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:43 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:44 Mission Everest RPG v1.1.3 read from bank.
08.11.2013, 15:48:44 Mission Everest RPG v1.1.3 read from bank.

server.cfg

// GLOBAL SETTINGS
hostname = "Ben Sherman";			// The name of the server that shall be displayed in the public server list
password = "";						// Password for joining, eg connecting to the server
passwordAdmin = "Ben Sherman";					// Password to become server admin. When you're in Arma MP and connected to the server, type '#login xyz'
//reportingIP = "armedass.master.gamespy.com";		// For ArmA1 publicly list your server on GameSpy. Leave empty for private servers
//reportingIP = "arma2pc.master.gamespy.com";		// For ArmA2 publicly list your server on GameSpy. Leave empty for private servers
reportingIP = "arma2oapc.master.gamespy.com";		// For Arma2: Operation Arrowhead
logFile = "server_console.log";				// Tells ArmA-server where the logfile should go and what it should be called


// WELCOME MESSAGE ("message of the day")
// It can be several lines, separated by comma
// Empty messages "" will not be displayed at all but are only for increasing the interval
motd[] = {
" "
};
motdInterval = 5;					// Time interval (in seconds) between each message


// JOINING RULES
checkfiles[] = {};					// Outdated.
maxPlayers = 64;					// Maximum amount of players. Civilians and watchers, beholder, bystanders and so on also count as player.
kickDuplicate = 1;					// Each ArmA version has its own ID. If kickDuplicate is set to 1, a player will be kicked when he joins a server where another player with the same ID is playing.
verifySignatures = 0;					// Verifies .pbos against .bisign files. Valid values 0 (disabled), 1 (prefer v2 sigs but accept v1 too) and 2 (only v2 sigs are allowed). 
equalModRequired = 0;					// Outdated. If set to 1, player has to use exactly the same -mod= startup parameter as the server.
//requiredBuild = 12345					// Require clients joining to have at least build 12345 of game, preventing obsolete clients to connect


// VOTING
voteMissionPlayers = 1;					// Tells the server how many people must connect so that it displays the mission selection screen.
voteThreshold = 0.33;					// 33% or more players need to vote for something, for example an admin or a new map, to become effective


// INGAME SETTINGS
disableVoN = 0;						// If set to 1, Voice over Net will not be available
vonCodecQuality = 21;					// since 1.62.95417 supports range 1-20 //since 1.63.x will supports range 1-30 //8kHz is 0-10, 16kHz is 11-20, 32kHz is 21-30
persistent = 1;						// If 1, missions still run on even after the last player disconnected.
timeStampFormat = "short";				// Set the timestamp format used on each report line in server-side RPT file. Possible values are "none" (default),"short","full".
BattlEye = 1;                                           // Server to use BattlEye system


// SCRIPTING ISSUES
onUserConnected = "";					//
onUserDisconnected = "";				//
doubleIdDetected = "";					//
//regularCheck = "{}";                  //  Server checks files from time to time by hashing them and comparing the hash to the hash values of the clients. Causes heavy I/O, uncomment to disable feature - READ WARNING ABOVE - makes cheating possible!


// SIGNATURE VERIFICATION
onUnsignedData = "kick (_this select 0)";		// unsigned data detected
onHackedData = "ban (_this select 0)";			// tampering of the signature detected
onDifferentData = "";					// data with a valid signature, but different version than the one present on server detected


// MISSIONS CYCLE (see below)
class Missions {
class everest_rpg
{
	template="everest-rpg-v1.emita";// omit the .pbo suffix
	difficulty="regular";// difficulty: recruit, regular, veteran or mercenary (see CfgDifficulties in the main game config)
};
};

linux launch file "arma2oaserver"

#!/bin/bash
#
# armaserver: ArmA 2 Linux Dedicated Server Control Script
#  (c) 2010 BIStudio
#  ArmA 2 binary version must be 1.04 or later
#

#=======================================================================
#========               CONFIGURATION PARAMETERS                ========
#======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ========
#=======================================================================
ARMA_DIR=/home/arma2oa/bin
CONFIG=server.cfg
PORT=2302
PIDFILE=${ARMA_DIR}/${PORT}.pid
RUNFILE=${ARMA_DIR}/${PORT}.run
LOGFILE=${ARMA_DIR}/log.${PORT}.txt
SERVER=${ARMA_DIR}/server
OTHERPARAMS="-exThreads=1 -cpucount=2"
EXP="arma2;expansion;ca;"
MODS="@cba;@cba_a2;@cba_oa;@erp"
#=======================================================================
ulimit -c 1000000

case "$1" in


   start)
if [ -f ${RUNFILE} ]; then
    $0 stop
fi
echo "Starting ArmA 2 server..."
# file to mark we want server running...	
echo "go" >${RUNFILE}
# launch the background watchdog process to run the server
nohup </dev/null >/dev/null $0 watchdog &
;;

   stop)
echo "Stopping ArmA 2 server..."
if [ -f ${RUNFILE} ]; then
# ask watcher process to exit by deleting its runfile...
    rm -f ${RUNFILE}
fi
# and terminate ArmA 2 server process
if [ -f ${PIDFILE} ]; then
    kill -TERM $(< ${PIDFILE})
    if [ -f ${PIDFILE} ]; then
	rm -f ${PIDFILE}
    fi
fi
;;


   status)
if [ -f ${RUNFILE} ]; then
    echo "Server should be running..."
else
    echo "Server should not be running..."
fi
if [ -f ${PIDFILE} ]; then
    PID=$(< ${PIDFILE})
    echo "PID file exists (PID=${PID})..."
    if [ -f /proc/${PID}/cmdline ]; then
	echo "Server process seems to be running..."
    fi
fi
;;


   check)
echo -n "ArmA 2 directory: ${ARMA_DIR} "
if [ -d ${ARMA_DIR} ]; then
    echo "OK"
else
    echo "MISSING!"
fi

echo -n "Server executable: ${SERVER} "
if [ -x ${SERVER} ]; then
    echo "OK"
else
    echo "ERROR!"
fi

echo "Port number: ${PORT}"

echo -n "Config file: ${CONFIG} "
if [ -f ${CONFIG} ]; then
    echo "OK"
else
    echo "MISSING!"
fi

echo "PID file: ${PIDFILE}"
echo "RUN file: ${RUNFILE}"

;;

   restart)
$0 stop
$0 start
       ;;

   watchdog)
# this is a background watchdog process. Do not start directly
while [ -f ${RUNFILE} ]; do
# launch the server...
    cd ${ARMA_DIR}
    echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..."
	${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} "-mod=${EXP}${MODS}" ${OTHERPARAMS}
    if [ -f ${RUNFILE} ]; then
	echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..."
	sleep 5s
    else
	echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating"
    fi
done    
;;
   *)
echo "$0 (start|stop|restart|status|check)"
;;
esac

Share this post


Link to post
Share on other sites

Maybe to obvious but, what's the mission name? Linux server don't allow UppErCase Letters or s p ac e in file name...

Share this post


Link to post
Share on other sites
Maybe to obvious but, what's the mission name? Linux server don't allow UppErCase Letters or s p ac e in file name...

Nah, it shouldn't effect in game, the "Mission Everest RPG v1.1.3 read from bank." is the mission title not the file name itself so that shouldn't effect it still haven't figured this out yet but thanks though!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×