Server crashes semi-regularly

Running a modded Minecraft server and every once in a while, a tick takes longer than 60 seconds and the server crashes. I have uploaded the crash report for the latest of these occurrences. The server has DH and the crash report does mention a far away chunk but beyond that, I'm not sure what exactly to look for to hunt down the cause. Any assistance appreciated!
35 Replies
Allium
Allium2mo ago
crash-2025-07-12_21.10.25-server.txt uploaded to mclo.gs
Uploaded by thebestmaybe1101
Skillnoob_
Skillnoob_2mo ago
you can disable watchdog by setting max-tick-time in the server.properties to -1
TBM
TBMOP2mo ago
Wouldn't that just kind of be ignoring the problem?
Skillnoob_
Skillnoob_2mo ago
worked on my server :shrug: never caused any issues
TBM
TBMOP2mo ago
Something's still slowing down ticks, it's just that the server will stop doing anything about it lol Ig I can do that as a temporary fix at the very least
Yeshi
Yeshi2mo ago
Are there smaller lag spikes that don't reach 60 sec If so try spark
TBM
TBMOP2mo ago
Will def check that out
Yeshi
Yeshi2mo ago
Finding the cause of lag spikes | spark docs
Lag spikes occur when a small number of ticks (or sometimes just one tick) takes a long time to execute.
TBM
TBMOP2mo ago
Ok the server seems to have stalled or something. I assume this might be the same problem as yesterday, but now max-tick-time has been set to -1 so the server has been allowed to play this problem out instead of crashing due to a tick taking too long
TBM
TBMOP2mo ago
Allium
Allium2mo ago
message.txt uploaded to mclo.gs
Uploaded by thebestmaybe1101
TBM
TBMOP2mo ago
Here's a fragment of the logs
Yeshi
Yeshi2mo ago
did it ever unfreeze? a spark log would be very helpful if so
TBM
TBMOP2mo ago
Nope I've long since timed out but the server thinks I'm still online It seems that the mod connecting the server to a Discord channel still works - messages sent in Discord are being relayed to the logs
TBM
TBMOP2mo ago
There is a mod called Fast Backups which uses Git to backup the world periodically, looking at the errors, maybe that's what's freaking out
Modrinth
Fast Backups - Minecraft Mod
Fast, incremental world backups powered by Git.
TBM
TBMOP2mo ago
[22:19:02] [pool-17-thread-207/INFO]: Starting auto-backup
[22:19:03] [pool-17-thread-207/INFO]: The server is starting a backup.
[22:19:02] [pool-17-thread-207/INFO]: Starting auto-backup
[22:19:03] [pool-17-thread-207/INFO]: The server is starting a backup.
earlier in the logs ^ Backup starting and the mountain of errors are attributed to the same thread in the logs I'll try asking on the Discord for Fast Backups
hardester
hardester2mo ago
Hmm, backing up the server using Git in an online state?
F4U_Corsair
F4U_Corsair2mo ago
How big is your World or how much is pregenerate? I have a similar issue without Fast Backups. In my case I think DH didn´t release my RAM and crash after a period of time. Maybe your problem is different but it seems pretty nearby. How long is the time difference between each crash. In my case with a really big world it is after 1-2 days.
TBM
TBMOP2mo ago
I pregenerated a 256 chunk radius in all 3 dimensions. The time difference is inconsistent. There were several crashes throughout day 1. Then I changed he max-tick-time configuration. It was stable for a full day and froze at the end of day 2. Restarted it, froze again after about 1.5 hours. It's the server's 3rd day now. Been up for about 5 hours now without Fast Backups. The errors seem Fast Backups related to me but it could also be that they are a symptom, rather than a cause
hardester
hardester2mo ago
I would not trust a solution that uses Git for backups on an active file, instead, something like Rsync would be better. With Rsync, it's specially designed to operate on active files. Not a suggestion, but something of note. There's no mod, to my knowledge, that uses Rsync tech for backups.
F4U_Corsair
F4U_Corsair2mo ago
declare variables BCKHOME=/home/backup DAY=$BCKHOME/day HOUR=$BCKHOME/hour MCHOME=/usr/local/minecraft/Fabric WORLDPATH=$MCHOME DATE=date +%Y%m%d-%H%M%S BCK=$HOUR/$DATE LOG=$BCKHOME/backup.log TGZLOG=$BCKHOME/backup_tgz.log DELDATE=date -d "-1 week" +"%Y%m%d" #DEL=$HOUR/$DELDATE main echo "---------------" >> $LOG echo "sync from "$WORLDPATH" to "$BCKHOME >> $LOG echo "/bin/sh/rsync "$WORLDPATH" to "$BCK >> $LOG echo $DATE >> $LOG /usr/bin/rsync -av $WORLDPATH $BCK >> $LOG echo "---------------" >> $LOG /bin/tar -zcvf $BCK.tgz $BCK >> $TGZLOG /bin/rm -rf $BCK This is my Backup skript im using Debian and use these scripts in my crontab I use a similar scrip0t to delete the backups aftzer a period of time
hardester
hardester2mo ago
That's, uh, overkill...
hardester
hardester2mo ago
F4U_Corsair
F4U_Corsair2mo ago
I use day hour and week backups. because of space issues. I tar and zip my backups to minimize the impact. sorry because of the complicaterd script but it worked fine for maybe 7 years or so
TBM
TBMOP2mo ago
Finally got a response from someone on Fast Backup server, it might be a problem with saving Distant Horizons files while they're being written to Folks, I'm back to square one 😭 The server froze again Before the freeze was preceded by a bunch of errors that seemed related to Fast Backup. Now it's been running without Fast Backup and it froze anyway. This time, no errors in logs. None leading up to it that is
TBM
TBMOP2mo ago
Allium
Allium2mo ago
message.txt uploaded to mclo.gs
Uploaded by thebestmaybe1101
TBM
TBMOP2mo ago
Logs leading up to it Timed out waiting for world statistics error from the thread used by Spark begins at one point. From there on out, it's that error every minute with Error sending packet clientbound/minecraft:disconnect sprinkled in
hardester
hardester2mo ago
The LOD file is a single huge file and cannot be made a copy of while the file is actively being written to. I can see why that would trigger an error with Fast Backup.
TBM
TBMOP2mo ago
CPU utilization shot up to 100% at the time of freeze and then flatlined
No description
TBM
TBMOP2mo ago
At this point I'm not even sure where to look for a cause. Spark is of no use by the time the server is frozen
hardester
hardester2mo ago
Hmm, can't seem to make any sense with this log. There's not enough discerning information to go after.
TBM
TBMOP2mo ago
Exactly It just kinda stops at one point For now I'm gonna be setting max-tick-rate back to normal and modifying the start script to auto-restart on crash
TBM
TBMOP2mo ago
I don't know if this is luck or actual progress but this uptime is a record so far
No description
TBM
TBMOP2mo ago
The thing that's different this time: I removed Distant Horizons

Did you find this page helpful?