fastback icon indicating copy to clipboard operation
fastback copied to clipboard

Server crashes on slow disks

Open imzerou opened this issue 2 years ago • 1 comments

Description

Having the world or entire server stored on a slow disk (for example a really old HDD or a USB stick) crashes the server.

Checklist

  • [x] I have searched for duplicate issues
  • [x] The bug is reproducable

Minecraft, Fabric & Fastback version

  • Minecraft 1.19.2
  • Fabric 0.14.21
  • FastBackup 0.7.4 (latest 1.19.2 build, bug should work on versions past 0.7.4 too)

How to reproduce

  • Get a slow USB stick and a 300 MB world
  • Make a local (or even better, a full backup)
  • Wait approximately one minute
  • Crash!

Technical explanation

During a backup FastBackup freezes the server activity by pausing tick updates (may be a unintentional sideeffect). This causes the server to think after ~1 minute that the server is stuck and therefore the Server Watchdog thread crashes the server. Most of the time the backup cannot be completed before the server gracefully shuts down, but the world is saved anyway without triggering another backup.

imzerou avatar Jun 13 '23 18:06 imzerou

Mmm, it's hard to say more about what's going on here without more detail about what exactly Crash! means.

The backup tasks run in their own threads, so I sort of doubt the watchdog is unhappy with them. If you're running on a very underpowered machine, though, it may just be generally having a hard time coping with the load.

If you were to provide more detail I could maybe say more.

pcal43 avatar Aug 14 '23 04:08 pcal43