Jump to content

Photo
- - - - -

Problem with Server


  • Please log in to reply
1 reply to this topic

#1 hacky

hacky

    Newbie

  • Members
  • 2 posts

Posted 08 July 2009 - 13:32

Hi there,

i have some problems with my 1.96 dedicated Server. The Machine is a 256 MB RAM virtual server, with SuSE Linux 11.1.

In my logfile you can see the following in loop:

WATCHDOG (24924): [Wed Jul 8 15:23:57 CEST 2009] Server died, waiting for restart...
WATCHDOG (25100): [Wed Jul 8 15:24:02 CEST 2009] Starting Server on Port (port 2302)...
15:24:03 Dedicated server created, memory used: 3824 KB
15:24:04 Cannot start server on port 2302


Yesterday evening, the server worked well - we've played the map "serialkiller 2003", and on an second run, while starting the game the server crashes. since then, i can't even start a game.

Here my ofpserver script (just translated :))

May someone has got an idea? Or the same problem?

#!/bin/bash
#
# ofpserver: Operation Flashpoint Linux dedicated server control script
#  (c) 2003 BIStudio
#  OFP binary version must be 1.92 or later!
#

#=======================================================================
#========               CONFIGURATION PARAMETERS                ========
#======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ========
#=======================================================================
OFP_DIR=/srv/ofp
CONFIG=${OFP_DIR}/server.cfg
PORT=2302
PIDFILE=/var/run/ofp_server.${PORT}.pid
RUNFILE=/var/run/ofp_server.${PORT}.run
LOGFILE=${OFP_DIR}/${PORT}.log
SERVER=${OFP_DIR}/server
#=======================================================================

case "$1" in


    start)
        if [ -f ${RUNFILE} ]; then
            $0 stop
        fi
        echo "Starte OFP 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 "Stoppe OFP Server..."
        if [ -f ${RUNFILE} ]; then
# ask watcher process to exit by deleting its runfile...
            rm -f ${RUNFILE}
        fi
