minecraft-server icon indicating copy to clipboard operation
minecraft-server copied to clipboard

Minecraft server stops without any reason

Open CommanderRedYT opened this issue 1 year ago • 1 comments

After leaving the server for the day, I always come back to it being stopped the next day. I disabled idle server, but it still keeps happening.

The last line in the latest.log file in the minecraft directory is "Server empty for 60 seconds, pausing", not sure if related.

This is very frustrating as I am currently trying to pre-render chunks in dynmap of a quite large world which takes plenty of time, so I would prefer it if it also would run without me being on the server.

All unit files are enabled and I did not restart the host.

CommanderRedYT avatar Feb 06 '25 21:02 CommanderRedYT

Thank you for reporting this issue. I am not sure how this can happen without the idle server ever having been enabled. In theory this line should forbid the execution of the idle server if it is disabled.

I suspect either the idle server is not properly disabled or you enabled it once, left the server running, and only then disabled it so the new config value could not take effect. To check for the former, you could add a simple echo statement to the script at the previously mentioned location. To check for the latter, shut down the server and kill all processes by the user to make sure that no idle server survived, then spin it back up again (or enable the idle server again, stop the server, and then disable the idle server again before starting the server anew).

Edenhofer avatar Feb 08 '25 02:02 Edenhofer