CB 1.4.7-R1.0 crashes when last player leaves

Discussion in 'Bukkit Help' started by InsaneJ, Jan 31, 2013.

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

    InsaneJ

    Solved
    Problem was on my end. I've made a startup script that has the option to reset a server and/or map when the last player leaves. Guess who forgot to set the variable that disables that function? :oops:

    Sorry for the trouble guys.

    Also created a ticket here, but I'm hoping some people on this forum might know a solution to the following problem.

    CraftBukkit 1.4.7 recommended build without any plugins crashes when the last player leaves the server. If one player remains on the server while another leaves, nothing happens. But if all players leave, the server crashes after the last player has left.

    Server log on pastebin: http://pastebin.com/ph3Ubdgx

    At the time this logfile was created the server had plenty of resources available:
    Code:
    [S]athrun ~ # df -h[/S]
    [S]Filesystem      Size  Used Avail Use% Mounted on[/S]
    [S]rootfs          99G  63G  31G  67% /[/S]
    [S]/dev/root        99G  63G  31G  67% /[/S]
    [S]devtmpfs        11G    0  11G  0% /dev[/S]
    [S]tmpfs            11G  208K  11G  1% /run[/S]
    [S]shm              11G    0  11G  0% /dev/shm[/S]
    [S]cgroup_root      10M    0  10M  0% /sys/fs/cgroup[/S]
    [S]athrun ~ # free -m[/S]
    [S]            total      used      free    shared    buffers    cached[/S]
    [S]Mem:        22016      15721      6294          0        236      1292[/S]
    [S]-/+ buffers/cache:      14192      7823[/S]
    [S]Swap:            0          0          0[/S]
    

    Filesystem permissions had been set to 775 in order to exclude those from probable causes.

    Some more info:
    Operating System: Linux (amd64) version 3.3.8-gentoo
    Java Version: 1.7.0_03, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1950513224 bytes (1860 MB) / 2058027008 bytes (1962 MB) up to 3817799680 bytes (3640 MB)
    JVM Flags: 2 total; -Xmx4096M -Xms2048M
     
  2. Offline

    TnT

    What program are you using to run your server? What is the full line you use to start the server?
     
  3. Offline

    InsaneJ

    Solved, see OP

    I start my servers using a PHP script that I also use to query/monitor the server and restart it if it doesn't respond to queries for more then a minute.

    Code:
    [U]screen -dmS ' . $USERNAME . ' java -Xmx4096M -Xms2048M -jar /home/' . $USERNAME . '/' . $USERNAME . '.jar nogui'[/U]
    Where $USERNAME can be something like 'minecraft_servername'

    This let's each Minecraft instance run in it's own screen with it's own screen name.
     
Thread Status:
Not open for further replies.

Share This Page