mojira.dev
MC-139758

Stopping the server doesn't work

Hi. I have a VPS where i play all the minecraft versions and this is the first snapshot dont wont to stop, when i type stop in the console. Thank you.


From MC-142040:

The bug

Server won't close with enabled GS4 listener on stop command.
What I expected to happen was...:
Server stops and exit after "stop" command on console
What actually happened was...:
Server hangs and won't exit after:

[19:41:33] [Server thread/INFO]: Saving chunks for level 'world'/minecraft:overworld
[19:41:33] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[19:41:33] [Server thread/INFO]: Saving chunks for level 'world'/minecraft:the_end
[19:41:33] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[19:41:33] [Server thread/INFO]: Saving chunks for level 'world'/minecraft:the_nether
[19:41:33] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved

How to reproduce

  1. Enable query port in server.properties.

    enable-query=true
  2. Start server

    [19:46:58] [Server thread/INFO]: Done (8.822s)! For help, type "help"
    [19:46:58] [Server thread/INFO]: Starting GS4 status listener
    [19:46:59] [Query Listener #1/INFO]: Query running on 0.0.0.0:25565
  3. Enter stop command

    [19:47:06] [Server thread/INFO]: Stopping the server
    [19:47:06] [Server thread/INFO]: Stopping server
    [19:47:06] [Server thread/INFO]: Saving players
    [19:47:06] [Server thread/INFO]: Saving worlds
    [19:47:06] [Server thread/INFO]: Saving chunks for level 'world'/minecraft:overworld
    [19:47:07] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
    [19:47:07] [Server thread/INFO]: Saving chunks for level 'world'/minecraft:the_nether
    [19:47:07] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
    [19:47:07] [Server thread/INFO]: Saving chunks for level 'world'/minecraft:the_end
    [19:47:07] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved

    → Server hangs and won't exit (java proccess is still alive).

Linked issues

Attachments

Comments 26

Please attach the crash report ([minecraft|http://hopper.minecraft.net/help/finding-minecraft-data-folder]/crash-reports/crash-<DATE>-client.txt), otherwise we can not diagnose this issue.
For technical support please use the Mojang Support Center.

-- I am a bot. This action was performed automagically!

I cant do that cose is a VPS not single player and get stack and i need to reboot. I add a photo. Thankyou.

 

Warren Liddell

Running 18w47a on my dedicated server box i encounter the exact same issue on a brand new generated world using this snapshot, when i try and restart the server the log shows nothing unusual but it refuses to restart and then i need to manually kill the PID of the process in order for the server to restart.

Attached is a screenshot of the entire log

Same issue: when typing stop, the console was stuck on "all chunks are saved" and I had to manually kill it.

The same problem with 18w47b.

16 more comments
Stephan Ihling

Still in 19w03b

Stephan Ihling

also in 19w03c

 

Stephan Ihling

This error also occurs when rcon is enabled.

enable-rcon=true

 

Stephan Ihling

19w04a affected

 

Stephan Ihling

19w04b affected

Antonio David

boq

Confirmed

Minecraft 18w47a, Minecraft 18w47b, Minecraft 18w48a, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 19w03c, Minecraft 19w04b

Minecraft 19w05a

Retrieved