When I do /stop, my server console will not close. It saves and all that, then I have to cmd-opt-esc (open force quit menu) and force quit the console. When I restart it, everything is saved, but the only problem is that force-quitting just does not feel right. I'll edit this if it comes out not saving. I am running a mac OSX Mountain Loin. Thanks.
P.s. It closes normally if there is no one on the server.
CONSOLE OUTPUT:
[11:22:39 INFO]: Stopping server
[11:22:39 INFO]: Saving players
[11:22:39 INFO]: Saving worlds
[11:22:39 INFO]: Saving chunks for level 'New Creative Server Photos'/Overworld
[11:22:40 INFO]: Saving chunks for level 'New Creative Server Photos'/Nether
[11:22:40 INFO]: Saving chunks for level 'New Creative Server Photos'/The End
[11:22:40 INFO]: Stopping server
at the 'Stopping server' part it does nothing else and won't close unless I force quit the console.
Linked issues
duplicates 1
Comments 27
I can confirm this is an issue. The console output is the same except it doesn't exit.
SIGTERM is ignored so I have to SIGKILL.
Tested on:
CentOS 6.5
openjdk version "1.8.0-internal"
OpenJDK Runtime Environment (build 1.8.0-internal-0)
OpenJDK 64-Bit Server VM (build 25.0-b57-internal, mixed mode)
I just did a few tests and it only happens if people are still connected when you do /stop. Entering the command into an empty server (i.e. 0 players online) will successfully exit.
Also confirmed on:
Kubuntu 14.04
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
Also happens for me on latest (32b, 32c crashes everyone for me) when there are online players.
This makes zero-maintenance batch-restarters useless, because when I remotely /stop I'm still online and it locks up, requiring me to get to the physical machine.
If command blocks could /stop, this would have a workaround.
A usable workaround, though, would be to have a sniffer program look up a magic word on server log files and kill java when it finds that.
Was this fixed? I am currently using a sniffer to manually kill the server due to being unable to stop from inside.
According to MC-72806 it's fixed.
Also I can not reproduce it in 1.8.1-pre3 any more while I can in earlier versions.
It's fixed 🙂
Resolved as duplicate of MC-72806
Cannot confirm, getting that in the console:
Please attach your console output after issuing "stop"