Constant Server Crashing

    Joined
    Aug 2, 2013
    Messages
    17
    Reaction score
    0
    After the 0.09392 update, having a dedicated server is sketchy at best. The server will remain up for a few mins to an hour before just randomly shutting down or crashes. There was a hotfix that was supposed to fix it, but then broke any action in regards to entering/exiting cores and computers. Then there was another hotfix to fix that hotfix.

    Hotfix 2 fixed the problem firstly created with hotfix one, but does not fix the server crashing issues. It happens completely at random, and is getting fairly annoying as someone has to be “Constantly” monitoring the server and/or dedicated server box in order to keep the server up.

    I’m sure many other dedicated server hosts would agree with me on this one, but please fix this issue. –Petroph

    gs.blackwidowgamers.com:4242
     
    Joined
    Jul 3, 2013
    Messages
    1
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    I can report the same issues with C3WNetworks.com:4242. I am just a player however it has been crashing all day since the updates.
     
    Joined
    Aug 3, 2013
    Messages
    1
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    don\'t know too much about starmade servers but my friend and I are hosting on linux, as far as ubntu goes you can use chronjob to schedule automatic server restarts

    further more you could create a bash \"*.sh\" file which detects when the server has termnated or encountered an error, and restarts on such faults

    an example of this file could be found on KAG forums (King Arthur\'s Gold) their file could be manipulated



    nothing compete, but I hope this sparks some ideas
     
    Joined
    Aug 6, 2013
    Messages
    52
    Reaction score
    0
    Hi schema!

    Same by feedupyourbeast.de:4242 since 0.093922 ... Server crashes after 10 minutes or 30 minutes ... or hard one after 1 minute ...

    @werid41
    Thanx for you support ... but you dont think that professional server admins allready wrote bash scripts?

    Cheers
     
    Joined
    Jun 27, 2013
    Messages
    6
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Providing that you are using Linux or UNIX, you can delete the exisiting code inside your \"StarMade-dedicated-server-linux.sh\" file, used in running the server and change it to the following

    #!/bin/bash

    (
    until java -Xms128m -Xmx1024m -jar StarMade.jar -server; do
    echo \"StarMade crashed with exit code $?. Respawning... \" >&2
    sleep 5
    done
    ) &


    The server will automatically restart after a crash. While this won\'t fix the problem of the server crashing in the first place, it will stop you from having to constantly restart the server itself, as the script will do it for you!

    If you are using Windows, this script can still work, however you\'ll have to install Cygwin to run the .sh script.
     

    schema

    Cat God
    Joined
    Feb 17, 2012
    Messages
    1,552
    Reaction score
    2,604
    • Schine
    Does any admin of issue with server crashing have logs?
     
    Joined
    Aug 6, 2013
    Messages
    52
    Reaction score
    0
    Hi schema.

    Allready send with java -jar CrashAndBugReport.jar -nogui to you.

    Habe ich dir alles schon geschickt.

    From: [email protected]

    I use an other script but this works also:

    #!/bin/bash

    while :
    do
    if [ \"$(pgrep -f StarMade.jar)\" ]
    then


    echo $(date \"+%d.%m.%y %T\")\" : StarMade is running already\"

    else

    echo $(date \"+%d.%m.%y %T\")\" : StarMade is not running, launching ...\"

    sync; echo 3 > /proc/sys/vm/drop_caches

    sleep 10s

    screen -dmS starmade java -Xms512m -Xmx4g -XX:ParallelGCThreads=4 -XX:MaxPermSize=256m -d64 -server -jar StarMade.jar -server

    fi
    sleep 20s
    done


    Cheers
     
    Joined
    Sep 6, 2012
    Messages
    396
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    check the reports you got sent from MadRealms. Seems there are countless crashes.

    End of the log from the crash a few mins ago:



    [Sep 3, 2013 2:14:10 PM] STDERR: [ERR] WROTE DOCKED TO ENTITY_SHIP_The-Nemesis-MARK-II_1377507224407
    [Sep 3, 2013 2:14:10 PM] STDERR: [ERR] DELAYED DOCK OF Ship[ROSS_turret_19](1360) TO ENTITY_SHIP_ROSS HAS FAILED. re-writing dock!
    [Sep 3, 2013 2:14:10 PM] STDERR: [ERR] WROTE DOCKED TO ENTITY_SHIP_ROSS
    [Sep 3, 2013 2:14:10 PM] STDERR: [ERR] WROTE DOCKED TO ENTITY_SPACESTATION_Lazarus_Research_Station
    [Sep 3, 2013 2:14:10 PM] STDERR: [ERR] WROTE DOCKED TO ENTITY_SPACESTATION_Lazarus_Research_Station
    [Sep 3, 2013 2:14:10 PM] STDERR: [ERR] [SENDABLESEGMENTVONTROLLER][WRITE] WARNING: segment writing of Planet(3730)[s3729] on Server(0) took: 23 ms
    [Sep 3, 2013 2:14:10 PM] STDERR: [ERR] [SENDABLESEGMENTVONTROLLER][WRITE] WARNING: segment writing of Planet(10551)[s10550] on Server(0) took: 37 ms
    [Sep 3, 2013 2:14:10 PM] STDERR: [ERR] DELAYED DOCK OF Ship[PimpinatorV2_dock_0](4764) TO ENTITY_SHIP_PimpinatorV2 HAS FAILED. re-writing dock!
    [Sep 3, 2013 2:14:10 PM] STDERR: [ERR] WROTE DOCKED TO ENTITY_SHIP_PimpinatorV2
    [Sep 3, 2013 2:14:10 PM] STDOUT: [OUT] [SERVER] SERVER THREAD QUEUE TERMINATED
    [Sep 3, 2013 2:14:10 PM] STDOUT: [OUT] [SERVER] SERVER SHUTDOWN. ServerState saved!
     
    Joined
    Aug 12, 2013
    Messages
    15
    Reaction score
    0
    Same for our server (rushteamc). Tho I just wrote a quick restarter for it. There is a topic somewhere buried now in the bugs forum regarding projectiles that causes an exception (index err.). So fellow admins - check the log but go up a bit. The server shutdown message isn\'t interesting, it\'s the exception that\'s a bunch of lines above it.

    Update:

    Here\'s the post with the exception (posted yesterday) - http://star-made.org/content/server-projectile-pcghostobjext-server-shutdown
     
    Joined
    Aug 2, 2013
    Messages
    17
    Reaction score
    0
    Is it possible to get a script together for the Windows server batch file to be restarted after the crash?
     
    Joined
    Jun 27, 2013
    Messages
    6
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Its for Linux servers. You could use the same script in windows though I think but you\'d have to install Cygwin, which provides a Unix-like environment under Windows -- but it doesn\'t have a particularly \"native\" environment.
     
    Joined
    Aug 21, 2013
    Messages
    10
    Reaction score
    0
    • Legacy Citizen
    [SERVER] WAITING FOR THREAD POOL TO TERMINATE; Active: 0
    [SERVER] SERVER THREAD POOL TERMINATED
    [SERVER] WAITING FOR WRITING QUEUE TO FINISH; Active: 53
    [SENDABLESEGMENTVONTROLLER][WRITE] WARNING: segment writing of Shop(21) on Server(0) took: 12 ms
    WROTE DOCKED TO ENTITY_SPACESTATION_P1378223452711
    WROTE DOCKED TO ENTITY_SPACESTATION_P1378223452711
    WROTE DOCKED TO ENTITY_SPACESTATION_P1378223452711
    WROTE DOCKED TO ENTITY_SPACESTATION_P1378223452711
    [INVENTORY] SAVING META TAG 106 -> Logbook
    (right click to view)
    [INVENTORY] SAVING META TAG 106 -> Logbook
    (right click to view)
    WROTE DOCKED TO ENTITY_SPACESTATION_P1378223452711
    WROTE DOCKED TO ENTITY_SPACESTATION_P1378223452711
    WROTE DOCKED TO ENTITY_SPACESTATION_P1378223452711
    WROTE DOCKED TO ENTITY_SPACESTATION_P1378223452711
    WROTE DOCKED TO ENTITY_SPACESTATION_P1378223452711
    [SERVER] SERVER THREAD QUEUE TERMINATED
    [SERVER] SERVER SHUTDOWN. ServerState saved!
    Exception in thread \"ServerController\"
    java.lang.UnsatisfiedLinkError: /data/server5048/home/games/starmade/native/linux/liblwjgl.so: /data/server5048/home/games/starmade/native/linux/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1924)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850)
    at java.lang.Runtime.loadLibrary0(Runtime.java:845)
    at java.lang.System.loadLibrary(System.java:1084)
     
    Joined
    Aug 2, 2013
    Messages
    17
    Reaction score
    0
    Put the server up, I go to work for 6 hours, I come back only to find out, the server crashed 6 hours ago. Last logs before crash. http://pastebin.com/h2rUM65A

    This is getting quite tiresome.
     
    Joined
    Aug 2, 2013
    Messages
    17
    Reaction score
    0
    I dont mean to sound dumb, but can you please explain where im putting this in?
     
    Joined
    Aug 30, 2013
    Messages
    28
    Reaction score
    1
    Für windows :



    SETLOCAL SETLOCAL DISABLEEXTENSIONS
    :loop

    java -Xms512m -Xmx1024m -Xincgc -Xshare:eek:ff -jar StarMade.jar -server

    if %errorlevel% equ 0 (
    ENDLOCAL
    exit
    )


    REM with the ping we can wait ca 4 sek
    ping 127.0.0.1

    goto loop
     
    Joined
    Jun 28, 2013
    Messages
    37
    Reaction score
    3
    Elwyneternity\'s got it too. the only consistency I\'ve seen in console is this:

    [Sep 5, 2013 4:56:50 AM] STDERR: [ERR] [SERVER] (>100) SERVER SECTOR WRITING FINSISHED #102 (0, 6, 0) (ents: 65) took: 184 ms
    [Sep 5, 2013 4:56:51 AM] STDOUT: [OUT] [SERVER] SERVER THREAD QUEUE TERMINATED
    [Sep 5, 2013 4:56:51 AM] STDOUT: [OUT] [SERVER] SERVER SHUTDOWN. ServerState saved!
    [Sep 5, 2013 4:56:53 AM] STDOUT: [OUT] [MAIN] MIGRATION PROCESS DONE
    [Sep 5, 2013 4:56:53 AM] STDOUT: [OUT] [MAIN] STARTING WITH ARGUMENTS: [-server]
    [Sep 5, 2013 4:56:53 AM] STDERR: [ERR]