timvisee / lazymc

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

Server doesn't boot up. #80

Closed tungthechicken closed 3 weeks ago

tungthechicken commented 3 weeks ago

LazyMC couldn't start the server, showing an error code. Starting up the server manually, then join the game via LazyMC works fine. Even when everyone leaves the server, LazyMC was able to shutdown the server. What should I do in this case? Screenshot 2024-08-22 183211

timvisee commented 3 weeks ago

The error in between is problematic. Are you sure you're using a functional server.jar and using the correct Java version?

It may help to give starting the server a try with the same command you specify in lazymc. Lazymc doesn't do anything special, other than just calling that command for you.

tungthechicken commented 3 weeks ago

Hello and thanks for the respone! Using the default generated startup command from "lazymc.toml" java -Xmx1G -Xms1G -jar server.jar --nogui The server works fine. image

I'm currently using Amazon Corretto Java 21 (https://docs.aws.amazon.com/corretto/latest/corretto-21-ug/downloads-list.html) and Vanilla Minecraft version 1.20.3. Same thing happened with PaperMC 1.20.4 with slightly different error code. image

tungthechicken commented 3 weeks ago

So after some tinkering around, I've found out that I just need to change directory = "." to directory = "E:\\New folder" in the lazymc.toml file. Sorry for wasting your precious time!