[SPIGOT-7026] Server crashing at saving chunks Created: 29/May/22  Updated: 25/Dec/24

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Name Krator Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: 1.18.1, SavingChunks, crash, java17, spigot, stop
Environment:

Linux server


Issue Links:
Duplicate
duplicates SPIGOT-6521 Error When Saving Dimensions on Serve... Resolved
is duplicated by SPIGOT-7033 Error at stoping the server Closed
is duplicated by SPIGOT-7156 Server crash Closed
Version: This server is running CraftBukkit version 3443-Spigot-699290c-2c1e499 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

First I created a Spigot 1.18.1 Server Jar with BuildTools

Then I started The Server, accepted the EULA and so on. After it generated the worlds, I wanted to stop the Server and then it crashed.

Log: https://pastebin.com/RXqTM98F

The Server has no plugins, the only change I made is increasing the Timeout-Time in spigot.yml. As starting script I use:

/usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xms4G -Xmx6G -jar spigot-1.18.1.jar nogui

Server has around 40GB free disk space



 Comments   
Comment by Name Krator [ 31/May/22 ]

I think I kinda solved it.

I just increased the timeout-time to 5 mins in the spigot.yml (120s wasn't enough).

 

I think what happened was that the hard drive of the server is not fast enough to save the worls in 60s.

 

Here some outputs:

 

[20:56:43] [Server thread/INFO]: Stopping the server
[20:56:43] [Server thread/INFO]: Stopping server
[20:56:43] [Server thread/INFO]: Saving players
[20:56:43] [Server thread/INFO]: Saving worlds
[20:56:43] [Server thread/INFO]: Saving chunks for level 'ServerLevel[survival]'/minecraft:overworld
[20:59:04] [Server thread/INFO]: Saving chunks for level 'ServerLevel[survival_nether]'/minecraft:the_nether
[20:59:08] [Server thread/INFO]: Saving chunks for level 'ServerLevel[survival_the_end]'/minecraft:the_end
[20:59:09] [Server thread/INFO]: ThreadedAnvilChunkStorage (survival): All chunks are saved
[20:59:09] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[20:59:09] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[20:59:09] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved

Comment by Name Krator [ 29/May/22 ]

Did it.
Building: /usr/lib/jvm/java-17-openjdk-amd64/bin/java -jar BuildTools.jar --rev 1.18.2

Start: /usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xms4G -Xmx6G -jar spigot-1.18.2.jar nogui

Log: https://pastebin.com/9sfAAn5h

Comment by Black Hole [ 29/May/22 ]

Please try to reproduce with a recent version of 1.18.2. There are some fixes to chunk saving.

Generated at Sat Apr 05 10:22:53 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.