This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
What steps will reproduce the problem?1. New install on Ubuntu 11.102. run abm.sh3. Menu launches but server does not.4. Attempting to start server from option 1 informs that server is running5. 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.pnghttp://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.
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 :(
The return is the following
7752 7753
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
These all returned nothing :(
@wecutourvisions: Go
If the first one returned the PID's, these commands (except for the last one - possibly) should have returned MORE information.
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 }'` }
Have you tried the fix I mentioned?
@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
<<reply 749874>>
We love pull requests. :)
Hello ! I had exactly same problem ! After I make the changes in Ascii-Bukkit-Menu/include/scripts/functions.sh
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.
Suddenlly ! Right now 2012/07/15 ! ! ALL IS WORKING Fine ! I didn't do anything :D Thank you for your work and for sharing ! :=)
To post a comment, please login or register a new account.