Automated Backups do not appear to be threadsafe
tharwerth opened this issue · 6 comments
Automated backups appear to be creating lockup conditions (either from a race condition or other file lock) and causing hard server crashes
Pack: Direwolf20 1.20
Version: 1.0.1
How often does this occur?
Was it just once? Or is it a frequent occurrence?
Based on the log you provided, the server seems to be locking up during the world save.
But the way we save the world should theoretically be identical to running the "/save-all flush" command.
The only thing I can think of that may be an issue, is if the server is already in the process of saving.
Could you try manually running the "/save-all flush" command?
That command should lock up the server until the save is complete, Though I can't imagine it taking long enough for the server to timeout.
This started happening to my recently installed Direwolf20 1.20 server. At first the server would just lock up for a few seconds every half hour. Which was irritating but we just waited it out. Now it crashes every time an automated backup tries to run.
crash-2023-10-26_04.00.59-server.txt
It's still happening - not everytime, but in 1 out of 4 cases. JDKDigital/productive-bees#448
Even after removing productivebees mod, it still happened at about backup iteration number 28.