msmhq / msm

An init script for managing Minecraft servers
http://msmhq.com
GNU General Public License v3.0
1.22k stars 225 forks source link

server not stopping #238

Open hyjack3 opened 10 years ago

hyjack3 commented 10 years ago

my server seems to be off, yet when i type in msm [name] status it says it is running.

so i type msm [name] stop and this is all that happens

root@minecraft:~# msm bohannan stop Issued the warning "SERVER SHUTTING DOWN IN 10 SECONDS!" to players. Shutting down... Now. Forcing save... Done. Stopping the server...

constantly!

please help

zachlatta commented 10 years ago

Can you give us a reproducible step-by-step example?

shaneknysh commented 10 years ago

I am not certain if I have the same issue or not but I am seeing a similar pattern and message display.

On my pre-existing servers (Minecraft Server Manager 0.8.16 Beta) when I stop a server it takes 5-15 seconds and the server stops. On a new install the server stop command hangs after a 2-3 seconds after printing Stopping the server... Remove dead screens with 'screen -wipe'.

I've let it run for up to 15 minutes. I have to cancel the command the kill the process to stop the server.

No error is listed in the logs or displayed in the terminal. I get the same results with both the [now] parameter used or omitted.

jes49 commented 10 years ago

I have the same problem on Ubuntu 12.04.3 and installed msm using the auto-install instructions. I created a server with the default settings and started it. It created a 1.5.2 server with the default URL. I changed the default jargroup minecraft URL to the one for 1.7.4: "https://s3.amazonaws.com/Minecraft.Download/versions/1.7.4/minecraft_server.1.7.4.jar"

Then I stopped the minecraft server, updated the jargroup file to get 1.7.4, changed the server setting to get the new server jar, and started the server. I was then able to connect to the server instance just fine and it generated everything correctly and normally. So, I tested rebooting the Ubuntu server. After the reboot, the server appears on the multi-player list, but I cannot connect to it. I checked the logs and I see this:

2014-01-03 00:30:08 [INFO] /192.168.1.6:52623 lost connection 2014-01-03 00:30:09 [INFO] /192.168.1.6:52627 lost connection 2014-01-03 00:30:26 [INFO] Stopping the server 2014-01-03 00:30:26 [INFO] Stopping server 2014-01-03 00:30:26 [INFO] Closing listening thread 2014-01-03 00:30:26 [INFO] Saving players 2014-01-03 00:30:26 [INFO] Saving worlds 2014-01-03 00:30:26 [INFO] Saving chunks for level 'world'/Overworld 2014-01-03 00:30:26 [INFO] Saving chunks for level 'world'/Nether 2014-01-03 00:30:26 [INFO] Saving chunks for level 'world'/The End

everything looks fine there. I check ps for java running:

/usr/java/jre1.7.0_45/bin/java -Xms1536M -Xmx2048M -jar minecraft_server.jar nogui

ok... I check msm for a server running:

[INACTIVE] "Bob_the_Builder" is stopped. Everything is OK.

That's it, though. Ok, why is java running, then?

Well, previously I had started using a different script to get a server going using a script. I stop that daemon that kept restarting the killed processes and then removed it. Then I could start my other server and it ran correctly, but it still doesn't think that the server is started.