gekware / minecraft-server-hibernation

Autostart and stop minecraft-server when players join/leave
GNU General Public License v3.0
389 stars 38 forks source link

add flag `errco.SERVER_STATUS_UNRESPONDING` when the server has stopped responding #148

Closed gekigek99 closed 1 year ago

gekigek99 commented 2 years ago

Is there an existing feature request for this?

Describe the feature you would like to see.

diplay in server motd that the server is in a crashed state

Describe the solution you'd like.

set ms major error when flag The server has stopped responding! is read from server stdout

Additional context to this request.

No response

gekigek99 commented 1 year ago

this is the log of the error:

0 online players - method for player count: server info
2022/11/28 18:47:06 [info  ≡≡≡ ] PROCESS TREE SUSPENDED!
2022/11/28 18:49:08 [info  ≡≡≡ ] PROCESS TREE UNSUSPEDED!
2022/11/28 18:49:08 [serv  ≡≡  ] [18:49:08 WARN]: Can't keep up! Is the server overloaded? Running 121938ms or 2438 ticks behind
2022/11/28 18:49:08 [serv  ≡≡  ] [18:49:08 ERROR]: ------------------------------
2022/11/28 18:49:08 [serv  ≡≡  ] [18:49:08 ERROR]: The server has stopped responding! This is (probably) not a Paper bug.
2022/11/28 18:49:08 [serv  ≡≡  ] [18:49:08 ERROR]: If you see a plugin in the Server thread dump below, then please report it to that author
2022/11/28 18:49:08 [serv  ≡≡  ] [18:49:08 ERROR]:       Especially if it looks like HTTP or MySQL operations are occurring
2022/11/28 18:49:08 [serv  ≡≡  ] [18:49:08 ERROR]: If you see a world save or edit, then it means you did far more than your server can handle at once
gekigek99 commented 1 year ago

added in 0f6276a1860f2c88bc5b0d97ce58e2c3135246a0