Check for forge/neoforge server hang during startup in Pterodactyl?

I privately host a variety of Minecraft servers (and other games as well) from a dedicated machine that uses the Pterodactyl API to interface with the various docker containers/etc. in which the servers ultimately run. However, for the better part of the past year, any Forge/NeoForge server that I run eventually run into the problem where they'll just randomly lock up midway during startup - but without any clear error as to why in the debug/etc. logs. (e.g., sometimes it'll hang on the typical/harmless "Ambiguity between arguments teleport for player 0123" or whatever lines that often pop up) There's no crash log, no timeout errors, nothing - it will sit hung like that until I kill the process and restart it. Fixing the problem is usually just as simple as killing the process and starting the server again (though sometimes I have to do it twice). I've not been able to discern any pattern or root cause for this. I've tried removing mods that pop up near the hang, and it still continues to happen. None of the fabric or vanilla servers I've run - or other games for that matter - have this problem. I'd like to be able to catch this and automatically kill/restart the server if/when this happens - so I don't have to potentially manually intervene during the daily server restarts - but I'm unaware of any hooks pterodactyl provides to do this, and I haven't gotten any great answers in their support discord. I'll put the tail of one of the latest debug logs where this happened below, but before people jump on the fact that it references a Discord linking mod (sdlink) right before the hang, be aware that I've already tried removing that mod and it still will occasionally hang in roughly that same spot. Any helps/scripts/workarounds folks have found for this would be a lifesaver, thanks!
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?