Constant crashing for a while can anyone help

Discussion in 'Bukkit Help' started by Revenger, Aug 21, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Revenger

    We have been getting constant ccrashing for a while the server is

    Ubuntu x64 on a dedicated server.

    Server hardware is ubuntu on x64.

    Code:
    Server Case - Flex Standard case w/2 non-hot swappable HD bays
    Motherboard - 2 RAM Slots (4 Gig Max) Core2 Duo ()
    Processor - 1 x Intel Core 2 Quad Processor Q9550 2.83GHz 1333MHz 12MB LGA775 CPU ()
    RAM - 2 x 2 GB DDR2 775
    First HD - 1 x 500 GB 7200rpm SATA 
    We crash with this once a day or so.

    Code:
    2011-08-21 19:16:01 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    2011-08-21 19:16:03 [SEVERE]     at net.minecraft.server.World.getMultiChunkData(World.java:2209)
    2011-08-21 19:16:18 [INFO] Stopping server
    2011-08-21 19:16:21 [SEVERE]
    E
    2011-08-21 19:16:21 [SEVERE] xception in thread "Connection #2 read thread" Exception in thread "Timer-0"
    2011-08-21 19:16:29 [SEVERE] Exception in thread "Thread-11"
    2011-08-21 19:16:42 [SEVERE] Error occurred (in the plugin loader) while disabling Netstats v4.4 (Is it up to date?): GC overhead limit exceeded
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:16:40 [SEVERE] Exception in thread "Timer-1"
    2011-08-21 19:16:45 [SEVERE] java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:16:47 [SEVERE] java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:16:47 [SEVERE] Error occurred while disabling rTriggers v1.21 (Is it up to date?): GC overhead limit exceeded
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:16:53 [SEVERE] Exception in thread "Connection #27 read thread"
    2011-08-21 19:16:53 [INFO] HelpPages: Version 1.2 is disabled!
    2011-08-21 19:16:53 [SEVERE] java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:16:56 [SEVERE] Error occurred while disabling HelpPages v1.2 (Is it up to date?): GC overhead limit exceeded
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:16:56 [SEVERE] Exception in thread "Timer-2"
    2011-08-21 19:16:56 [INFO] [GuestPrev] is being disabled!
    2011-08-21 19:16:57 [SEVERE] java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:16:57 [INFO] Unloading
    2011-08-21 19:16:59 [SEVERE] Error occurred while disabling Spout v1.0.2.134 (Is it up to date?): GC overhead limit exceeded
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:16:59 [INFO]
    [
    2011-08-21 19:16:59 [INFO] GriefAlertR] is unloaded.
    2011-08-21 19:17:02 [SEVERE] Error occurred while disabling DeathTpPlus v1.84 (Is it up to date?): GC overhead limit exceeded
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:17:02 [INFO] [NoCheat] version [0.8.8] is disabled.
    2011-08-21 19:17:05 [INFO] [VanishNoPickup] 1.9.7 disabled.
    2011-08-21 19:17:05 [INFO] [Permissions] (Phoenix) saved all data.
    2011-08-21 19:17:05 [INFO] [Permissions] (Phoenix) disabled successfully.
    2011-08-21 19:17:05 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-21 19:17:05 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-21 19:17:05 [INFO] [Warpz0r] Permissions plugin lost.
    2011-08-21 19:17:08 [SEVERE] Could not pass event PLUGIN_DISABLE to Multiverse-Core
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:17:08 [INFO] [MyHome] MyHome 2.0 disabled
    2011-08-21 19:17:08 [INFO] [AdminChat] is DISABLED!
    2011-08-21 19:17:08 [INFO] Warpz0r version 1.3.1 is disabled
    2011-08-21 19:17:11 [SEVERE] Error occurred while disabling PermissionsPlus v1.5.1 (Is it up to date?): GC overhead limit exceeded
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:17:11 [INFO] Goodbye world!
    2011-08-21 19:17:11 [INFO] Thread 0 successfully joined.
    2011-08-21 19:17:11 [INFO] properTime 1.8.9 signing off.
    2011-08-21 19:17:11 [INFO] [Multiverse-Core] - Disabled
    2011-08-21 19:17:11 [INFO] LogBlockQuestioner disabled
    2011-08-21 19:17:11 [INFO] SpamHammer 1.5a disabled.
    2011-08-21 19:17:14 [SEVERE] Error occurred while disabling WorldGuard v5.0-alpha10 (Is it up to date?): GC overhead limit exceeded
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:17:14 [INFO] AutoRepair version 1.11.4 is disabled
    2011-08-21 19:17:14 [INFO] PW: CacheCleanup got interrupted
    2011-08-21 19:17:16 [SEVERE] Error occurred while disabling PrivateWarp v1.4.5 (Is it up to date?): GC overhead limit exceeded
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:17:16 [INFO] LogBlock disabled.
    2011-08-21 19:17:21 [SEVERE] Error occurred while disabling HawkEye v1.0.4 (Is it up to date?): GC overhead limit exceeded
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    2011-08-21 19:17:21 [INFO] Saving chunks
    It happened twice straight after a restart of this crash I as at a string collector a mod was in a new chunk area.
     
  2. Offline

    Kaosvf

    Can you provide the start command that use?
    Which plugins are installed?
     
  3. Offline

    Revenger

    Sure

    Server script that out previous main admin from a script online, this might have something to do with it:

    Going to update the script and see.

    Show Spoiler

    Code:
    #!/bin/bash
    # version 2.2 (2/3/11)
    # original author : Relliktsohg
    # continued contributions: Maine, endofzero
    # dopeghoti, demonspork, robbiet480
    # https://github.com/endofzero/Minecraft-Sheller
    
    #    Configuration
    
    # Main
    WORLD_NAME="main"
    OFFLINE_NAME=$WORLD_NAME-offline
    MC_PATH=/home/mcohyeah/testmain
    SCREEN_NAME="testmain"
    MEMMAX=1024
    MEMALOC=1024
    DISPLAY_ON_LAUNCH=1
    SERVER_OPTIONS=""
    
    # Modifications
    SERVERMOD=1
    MODJAR="craftbukkit.jar"
    RUNECRAFT=0
    
    # Backups
    BKUP_PATH=$MC_PATH/backup
    BKUP_DAYS_FULL=30
    BACKUP_FULL_LINK=${BKUP_PATH}/${WORLD_NAME}_full.zip
    
    # Logs
    LOG_TDIR=$MC_PATH/log/server/
    LOGS_DAYS=100
    
    # Mapping
    CARTO_PATH=$MC_PATH/carto
    MAPS_PATH=/var/www/minecraft/maps
    CARTO_OPTIONS="-q -s -m 4"
    BIOME_PATH=/home/minecraft/BiomeExtractor
    
    MCOVERVIEWER_PATH=$MC_PATH/Overviewer/
    MCOVERVIEWER_MAPS_PATH=/var/www/minecraft/maps/Overview/
    MCOVERVIEWER_CACHE_PATH=/var/www/minecraft/maps/Overview/cache/
    MCOVERVIEWER_OPTIONS="--lighting"
    
    #     End of configuration
    
        if [[ -e $MC_PATH/server.log.lck ]]; then
            #       ps -e | grep java | wc -l
            ONLINE=1
        else
            ONLINE=0
        fi
    
    #    Get the PID of our Java process for later use.  Better
    #    than just killing the lowest PID java process like the
    #    original verison did, but still non-optimal.
    #
    #    Explanation:
    #
    #    Find the PID of our screen that's running Minecraft.
    #    Then, use PS to find children of that screen whose
    #    command is 'java'.
    
    SCREEN_PID=$(screen -list | grep $SCREEN_NAME | grep -iv "No sockets found" | head -n1 | sed "s/^\s//;s/\.$SCREEN_NAME.*$//")
    
    if [[ -z $SCREEN_PID ]]; then
        #    Our server seems offline, because there's no screen running.
        #    Set MC_PID to a null value.
        MC_PID=''
    else
        MC_PID=$(ps --ppid $SCREEN_PID -F -C java | tail -1 | awk '{print $2}')
    fi
    
    display() {
        screen -x $SCREEN_NAME
    }
    
    server_launch() {
        echo "Launching minecraft server..."
        if [[ 1 -eq $SERVERMOD ]]; then
            echo $MODJAR
            cd $MC_PATH
            screen -dmS $SCREEN_NAME java -server -Xmx${MEMMAX}M -Xms${MEMALOC}M -Djava.net.preferIPv4Stack=true $SERVER_OPTIONS -jar $MODJAR nogui
            sleep 1
        else
            echo "minecraft_server.jar"
            cd $MC_PATH
            screen -dmS $SCREEN_NAME java -server -Xmx${MEMMAX}M -Xms${MEMALOC}M -Djava.net.preferIPv4Stack=true $SERVER_OPTIONS -jar minecraft_server.jar nogui
            sleep 1
        fi
    }
    
    server_stop() {
        echo "Stopping minecraft server..."
        screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "stop.\r")"
        sleep 5
    }
    
    sync_offline() {
            if [[ -e $MC_PATH/synclock ]]; then
                echo "Previous sync hasn't completed or has failed"
            else
                    touch $MC_PATH/synclock
    
                    echo "Sync in progress..."
    
                    if [[ 1 -eq $ONLINE ]]; then
                        echo "Issuing save-all command, wait 5s...";
                            screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "save-all\r")"
                            sleep 5
                            echo "Issuing save-off command..."
                            screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "save-off\r")"
                            sleep 1
                            screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "say World sync in progress, saving is OFF.\r")"
                    fi
    
                            mkdir -p $MC_PATH/$OFFLINE_NAME/
                            rsync -a $MC_PATH/$WORLD_NAME/ $MC_PATH/$OFFLINE_NAME/
                            WORLD_SIZE=$(du -s $MC_PATH/$WORLD_NAME/ | sed s/[[:space:]].*//g)
                            OFFLINE_SIZE=$(du -s $MC_PATH/$OFFLINE_NAME/ | sed s/[[:space:]].*//g)
                            echo "WORLD  : $WORLD_SIZE KB"
                            echo "OFFLINE: $OFFLINE_SIZE KB"
    
                            if [[ 1 -eq $ONLINE ]]; then
                                echo "Issuing save-on command..."
                                    screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "save-on\r")"
                                    sleep 1
                                    screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "say World sync is complete, saving is ON.\r")"
                    fi
                            rm $MC_PATH/synclock
                            echo "Sync is complete"
            fi
    }
    
    if [[ $# -gt 0 ]]; then
        case "$1" in
            #################################################################
            "status")
                if [[ 1 -eq $ONLINE ]]; then
                    echo "Minecraft server seems ONLINE."
                else
                    echo "Minecraft server seems OFFLINE."
                fi
                ;;
            #################################################################
            "start")
                if [[ 1 -eq $ONLINE ]]; then
                    echo "Server seems to be already running !"
                    case $2 in
                        "force")
                            #    TODO:
                            #    Still needs work, but at least we try
                            #    to use the PID we grabbed earlier.
                            #    The fallback is still to blindly
                            #    kill the lowest-PID Java process running
                            #    on the     server.  This is very bad form.
                            if [[ -z $MC_PID ]]; then
                                kill $(ps -e | grep java | cut -d " " -f 1)
                            else
                                kill $MC_PID
                            fi
                            rm -fr $MC_PATH/*.log.lck 2> /dev/null/;;
                    esac
                else
                    server_launch
                    if [[ 1 -eq $DISPLAY_ON_LAUNCH ]]; then
                        display
                    fi
                fi
                ;;
            #################################################################
            "stop")
                if [[ 1 -eq $ONLINE ]]; then
                    server_stop
                else
                    echo "Server seems to be offline..."
                    case $2 in
                        "force")
                            echo "Forcing server to stop if it's lying.."
                            #    TODO:
                            #    Still needs work, but at least we try
                            #    to use the PID we grabbed earlier.
                            #    The fallback is still to blindly
                            #    kill the lowest-PID Java process running
                            #    on the     server.  This is very bad form.
                            if [[ -z $MC_PID ]]; then
                                kill $(ps -e | grep java | cut -d " " -f 1)
                            else
                                kill $MC_PID
                            fi
                            rm -fr $MC_PATH/*.log.lck 2> /dev/null/
                        ;;
                    esac
                fi
                ;;
            #################################################################
            "restart")
                if [[ 1 -eq $ONLINE ]]; then
                    case $2 in
                        "warn")
                            echo "30 Second Warning."
                            screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "say Server will restart in 30s !\r")"
                            sleep 20
                            echo "10 Second Warning."
                            screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "say Server will restart in 10s !\r")"
                            sleep 10
                        ;;
                    esac
                    server_stop
                fi
                server_launch
                if [[ 1 -eq $DISPLAY_ON_LAUNCH ]]; then
                    display
                fi
                ;;
            #################################################################
            "say")
                if [[ 1 -eq $ONLINE ]]; then
                    screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "say $2\r")"
                    sleep 1
                else
                    echo "Server seems to be offline..."
                fi
                ;;
            #################################################################
            "tell")
                if [[ 1 -eq $ONLINE ]]; then
                    screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "tell $2 $3\r")"
                    sleep 1
                else
                    echo "Server seems to be offline..."
                fi
                ;;
            #################################################################
            "sync")
                if [[ "purge" == $2 ]]; then
                            echo "Purging offline folder..."
                    rm -rf $MC_PATH/$OFFLINE_NAME/
                    echo "Purge Complete"
                fi
                sync_offline
                ;;
            #################################################################
            "logs")
                mkdir -p $LOG_TDIR
                cd $LOG_TDIR
    
                case $2 in
                    "clean")
                        #Move all old log folders into the backup directory based on $LOGS_DAYS
                        mkdir -p $BKUP_PATH/logs
                        find $LOG_TDIR -type d -mtime +$LOGS_DAYS -print | xargs -I xxx mv xxx $BKUP_PATH/logs/
                    ;;
                esac
    
                DATE=$(date +%Y-%m-%d)
                LOG_NEWDIR=$DATE-logs
                if [[ -e $LOG_TDIR/$LOG_NEWDIR ]]; then
                    rm $LOG_TDIR/$LOG_NEWDIR/*
                else
                    mkdir $LOG_TDIR/$LOG_NEWDIR
                fi
    
                DATE=$(date +%d-%m-%Hh%M)
                LOG_TFILE=logs-$DATE.log
    
                        cd $MC_PATH
                        cat server.log >> $LOG_TDIR/$LOG_NEWDIR/$LOG_TFILE
    
                if [[ -e $LOG_TDIR/ip-list.log ]]; then
                    cat $LOG_TDIR/ip-list.log | sort | uniq > $LOG_TDIR/templist.log
                fi
    
                cat $LOG_TDIR/$LOG_NEWDIR/$LOG_TFILE | egrep '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+.+logged in'  | sed -e 's/.*\[INFO\]\s//g' -e 's/\[\//\t/g' -e 's/:.*//g' >> $LOG_TDIR/templist.log
                cat $LOG_TDIR/templist.log | sort | uniq -w 4 > $LOG_TDIR/ip-list.log
                rm $LOG_TDIR/templist.log
    
                cat $LOG_TDIR/$LOG_NEWDIR/$LOG_TFILE | egrep 'logged in|lost connection' | sed -e 's/.*\([0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}\).\[INFO\].\([a-zA-Z0-9_]\{1,\}\).\{1,\}logged in/\1\t\2 : connected/g' -e 's/.*\([0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}\).\[INFO\].\([a-zA-Z0-9_]\{1,\}\).lost connection.*/\1\t\2 : disconnected/g' >> $LOG_TDIR/$LOG_NEWDIR/connexions-$DATE.log
    
                cat $LOG_TDIR/$LOG_NEWDIR/$LOG_TFILE | egrep '<[a-zA-Z0-9_]+>|\[CONSOLE\]' | sed -e 's/.*\([0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}\).\[INFO\]./\1 /g' >> $LOG_TDIR/$LOG_NEWDIR/chat-$DATE.log
    
                cat $LOG_TDIR/$LOG_NEWDIR/$LOG_TFILE | egrep 'Internal exception|error' | sed -e 's/.*\([0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}\).\[INFO\]./\1\t/g' >> $LOG_TDIR/$LOG_NEWDIR/errors-$DATE.log
                ;;
            #################################################################
            "backup")
    
                if [[ -e $BKUP_PATH/$WORLD_NAME.lock ]]; then
                    echo "Backup already in progress.  Aborting."
                    exit 1
                else
                    touch $BKUP_PATH/$WORLD_NAME.lock
                fi
    
                if [[ ! -d $BKUP_PATH  ]]; then
                    if ! mkdir -p $BKUP_PATH; then
                        echo "Backup path $BKUP_PATH does not exist and I could not create the directory!"
                        rm $BKUP_PATH/$WORLD_NAME.lock
                        exit 1
                    fi
                fi
    
                cd $BKUP_PATH
    
                if [[ -e $MC_PATH/$WORLD_NAME ]]; then
                    if [[ $ONLINE -eq 1 ]]; then
                        echo "Server running, warning players : backup in 10s."
                        screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "say Backing up the map in 10s\r")"
                        sleep 10
                        screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "say Now backing up the map...\r")"
                        echo "Issuing save-all command, wait 5s..."
                        screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "save-all\r")"
                        sleep 5
                        echo "Issuing save-off command..."
                        screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "save-off\r")"
                        sleep 1
                    fi
    
                    cd $BKUP_PATH
    
                    # Set date, file name and temp backup list file name
                    DATE=$(date +%Y-%m-%d-%Hh%M)
                    FILENAME=$WORLD_NAME-$DATE
                    BACKUP_FILES=$BKUP_PATH/list.$DATE
                    FILENAME=$FILENAME-full.zip
    
                    # Remove full archives older than $BKUP_DAYS_FULL
                    find ./$WORLD_NAME-*-full.zip -type f -mtime +$BKUP_DAYS_FULL -print >> purgelist
                    rm -f $(cat purgelist) purgelist
    
                    # Now make our full backup
                    pushd $MC_PATH
                            find $WORLD_NAME -type f -print > $BACKUP_FILES
                                      zip $BKUP_PATH/$FILENAME -@ < $BACKUP_FILES
                    popd
    
                    # Remove temp back file
                    rm -f $BACKUP_FILES
    
                    # Enable saves and inform users
                    if [[ 1 -eq $ONLINE ]]; then
                        echo "Issuing save-on command..."
                        screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "save-on\r")"
                        sleep 1
                        screen -S $SCREEN_NAME -p 0 -X stuff "$(printf "say Backup is done, have fun !\r")"
                    fi
    
                    # Copy backup to web directory
                    cp $BKUP_PATH/$FILENAME /var/www/maintenance/backup/
    
                    echo "Backup process is over."
    
                else
                    echo "The world \"$WORLD_NAME\" does not exist.";
                fi
    
                # Remove backups lock file
                rm $BKUP_PATH/$WORLD_NAME.lock
                ;;
            #################################################################
            "cartography")
                if [[ -e $MC_PATH/cartolock ]]; then
                    echo "Previous cartography run hasn't completed or has failed"
                else
                    touch $MC_PATH/cartolock
    
                    if [[ "sync" == $2 ]]; then
                        sync_offline
                    fi
    
                    if [[ -e $CARTO_PATH ]]; then
                        if [[ -e $MC_PATH/$WORLD_NAME ]]; then
    
                            mkdir -p $MAPS_PATH
    
                            DATE=$(date +%Y-%m-%d-%Hh%M)
                            FILENAME=$WORLD_NAME-map-$DATE
                            cd $CARTO_PATH
                            echo "Cartography in progress..."
                            ./c10t -w $MC_PATH/$OFFLINE_NAME/ -o $FILENAME.png $CARTO_OPTIONS
                            mv *.png $MAPS_PATH
                            cd $MC_PATH
                            echo "Cartography is done."
    
                        else
                            echo "The world \"$WORLD_NAME\" does not exist."
                        fi
                    else
                        echo "The path to cartographer seems to be wrong."
                    fi
                    rm $MC_PATH/cartolock
                fi
                ;;
            #################################################################
            "biome")
                if [[ -e $BIOME_PATH ]]; then
                    if [[ -e $MC_PATH/$WORLD_NAME ]]; then
    
                        if [[ "sync" == $2 ]]; then
                            sync_offline
                        fi
    
                        echo "Biome extraction in progress..."
                        java -jar $BIOME_PATH/MinecraftBiomeExtractor.jar -nogui $MC_PATH/$OFFLINE_NAME/
                        echo "Biome extraction is complete"
    
                    else
                        echo "The world \"$WORLD_NAME\" does not exist."
                    fi
                else
                    echo "The path to MinecraftBiomeExtractor.jar seems to be wrong."
                fi
                ;;
            #################################################################
            "overviewer")
                if [[ -e $MC_PATH/overviewlock ]]; then
                    echo "Previous overview run hasn't completed or has failed"
                else
                    touch $MC_PATH/overviewlock
    
                    if [[ "sync" == $2 ]]; then
                        sync_offline
                    fi
    
                    if [[ -e $MCOVERVIEWER_PATH ]];  then
                        if [[ -e $MC_PATH/$WORLD_NAME ]]; then
    
                            mkdir -p $MCOVERVIEWER_MAPS_PATH
    
                            echo "Minecraft-Overviewer in progress..."
                            python $MCOVERVIEWER_PATH/gmap.py $MCOVERVIEWER_OPTIONS --cachedir=$MCOVERVIEWER_CACHE_PATH $MC_PATH/$OFFLINE_NAME $MCOVERVIEWER_MAPS_PATH
                            echo "Minecraft-Overviewer is done."
    
                        else
                            echo "The world \"$WORLD_NAME\" does not exist.";
                        fi
                    else
                        echo "The path to Minecraft-Overviewer seems to be wrong."
                    fi
                    rm $MC_PATH/overviewlock
                fi
                ;;
            #################################################################
            "update")
                if [[ 1 -eq $ONLINE ]]; then
                    server_stop
                fi
    
                mkdir -p $BKUP_PATH
    
                echo "Backing up current binaries..."
                DATE=$(date +%Y-%m-%d)
                cd $MC_PATH
                if [[ 1 -eq $SERVERMOD ]]; then
                    tar -czf minecraft_server-$DATE.tar.gz minecraft_server.jar craftbukkit.jar
    #                rm craftbukkit.jar
                else
                    tar -czf minecraft_server-$DATE.tar.gz minecraft_server.jar
                fi
                mv minecraft_server-$DATE.tar.gz $BKUP_PATH
    
                echo "Downloading new binaries..."
                wget -N http://www.minecraft.net/download/minecraft_server.jar
                if [[ 1 -eq $SERVERMOD ]]; then
                    echo "Downloading Bukkit..."
                    echo "Nothing downloaded as this is a placeholder"
                fi
                if [[ 1 -eq $RUNECRAFT ]];  then
                    echo "Downloading Runecraft..."
                    mkdir -p ModTmp
                    cd ModTmp/
                    wget http://llama.cerberusstudios.net/runecraft_latest.zip
                    unzip runecraft_latest.zip
                    jar uvf $MC_PATH/minecraft_server.jar *.class
                    cd $MC_PATH
                    rm -rf ModTmp
                fi
    
                server_launch
                if [[ 1 -eq $DISPLAY_ON_LAUNCH ]]; then
                    display
                fi
                ;;
            #################################################################
            *)
                echo "Usage : minecraft <status | start [force] | stop | restart [warn] | say 'message' | tell user 'message' | logs [clean]"
                echo "backup [full] | sync [purge] | cartography [sync] | biome [sync] | overviewer [sync] | update>"
                ;;
        esac
    
    else
        if [[ 1 -eq $ONLINE ]]; then
            display
        else
            echo "Minecraft server seems to be offline..."
        fi
    fi
    exit 0
    


    Plugins:

    Code:
    19:57:14 [INFO] Plugins: Netstats, rTriggers, HelpPages, GuestPrev, MapMarkers, Spout, GriefAlertR, CommandHelper, MCDocs, DeathTpPlus, NoCheat, VanishNoPickup, Permissions, MyHome, AdminChat, Warpz0r, PermissionsPlus, OpenInv, SlowHealth, WorldEdit, BorderGuard, properTime, Multiverse-Core, PluginControl, LogBlockQuestioner, SpamHammer, Essentials, WorldGuard, AutoRepair, Multiverse-Portals, EssentialsChat, EssentialsSpawn, PrivateWarp, LogBlock, HawkEye
    Start log:

    Show Spoiler

    Code:
    2011-08-21 19:51:39 [INFO] Starting minecraft server version Beta 1.7.3
    2011-08-21 19:51:39 [INFO] Loading properties
    2011-08-21 19:51:39 [INFO] Starting Minecraft server on *:25565
    2011-08-21 19:51:39 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-980-g4ed23b1-b1060jnks (MC: 1.7.3)
    2011-08-21 19:51:40 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-08-21 19:51:48 [INFO] [LogBlock] Version check: There is a newer version: v1.26
    2011-08-21 19:51:48 [INFO] [LogBlock] Connecting to mcohyeah@jdbc:mysql://localhost:3306/logblock...
    2011-08-21 19:51:48 [INFO] Preparing level "main"
    2011-08-21 19:51:48 [INFO] Preparing start region for level 0 (Seed: 4373964933707790693)
    2011-08-21 19:51:49 [INFO] [Netstats] v4.4 has been enabled.
    2011-08-21 19:51:50 [INFO] [rTriggers] Attached plugin to Permissions.
    2011-08-21 19:51:50 [INFO] [rTriggers] Loaded: Version 1.21
    2011-08-21 19:51:50 [INFO] [Permissions] version [2.7] (Phoenix)  loaded
    2011-08-21 19:51:50 [INFO] [rTriggers] Attached plugin to Permissions.
    2011-08-21 19:51:50 [INFO] HelpPages: Permissions found.
    2011-08-21 19:51:50 [INFO] HelpPages: Version 1.2 is enabled!
    2011-08-21 19:51:50 [INFO] [GuestPrev] version 1.4h by SunShe is enabled!
    2011-08-21 19:51:50 [INFO] MapMarkers version 0.3.3 enabled
    2011-08-21 19:51:50 [INFO] Spout 1.0.2.134 has been initialized
    2011-08-21 19:51:50 [INFO] GriefAlertR version 0.71 by Gandalf is enabled!
    2011-08-21 19:51:50 [INFO] Please visit http://wdgaming.net for our Minecraft server.
    2011-08-21 19:51:50 [INFO] CommandHelper 2.0.2 enabled
    2011-08-21 19:51:50 [INFO] MCDocs - Permissions Detected!
    2011-08-21 19:51:50 [INFO] MCDocs by Tazzernator (Andrew Tajsic) - version 5.2.4.1 is enabled!
    2011-08-21 19:51:50 [INFO] [DeathTpPlus] 5 Kill Streaks loaded.
    2011-08-21 19:51:50 [INFO] [DeathTpPlus] 5 Death Streaks loaded.
    2011-08-21 19:51:50 [INFO] [DeathTpPlus] Using Permissions
    2011-08-21 19:51:50 [INFO] [DeathTpPlus] version 1.84 by lonelydime is enabled!
    2011-08-21 19:51:50 [WARNING] [NoCheat] version [0.8.8] couldn't find CrafTIRC plugin. Disabling logging to IRC.
    2011-08-21 19:51:50 [INFO] [NoCheat] version [0.8.8] is enabled with the following checks: moving flying speedhack airbuild bedteleport
    2011-08-21 19:51:50 [INFO] [VanishNoPickup] 1.9.7 enabled.
    2011-08-21 19:51:50 [INFO] [MyHome] 206 homes loaded
    2011-08-21 19:51:50 [INFO] [MyHome] Permissions enabled using: Permissions v2.7
    2011-08-21 19:51:50 [WARNING] [MyHome] Help plugin not detected. Only providing help via /home help.
    2011-08-21 19:51:50 [INFO] [MyHome] MyHome 2.0 enabled
    2011-08-21 19:51:50 [INFO] [AdminChat] Version 1.3.1 is enabled.
    2011-08-21 19:51:50 [INFO] [AdminChat] Using color 'aqua' for Adminchat.
    2011-08-21 19:51:50 [INFO] [AdminChat] Using channel name 'Adminchat' for Adminchat.
    2011-08-21 19:51:50 [INFO] [AdminChat] Found Permissions!
    2011-08-21 19:51:50 [INFO] Warpz0r version 1.3.1 is enabled
    2011-08-21 19:51:50 [INFO] [Warpz0r] Found Permissions (v2.7)
    2011-08-21 19:51:50 [INFO] [PermissionsPlus] Attached to Permissions version: 2.7
    2011-08-21 19:51:50 [INFO] [PermissionsPlus] version 1.5.1 has been enabled.
    2011-08-21 19:51:50 [INFO] [OpenInv] version 1.3.2-test enabled!
    2011-08-21 19:51:50 [INFO] [SlowHealth] version [3.0.1] (actruncale) is loaded.
    2011-08-21 19:51:50 [INFO] WorldEdit 4.4 enabled.
    2011-08-21 19:51:50 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-21 19:51:50 [INFO] BorderGuard version 3.0 is enabled!
    2011-08-21 19:51:50 [INFO] properTime reading from config at /home/mcohyeah/testmain/plugins/properTime/properTime.conf
    2011-08-21 19:51:50 [INFO] properTime 1.8.9 initialized
    2011-08-21 19:51:50 [INFO] [Multiverse-Core] - Version 2.0-b227 Enabled - By Rigby and fernferret
    2011-08-21 19:51:50 [INFO] [Multiverse-Core] - Attached to Permissions
    2011-08-21 19:51:50 [INFO] [AllPay] - Version 1.0.3 - hooked into Essentials Economy for Multiverse-Core v2.0-b227
    2011-08-21 19:51:50 [INFO] [Multiverse-Core] - Multiverse Config -- Loaded
    2011-08-21 19:51:50 [INFO] [Multiverse-Core] - World Config -- Loaded
    2011-08-21 19:51:50 [INFO] Preparing start region for level 1 (Seed: -4079105260595707929)
    2011-08-21 19:51:51 [INFO] [Multiverse-Core] Loading World & Settings - 'nether' - NETHER
    2011-08-21 19:51:51 [INFO] [Multiverse-Core] Loading World & Settings - 'main' - NORMAL
    2011-08-21 19:51:51 [INFO] [Multiverse-Core] 2 - World(s) loaded.
    2011-08-21 19:51:51 [INFO] Loading PluginControl Version 0.55
    2011-08-21 19:51:51 [INFO] Using Nijikokun's Permission plugin
    2011-08-21 19:51:51 [INFO] Read level-name: main
    2011-08-21 19:51:51 [INFO] PluginControl started
    2011-08-21 19:51:51 [INFO] LogBlockQuestioner v0.02 enabled
    2011-08-21 19:51:51 [INFO] SpamHammer 1.5a enabled.
    2011-08-21 19:51:53 [INFO] Loaded Essentials build 2.2.22 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-08-21 19:51:53 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-21 19:51:53 [INFO] WorldGuard: Blacklist loaded.
    2011-08-21 19:51:53 [INFO] WorldGuard: (main) Single session is enforced.
    2011-08-21 19:51:53 [INFO] WorldGuard: (main) TNT ignition is PERMITTED.
    2011-08-21 19:51:53 [INFO] WorldGuard: (main) Lighters are blocked.
    2011-08-21 19:51:53 [INFO] WorldGuard: (main) Lava fire is blocked.
    2011-08-21 19:51:53 [INFO] WorldGuard: (main) All fire spread is disabled.
    2011-08-21 19:51:53 [INFO] WorldGuard: Loaded configuration for world 'main"
    2011-08-21 19:51:53 [INFO] WorldGuard: Blacklist loaded.
    2011-08-21 19:51:53 [INFO] WorldGuard: (nether) Single session is enforced.
    2011-08-21 19:51:53 [INFO] WorldGuard: (nether) TNT ignition is PERMITTED.
    2011-08-21 19:51:53 [INFO] WorldGuard: (nether) Lighters are PERMITTED.
    2011-08-21 19:51:53 [INFO] WorldGuard: (nether) Lava fire is blocked.
    2011-08-21 19:51:53 [INFO] WorldGuard: (nether) Fire spread is UNRESTRICTED.
    2011-08-21 19:51:53 [INFO] WorldGuard: Loaded configuration for world 'nether"
    2011-08-21 19:51:53 [INFO] WorldGuard 5.0-alpha10 enabled.
    2011-08-21 19:51:53 [INFO] AutoRepair version 1.11.4 is enabled
    2011-08-21 19:51:53 [INFO] [MultiVerse-Portals] - Version 2.0-b180 Enabled - By Rigby and fernferret
    2011-08-21 19:51:54 [INFO] [MultiVerse-Portals]  2 - Portals(s) loaded
    2011-08-21 19:51:54 [INFO] Loaded EssentialsChat build 2.2.22 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-08-21 19:51:54 [INFO] Loaded EssentialsSpawn build 2.2.22 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-08-21 19:51:54 [INFO] PW: Start loading of PrivateWarp 1.4.5
    2011-08-21 19:51:54 [INFO] PW: Starting initialization of PrivateWarp
    2011-08-21 19:51:54 [INFO] PW: Copyright: Wrecker Technologies
    2011-08-21 19:51:54 [INFO] PW: PrivateWarp 1.4.5 initialized
    2011-08-21 19:51:54 [INFO] PW: Just got enabled
    2011-08-21 19:51:54 [INFO] [LogBlock] Permissions found.
    2011-08-21 19:51:54 [INFO] [LogBlock] Scheduled consumer with bukkit scheduler.
    2011-08-21 19:51:54 [INFO] Logblock v1.10 enabled.
    2011-08-21 19:51:54 [INFO] [HawkEye] Starting HawkEye initiation process...
    2011-08-21 19:51:54 [INFO] [HawkEye] Using Permissions for user permissions
    2011-08-21 19:51:54 [INFO] [HawkEye] Performing update check...
    2011-08-21 19:51:55 [INFO] [HawkEye] No updates available for HawkEye
    2011-08-21 19:51:55 [INFO] [HawkEye] Starting database cleanse thread
    2011-08-21 19:51:55 [INFO] [HawkEye] WorldEdit found, selection rollbacks enabled
    2011-08-21 19:51:55 [INFO] [HawkEye] Version 1.0.4 enabled!
    2011-08-21 19:51:55 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-08-21 19:51:55 [INFO] Done (0.714s)! For help, type "help" or "?"
    


    Hope that's enough info.

    Just did update on openjdk6 by apt-get.

    Sorry for the edits these forums like to keep overwritting code etc I past in.
     
  4. Offline

    Kaosvf

    "WorldEdit 4.4 enabled." update it to 4.6
    In the start script file change this line:
    Code:
    screen -dmS $SCREEN_NAME java -server -Xmx${MEMMAX}M -Xms${MEMALOC}M -Djava.net.preferIPv4Stack=true $SERVER_OPTIONS -jar $MODJAR nogui
    with this:
    Code:
    screen -dmS $SCREEN_NAME java -server -Xmx${MEMMAX}M -Xincgc -Djava.net.preferIPv4Stack=true $SERVER_OPTIONS -jar $MODJAR nogui
    and "MEMMAX=1024" with "MEMMAX=2048"
     
  5. Offline

    Revenger

    Have done and will keep a eye on it.

    I might update the script sometime also tonight I dunno if the newer is is any better.

    Server seems stable atm so might be fixed.
     
Thread Status:
Not open for further replies.

Share This Page