Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crashes on slow disks #202

Open
2 tasks done
JeremyStarTM opened this issue Jun 13, 2023 · 1 comment
Open
2 tasks done

Server crashes on slow disks #202

JeremyStarTM opened this issue Jun 13, 2023 · 1 comment
Labels
question Further information is requested

Comments

@JeremyStarTM
Copy link

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

  • I have searched for duplicate issues
  • 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.

@JeremyStarTM JeremyStarTM changed the title Server crash on slow disks Server crashes on slow disks Jun 13, 2023
@pcal43
Copy link
Owner

pcal43 commented Aug 14, 2023

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 pcal43 added the question Further information is requested label Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants