timvisee / lazymc

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

sometimes server refuses to turn off #15

Closed ventoryprod closed 2 years ago

ventoryprod commented 2 years ago

Hi again, Recently, I have begun to notice that the server may stop shutting down, specifically this happened for the third time in a week.

Снимок экрана 2021-12-02 в 19 26 12

Can this happen because of plugins, or is it a lazymc error?

timvisee commented 2 years ago

That is really unfortunate.

Are you running on Windows?

If stopping through RCON fails it'll wait a while before trying again, that is to prevent issues with concurrent stop invocations. If that happens it may show the 'no more suitable stopping method' warning.

It seems the Minecraft RCON implementation is very glitchy and troublesome. I'm afraid this can't be fixed without having access to the Minecraft source code.

There is no other way (that I know of) to use as backup to gracefully stop the server on the Windows platform.

ventoryprod commented 2 years ago

Are you running on Windows?

Mac M1, but in about few days i will upgrade my PC and I'll move server on Windows.

There is no other way (that I know of) to use as backup to gracefully stop the server on the Windows platform.

Well it's ok if there is no way to fix this, I will close issue then?

timvisee commented 2 years ago

Mac M1, but in about few days i will upgrade my PC and I'll move server on Windows.

I expect better results on macOS versus Windows, because macOS supports the SIGTERM termination method, Windows does not.

Well it's ok if there is no way to fix this, I will close issue then?

Yes, it's a sad situation. I did some further investigation but didn't anything that could improve the situation. The Minecraft server sometimes simply just refuses to stop for an unknown reason.