timvisee / lazymc

💤 Put your Minecraft server to rest when idle.
GNU General Public License v3.0
579 stars 16 forks source link

Server start takes too long lazymc timesout #29

Closed Nullvoid3771 closed 2 years ago

Nullvoid3771 commented 2 years ago

Server start takes too long lazymc timesout, running direwolf20 and it has a lot of mods so server start takes awhile that lazymc times out and kills the server start.

Anyway to fix this?

ERROR lazymc::montior > Force killing server, took too long to start or stop WARN lazymc > Server process stopped with error code (signal: 9) ERROR lazymc::montior > Force killing server, took too long to start or stop WARN lazymc > Failed to force kill server INFO lazymc::monitor > Server is now sleeping

timvisee commented 2 years ago

You can set

[server]
start_timeout = 900

to a higher number. Please see:

https://github.com/timvisee/lazymc/blob/c6f860f01332d15481924e32d684b6f2f5b600b8/res/lazymc.toml#L50

Nullvoid3771 commented 2 years ago

Thank you! Sorry I missed that configuration, but you definitely helped. Lazymc is exactly what I needed for my Minecraft server running off my nas. This game is ram hungry even when people aren’t in the server so having the ability to start the mc server only when needed is a big plus.

timvisee commented 2 years ago

Awesome to hear! Happy to see you find it useful. 😄