# and terminate OFP 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 sollte laufen..."
        else
            echo "Server laeuft nicht..."
        fi
        if [ -f ${PIDFILE} ]; then
            PID=$(< ${PIDFILE})
            echo "PID file exists (PID=${PID})..."
           if [ -f /proc/${PID}/cmdline ]; then
                echo "Die Serveranwendung laeuft...."
            fi
        fi
        ;;


    check)
        echo -n "OFP directory: ${OFP_DIR} "
        if [ -d ${OFP_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
        sleep 3s
        echo "Server Heruntergefahren..."
        sleep 1s
        echo "Server wird neugestartet..."
        $0 start
        echo "Server gestartet..."
        ;;

    watchdog)
#
# this is a background watchdog process. Do not start directly
#
        while [ -f ${RUNFILE} ]; do
#
# launch the server...
#
            cd ${OFP_DIR}
  echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starte Server mit Port (port ${PORT})..."
      (export LD_LIBRARY_PATH=/srv/ofp/libs;${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE})
         if [ -f ${RUNFILE} ]; then
 	   echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server tot, waren auf neustart..."
            unset LD_LIBRARY_PATH
            sleep 5s
            else
            echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server wurde heruntergefahren, WATCHDOG wird beendet."
            unset LD_LIBRARY_PATH
               fi
         done
      ;;

And my server.cfg. Just commented out the Mission Cycle for Troubleshooting.

//
// server.cfg
//
// Michael Wagner
// [GSC] hackspider
//
//
//
// GLOBAL SETTINGS
//

hostname="hacky's Ballerbude";                          // Servername
password="";                                            // Serverpasswort
passwordAdmin="secret";                             // Adminpasswort
reportingIP="master.gamespy.com";                       // Server bei GameSpy melden
logFile="server_console.log";                           // Logfile


//
// WELCOME MESSAGE ("message of the day")
// "", Nachrichten werden nicht angezeigt, sondern dienen als Pause
//

motd[]={
        "", "",
        "Welcome to hacky's Ballerbude ",
        "Maybe you know the GSC Clan...",
        "Now the rules...",
        "Allowed Languages are ENGLISH and GERMAN!",
        "You will be kicked or banned, if...",
        "-->> Your Ping is over 250 or using bad words",
        "-->> You've got a Fake ID or a duplicated ID",
        "-->> You're cheating",
        "-->> You're not Speaking allowed languages!",
        "",
        "Please respect your current admin!",
        "And now, have much fun, and be fair!",
        "",
        "-->> Questions? ICQ 335 042 343"
};
motdInterval=3;                                         // Intervall zwischen Nachrichten


//
// JOINING RULES
//

checkfiles[]={                                          // Ueberprueft die Dateien
        "dta\data3d.pbo"
};
kickduplicate=1;                                        // Doppelte ID's unterbinden
maxPlayers=32;                                          // Maximale Playeranzahl
verifySignatures=0;                                     // Prueft die Dateien mit .bisign (Original Dateien)
equalModRequired=0;                                     // Aktiviert explizien OFP MOD start (Startup Param -mod XXX)

//
// VOTING
//

voteMissionPlayers=1;                                   // Legt fest, wie viele Spieler fuer Missionswahl online sein muessen
voteThreshold=0.33;                                     // Mindestprozentsatz zum waehlen fuer admin

//
// MISSIONS CYCLE (siehe Unten)
//

//class Missions
//{
//class Mission01
//{
//template = serialkiller 2003.noe;
//cadetMode = 1;
//};
//

Edited by hacky, 08 July 2009 - 14:33.


#2 hacky

hacky

    Newbie

  • Members
  • 2 posts

Posted 09 July 2009 - 09:44

Hi there,

this is was happen... If you want to start a mission - it's equal what mission is running (or not)...

2:45:55 Mission [crcti] 0.93 nogova.noe read from bank
2:47:16 Roles assigned
2:47:16 Reading mission ...
WATCHDOG (4170): [Thu Jul 9 02:47:16 CEST 2009] Server died, waiting for restart...
WATCHDOG (4170): [Thu Jul 9 02:47:21 CEST 2009] Starting Server on Port (port 2302)...
2:47:21 Dedicated server created, memory used: 3828 KB
Operation Flashpoint Console version 1.96: port 2302 - Sockets
2:47:22 Server identity created
2:48:18 Player MSC connecting


May the file list can help?

-rw-r--r--  1 ofp  users   44517 Jul  9 11:28 2302.log
-rw-r--r--  1 ofp  users     169 Jul  7 20:15 ban.txt
-rw-r--r--  1 ofp  users     535 Jul  6 20:15 flashpoint.cfg
drwxr-xr-x  2 ofp  users    4096 Jun 28  2004 libs
drwxr-xr-x  2 ofp  users    4096 Jul  8 16:27 libs.new
drwxr-xr-x  3 ofp  users   12288 Jul  7 17:55 mpmissions
-rw-r--r--  1 ofp  users 9419824 Apr 20  2004 ofp-server-1.96.shar
-rwxrwxr-x  1 ofp  users    3003 Jul  8 16:12 ofpserver
drwxr-xr-x  5 ofp  users    4096 Jul  6 17:50 res
drwxr-xr-x  2 ofp  users    4096 Jul  8 16:40 scripts
-rwxrwxr-x  1 ofp  users 6825488 Jul  3 17:42 server
-rw-r--r--  1 ofp  users    1834 Jul  8 16:32 server.cfg
drwx--x--x  2 ofp  users    4096 Jul  9 02:47 tmp
drwx--x--x  2 ofp  users    4096 Jul  9 02:47 tmp2302
-rw-r--r--  1 ofp  users   10084 Sep  6  2004 tolower
-rw-r--r--  1 ofp  users    3040 Aug 30  2004 tolower.c
drwx--x--x  3 ofp  users    4096 Jul  6 20:23 users
drwxr-xr-x  2 ofp  users    4096 Jul  8 15:01 worlds

Thanks in advance!

Edited by hacky, 09 July 2009 - 09:50.