Ascii Bukkit Menu not starting server #10


  • Defect
  • Replied
Open
Assigned to _ForgeUser7863716
  • _ForgeUser7302677 created this issue Apr 1, 2012

    What steps will reproduce the problem?
    1. New install on Ubuntu 11.10
    2. run abm.sh
    3. Menu launches but server does not.
    4. Attempting to start server from option 1 informs that server is running
    5. ABM hangs when attempting to restart or shutdown

    What is the expected output? What do you see instead?
    The expected output as I understand is that ABM launches the server when it starts.

    What version of the product are you using?
    0.2.7

    Do you have an error log of what happened?
    This is the output when AMB is started.
    http://i.imgur.com/7esEs.png
    http://i.imgur.com/slfRP.png

    Please provide any additional information below.
    This issue was also mentioned here: http://dev.bukkit.org/server-mods/ascii-bukkit-menu/tickets/5-will-not-start-the-craftbukkit-server/

    I have checked the solution mentioned in this thread and found that Ascii-Bukkit-Menu/include/config/vars shows cbfile=craftbukkit*.jar as mentioned in the solution to that thread. Issue is still occurring.

    Java version is 1.6.0_26

    jargs="-Xincgc -Xmx200m"

    if the server is started with the command 'java -Xincgc -Xmx200M -jar craftbukkit.jar' it runs correct, if in the foreground.

    Please let me know if any more information is needed.

  • _ForgeUser7302677 added the tags New Defect Apr 1, 2012
  • _ForgeUser5803084 posted a comment Apr 1, 2012

    Can you give me the output of this command (in your terminal): ps -ef |grep -i craftbukkit* |grep -v grep |awk '{ print $2 }'

    I can't replicate the issue :(

  • _ForgeUser5803084 removed a tag New Apr 1, 2012
  • _ForgeUser5803084 added a tag Waiting Apr 1, 2012
  • _ForgeUser7302677 posted a comment Apr 2, 2012

    The return is the following

    7752 7753

  • _ForgeUser7302677 removed a tag Waiting Apr 2, 2012
  • _ForgeUser7302677 added a tag Replied Apr 2, 2012
  • _ForgeUser5803084 posted a comment Apr 2, 2012

    Can you also give me the output of this command please?
    ps -ef |grep -i craftbukkit* |grep -v grep

    Also these commands:
    ps -ef |grep -i craftbukkit |grep -v grep
    ps -ef |grep -i craftbukkit |grep -v grep | grep java


    Edited Apr 2, 2012
  • _ForgeUser5803084 removed a tag Replied Apr 2, 2012
  • _ForgeUser5803084 added a tag Waiting Apr 2, 2012
  • _ForgeUser7302677 posted a comment Apr 2, 2012

    These all returned nothing :(

  • _ForgeUser7302677 removed a tag Waiting Apr 2, 2012
  • _ForgeUser7302677 added a tag Replied Apr 2, 2012
  • _ForgeUser5803084 posted a comment Apr 2, 2012

    @wecutourvisions: Go

    If the first one returned the PID's, these commands (except for the last one - possibly) should have returned MORE information.

  • _ForgeUser5803084 posted a comment Apr 3, 2012

    @wecutourvisions: Go

    Please try the following (this worked for me to eliminate multiple PID's that weren't the server PID).

    In your functions.sh file (Ascii-Bukkit-Menu/include/scripts/functions.sh) please change this function: checkServer () to reflect the following (If you prefer a new functions.sh file, let me know, I'll pastebin/upload one):

    checkServer () {
    MCPID=`ps -ef |grep -i craftbukkit* |grep -v grep |grep java |awk '{ print $2 }'`
    }


    Edited Apr 3, 2012
  • _ForgeUser5803084 removed a tag Replied Apr 3, 2012
  • _ForgeUser5803084 added a tag Waiting Apr 3, 2012
  • _ForgeUser5803084 posted a comment Apr 9, 2012

    @wecutourvisions: Go

    Have you tried the fix I mentioned?

  • _ForgeUser5803084 removed a tag Replied Apr 9, 2012
  • _ForgeUser5803084 added a tag Waiting Apr 9, 2012
  • _ForgeUser8613257 posted a comment Jun 10, 2012

    @TnTBass: Go

    @TnTBass @wecutourvisions

    Hi, I spent a couple hours trying to figure out this same problem and ending up at the same function.

    I found that ABM initially detected, for a couple seconds, that the server wasn't running (no "craftbukkit" in processes), but as soon a the log.sh script is executed it creates a tail -f process that very likely has "craftbukkit" in its process cmd path if the server.log file is in the craftbukkit/ directory.

    This tricks ABM into thinking it's a craftbukkit server process, refusing to start a new one and unable to shut it down.

    So I end up changing it with this instead :

    checkServer () { MCPID=`ps -ef | grep -i craftbukkit* | grep -vs 'grep' | grep -vs 'log' | awk '{ print $2 }'` }

    I added -s to grep to silence it when it finds nothing (when server is not running).

    ABM and server start/stop work fine now but I get an occasional "server.log file truncated" message which stops ABM start/stop commands. I just reiterate the command and everything returns to normal, not clean but I'll look into that later.

    CraftBukkit 1.2.5-R4.0 ABM 0.2.7 Ubuntu Server 12.04


    Edited Jun 10, 2012
  • _ForgeUser8613257 removed a tag Waiting Jun 10, 2012
  • _ForgeUser8613257 added a tag Replied Jun 10, 2012
  • _ForgeUser5803084 posted a comment Jul 3, 2012

    <<reply 749874>>

    We love pull requests. :)

  • _ForgeUser8986897 posted a comment Jul 12, 2012

    Hello ! I had exactly same problem ! After I make the changes in Ascii-Bukkit-Menu/include/scripts/functions.sh

    checkServer () {
    MCPID=`ps -ef |grep -i craftbukkit* |grep -v grep |grep java |awk '{ print $2 }'`
    }
    

    I can now start the server and I can see the server log in real time ! Indeed Build and Plugins show Build: Loading... Plugins Loading ...

    The problem is if I try to stop or restart server : it freezes the console ! If you need the output of

    ps -ef |grep -i craftbukkit* |grep -v grep
    ps -ef |grep -i craftbukkit |grep -v grep
    ps -ef |grep -i craftbukkit |grep -v grep | grep java
    

    you can find it there, on pastebin.

  • _ForgeUser8986897 posted a comment Jul 14, 2012

    Suddenlly ! Right now 2012/07/15 ! ! ALL IS WORKING Fine ! I didn't do anything :D Thank you for your work and for sharing ! :=)


    Edited Jul 14, 2012

To post a comment, please login or register a new account.