Jump to content
Sign in to follow this  
brightness

Linux server issues

Recommended Posts

Alright install and everything works fine till I run ./server and in turn it hands me over a error,

Item str_disp_server_control listed twice
11:24:57 Dedicated host created.
Error context ¥Ü·(¥Ü·h·Zh·Z
File , line 0: '.': '(' encountered instead of '='
Critical:Destroying running thread!

Ideas to fix?

Share this post


Link to post
Share on other sites

remove all custom missions and try again. it seems there is a corrupted/buggy among em

Share this post


Link to post
Share on other sites
Alright install and everything works fine till I run ./server and in turn it hands me over a error,

Item str_disp_server_control listed twice
11:24:57 Dedicated host created.
Error context ¥Ü·(¥Ü·h·Zh·Z
File , line 0: '.': '(' encountered instead of '='
Critical:Destroying running thread!

Ideas to fix?

Yes. Don't start the server by using "./server". Instead, edit the arma2oaserver script as instructed in step 7 of the readme.txt and then launch the server via

./arma2oaserver start

Share this post


Link to post
Share on other sites

Fixed, Just had to launch in ./arma2oaserver start now the issues come .. If I launch the server in arma2oaserver then my -mod thingy won't work but if I launch it in ./server it launches the mod I point in -mod.

I am using the -mod option like this,

${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} -mod=${MOD} -cfg=arma2oa.cfg

Ideas??

Edited by brightness

Share this post


Link to post
Share on other sites

how does your MOD parameter look like?

Share this post


Link to post
Share on other sites

MOD=@ace\;@ace\;@acex\;@acex_usnavy\;@ace_ru\;@ace_sm\;@cba\;@acre\;@jayarma2lib\;

Share this post


Link to post
Share on other sites

remove the last \;

the semicolon is a separator here

Share this post


Link to post
Share on other sites

Script should look like this:

#!/bin/bash

#

# armaserver: ArmA 2 Linux Dedicated Server Control Script

# © 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=.

CONFIG=arma.cfg

PORT=2302

PIDFILE=${ARMA_DIR}/${PORT}.pid

RUNFILE=${ARMA_DIR}/${PORT}.run

LOGFILE=${ARMA_DIR}/log.${PORT}.txt

SERVER=${ARMA_DIR}/server

OTHERPARAMS=-cpucount=2

You should be configuring this script there, add the following:

#!/bin/bash

#

# armaserver: ArmA 2 Linux Dedicated Server Control Script

# © 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=.

CONFIG=arma.cfg

PORT=2302

PIDFILE=${ARMA_DIR}/${PORT}.pid

RUNFILE=${ARMA_DIR}/${PORT}.run

LOGFILE=${ARMA_DIR}/log.${PORT}.txt

SERVER=${ARMA_DIR}/server

OTHERPARAMS=-cpucount=2

OTHERPARAMS=-mod=@ace\;@ace\;@acex\;@acex_usnavy\;@ace_ru\;@ace _sm\;@cba\;@acre\;@jayarma2lib

...Syn...

Edited by VisceralSyn
typos, grammatical errors and that kind of ilk...

Share this post


Link to post
Share on other sites
#!/bin/bash

#

# armaserver: ArmA 2 Linux Dedicated Server Control Script

# © 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/alwandy 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=-cpucount=1

OTHERPARAMS=-mod="@ace;@acex;@acex_ru;@acex_sm;@acex_usnavy;@cba;@acre;@jayarma2lib"

#=======================================================================

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} ${OTHERPARAMS} -cfg=arma2oa.cfg

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

Thats what I am using now(Used your example) and that didn't work either.

Share this post


Link to post
Share on other sites

OTHERPARAMS=-mod="@ace;@acex;@acex_ru;@acex_sm;@acex_usnavy;@cb a;@acre;@jayarma2lib"

Doesn't not look like:

OTHERPARAMS=-mod=@ace\;@ace\;@acex\;@acex_usnavy\;@ace_ru\;@ace_sm\;@cba\;@acre\;@jayarma2lib

also, none of those folders filenames can have spaces. Linux isn't windows, if you do do not follow syntax. Nothing works.

Edited by VisceralSyn
Dang gumbed typos....

Share this post


Link to post
Share on other sites

I meant that it doesn't have any spaces in nano ^^ Maybe because I copied the thing from windows.

Anyways, I re did it and copied your way but still no succees launching server in ./arma2oaserver with mods .. It launches without but with ./server -mod=@ace\;@ace\;@acex\;@acex_usnavy\;@ace_ru\;@ace _sm\;@cba\;@acre\;@jayarma2lib

It launches the mods.

Share this post


Link to post
Share on other sites

if ./server works as you intend, then run with it. The script however provides some redundancy.

Edited by VisceralSyn

Share this post


Link to post
Share on other sites

Thats the thing, Why can't I get it running with ./arma2oaserver .. Any other ways??

Share this post


Link to post
Share on other sites

I'm not at home to check my script, the wiki has the correct syntax for it. I can't access the wiki from work to link you to it as well.

...Syn...

Share this post


Link to post
Share on other sites

OTHERPARAMS=-mod="@ace;@acex;@acex_ru;@acex_sm;@acex_usnavy;@cb a;@acre;@jayarma2lib"

Share this post


Link to post
Share on other sites

The quotes do not belong there either, i do believe the space in that particular one was due to formatting.

...Syn...

Share this post


Link to post
Share on other sites

I never uploaded the arma2oaserver from windows, I totally edited all my files through nano

Share this post


Link to post
Share on other sites

VisceralSyns variant does work:

OTHERPARAMS=-mod=@cba\;@acre\;@ace\;@acex\;@acex_ru\;@acex_usnavy\;@acex_sm

Here's a variant that also works (note the single qoute characters which alleviate the need to escape the semicolons)

OTHERPARAMS='-mod=@cba;@acre;@ace;@acex;@acex_ru;@acex_usnavy;@acex_sm'

...and a variant with more than one extra launch parameter:

OTHERPARAMS='-cpucount=2 -mod=@cba;@acre;@ace;@acex;@acex_ru;@acex_usnavy;@acex_sm'

I have verified that all three variants work.

NOTE: You don't need to load @jayarma2lib on a dedicated server - see the instructions for ACRE.

If you still can't make it work, there's a chance that the arma2oaserver script has been "infected" with DOS-style line endings (CRLF), which usually results in very strange behaviours.

dos2unix arma2oaserver

(In some distributions, that tool is called "fromdos")

Edited by Killswitch

Share this post


Link to post
Share on other sites

Still no freaking success, Guys I KNOW what I am doing. arma2oaserver just don't wanna start the freaking mods somehow and just starts up without EM

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  

×