Jump to content

Psycho_Dad

Member
  • Content Count

    7
  • Joined

  • Last visited

  • Medals

Posts posted by Psycho_Dad


  1. Do you have any ideas why am I getting this ?

    It doesn't recognize the config file but the command check does.

    ArmA 2 directory: /home/arma2co OK
    Server executable: /home/arma2co/server OK
    Port number: 2302
    Config file: /home/arma2co/server.cfg OK
    PID file: /home/arma2co/2302.pid
    RUN file: /home/arma2co/2302.run
    

    WATCHDOG (12701): [mardi 7 août 2012, 21:57:16 (UTC+0200)] Starting server (port 2302)...
    21:57:31 Dedicated host created.
    Include file home/arma2co/server.cfg not found.
    Cannot include file /home/arma2co/server.cfg
    Warning Message: Preprocessor failed on file /home/arma2co/server.cfg - error 1.
    String id 767 is not registered
    Cannot include file /home/arma2co/server.cfg
    Warning Message: Preprocessor failed on file /home/arma2co/server.cfg - error 1.
    String id 1608 is not registered
    Preprocessor failed on file /home/arma2co/server.cfg - error 1.
    21:57:33 
    String id 757 is not registered

    The script checks only the existence of server.cfg, not the content (test -f).

    Config file: /home/arma2co/server.cfg OK

    seems to be wrong!

    use:

    CONFIG=server.cfg in arma2oaserver..


  2. New error ;p

    root@host703 /home/arma2arrowhead # ./server

    ./server: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./server)

    root@host703 /home/arma2arrowhead # export LD_LIBRARY_PATH="/home/arma2arrowhead/lib32:${LD_LIBRARY_PATH}"

    root@host703 /home/arma2arrowhead # ./server

    ./server: symbol lookup error: /home/arma2arrowhead/lib32/libstdc++.so.6: undefined symbol: _ZNSt8messagesIcE2idE, version GLIBCXX_3.4

    time to upgrade your distro to sqeeze or wheezy.. sry :confused:

    and use "adduser" to create gameserver-user...


  3. /home/arma2arrowhead/lib32/libstdc++.so.6: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

    fa0738629a7cf91dde2c8137af37a351 libstdc++.so.6

    im working only on root.

    This is my conf : ARMA_DIR=/home/arma2arrowhead

    and yes my system is up date debian 5.0 lenny

    try somthing like this:

    [root@gamesrv:~] $ cd /home/arma/arma2arrowhead/
    [root@gamesrv:/home/arma/arma2arrowhead] $ ./server
    ./server: /usr/lib32/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./server)
    [root@gamesrv:/home/arma/arma2arrowhead] $
    [root@gamesrv:/home/arma/arma2arrowhead] $ export LD_LIBRARY_PATH="/home/arma/arma2arrowhead/lib32:${LD_LIBRARY_PATH}"
    [root@gamesrv:/home/arma/arma2arrowhead] $ ./server
    Cannot register unknown string STR_FXAA
    Cannot register unknown string STR_SHARP
    Cannot register unknown string STR_SMAA
    Cannot register unknown string STR_ATOC_GRASS
    Cannot register unknown string STR_ATOC_TREEOA
    Cannot register unknown string STR_ATOC_TREEOA_GRASS
    Cannot register unknown string STR_ATOC_TREEA2
    Cannot register unknown string STR_ATOC_TREEA2_GRASS
    Cannot register unknown string STR_ATOC_TREEOA_TREEA2
    Cannot register unknown string STR_ATOC_TREEOA_TREEA2_GRASS
    18:49:56 Dedicated host created.
    18:49:56 BattlEye Server: Initialized (v1.151)
    18:49:56 Host identity created.
    ArmA 2 OA Console version 1.62 : port 2314
    
    


  4. tried but the same proble

    root@host703 /home/arma2arrowhead/lib32 # ls -l

    razem 924K

    -rw-r--r-- 1 root root 917K sie 1 00:25 libstdc++.so.6

    but i see we have another files

    no idea at the moment..

    why root?

    is arma2arrowhead your linux user?

    is ARMA_DIR=$HOME set in script for that user?

    md5sum for libstdc++.so.6 is ?

    $ md5sum libstdc++.so.6
    fa0738629a7cf91dde2c8137af37a351  libstdc++.so.6

    You system is up to date? (apt-get update && apt-get upgrade)

    Greets


  5. Thanks for help but i have another problem, the log file says me something like this:

    /home/arma2arrowhead/server: error while loading shared libraries: /home/arma2arrowhead/lib32/libstdc++.so.6: file too short

    Do you have shell access to the server ?

    ls -l
    lrwxrwxrwx 1 arma arma     19 Aug  5 17:21 libstdc++.so.6 -> libstdc++.so.6.0.17
    -rw-r--r-- 1 arma arma 938520 Aug  1 00:25 libstdc++.so.6.0.17
    

    libstdc++.so.6 is a unix symbolic link to libstdc++.so.6.0.17

    So you can try to delete the link (libstdc++.so.6) and rename libstdc++.so.6.0.17 to libstdc++.so.6

    Greets


  6. omg what a stupid registration...

    ---------- Post added at 23:40 ---------- Previous post was at 23:37 ----------

    Hi at all,

    here is my workaround for Debian (squeez 64bit)...

    1. get the last available lib32stdc++6 deb package from sid

    # wget http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/lib32stdc++6_4.7.1-6_amd64.deb

    2. extract the data tar ball

    # ar -vx lib32stdc++6_4.7.1-6_amd64.deb

    # tar -xzvf data.tar.gz

    3. copy the lib32 dir to your game-dir

    4. use this modified start/stop-script arma2oaserver (fixes the watchdog too) :

    #!/bin/bash
    #
    # armaserver: ArmA 2 Linux Dedicated Server Control Script
    #  (c) 2010 BIStudio
    #  ArmA 2 binary version must be 1.04 or later
    #
    # mod by: Psycho Dad , Date: 2012/08/05
    
    #=======================================================================
    #========               CONFIGURATION PARAMETERS                ========
    #======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ========
    #=======================================================================
    ARMA_DIR=$HOME/arma2arrowhead
    CONFIG=server.cfg
    PORT=2302
    PIDFILE=${ARMA_DIR}/${PORT}.pid
    RUNFILE=${ARMA_DIR}/${PORT}.run
    LOGFILE=${ARMA_DIR}/${PORT}.log
    SERVER=${ARMA_DIR}/server
    OTHERPARAMS=-cpucount=4
    #=======================================================================
    
    ulimit -c 1000000
    
    # setup the libraries, local dir first! (add!)
    export LD_LIBRARY_PATH=".:${ARMA_DIR}/lib32:/usr/lib32:${LD_LIBRARY_PATH}"
    
    case "$1" in
    
    
       start)
           if [ -f ${RUNFILE} ]; then
               $0 stop
           fi
           echo "Starting ArmA 2 server..."
           # remove core dumps (add!)
           find ${ARMA_DIR} -name core -type f -print | xargs -r rm -f
           # file to mark we want server running...
           echo "go" >${RUNFILE}
           # launch the background watchdog process to run the server (mod!)
           nohup </dev/null >/dev/null 2>&1 $0 watchdog-port-${PORT} &
           ;;
    
       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
           sleep 1s
           fi
           # kill watchdog (add!)
           pgrep -U ${UID} -fl watchdog-port-${PORT} | awk '{print $1}' | xargs -r kill -TERM >/dev/null 2>&1
           ;;
    
    
       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)
           echo "Restarting ArmA 2 server..."
           $0 stop >/dev/null
           $0 start >/dev/null
           ;;
    
       watchdog-port-${PORT})
           # 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}
               if [ -f ${RUNFILE} ]; then
                   echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..."
                   sleep 10s
               else
                   echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating"
               fi
           done
           ;;
       *)
           echo "$0 (start|stop|restart|status|check)"
           ;;
    esac

    have fun ...

    Greets daddy

×