gekware/minecraft-server-hibernation

ctrl+c while ms starting closes msh but not ms

gekigek99 opened this issue ยท 1 comments

Current Behavior (๐Ÿ› Bug)

in title

Expected Behavior

options:

  1. wait ms to startup then stop it
  2. kill ms instantly

Steps to Reproduce

press ctrl+c while server is starting (allowsuspend set to true (don't know if it's related))

MSH Logs

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘  _ __ ___  ___| |__                         โ•‘
โ•‘ | '_ ` _ \/ __| '_ \                        โ•‘
โ•‘ | | | | | \__ \ | | | v2.4.9                โ•‘
โ•‘ |_| |_| |_|___/_| |_| -------               โ•‘
โ•‘ Copyright (C) 2019-2022 gekigek99           โ•‘
โ•‘ github: https://github.com/gekigek99        โ•‘
โ•‘ remember to give a star to this repository! โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
2022/12/01 01:25:06 [info  โ‰ก   ] checking OS support...
2022/12/01 01:25:07 [info  โ‰ก   ] loading config...
2022/12/01 01:25:07 [info  โ‰ก   ] reading config file: "C:\minecraft-server-hibernation\msh\msh-config.json"
2022/12/01 01:25:07 [info  โ‰ก   ] msh instance file exists
2022/12/01 01:25:07 [info  โ‰ก   ] msh instance loaded is healthy
2022/12/01 01:25:07 [info  โ‰กโ‰กโ‰กโ‰ก] setting log level to: 3
2022/12/01 01:25:07 [info  โ‰กโ‰กโ‰ก ] eula.txt exist and is set to true
2022/12/01 01:25:07 [info  โ‰ก   ] msh proxy setup: 0.0.0.0:25555 --> 127.0.0.1:25565
2022/12/01 01:25:07 [info  โ‰ก   ] sending api2 request
2022/12/01 01:25:07 [info  โ‰ก   ] segment reset
2022/12/01 01:25:07 [info  โ‰กโ‰กโ‰ก ] minecraft server will now pre-warm (SuspendAllow is enabled)...
2022/12/01 01:25:07 [info  โ‰ก   ] warming minecraft server...
2022/12/01 01:25:07 [info  โ‰ก   ] scheduling ms soft freeze in 30 seconds
2022/12/01 01:25:07 [info  โ‰ก   ] terminal started
2022/12/01 01:25:07 [info  โ‰กโ‰กโ‰ก ] MINECRAFT SERVER IS STARTING!
2022/12/01 01:25:07 [info  โ‰ก   ] suspension refresher is starting
2022/12/01 01:25:07 [info  โ‰กโ‰กโ‰ก ] listening for new clients to connect on 0.0.0.0:25555 ...
2022/12/01 01:25:07 [info  โ‰ก   ] reading api2 response
2022/12/01 01:25:07 [warn  โ‰กโ‰กโ‰กโ‰ก] sgmMgr: msh (v2.4.9) is running a dev release [01f000]
2022/12/01 01:25:07 [serv  โ‰กโ‰ก  ] Starting net.minecraft.server.Main
2022/12/01 01:25:12 [serv  โ‰กโ‰ก  ] [01:25:12] [ServerMain/INFO]: Building unoptimized datafixer
2022/12/01 01:25:13 [warn  โ‰กโ‰กโ‰ก ] GetInput: stdin unavailable, exiting input goroutine [07f101]
2022/12/01 01:25:13 [info  โ‰ก   ] executing ms force freeze...
2022/12/01 01:25:13 [info  โ‰ก   ] resuming proc tree (pid: [15164 8452])
2022/12/01 01:25:13 [info  โ‰กโ‰กโ‰ก ] EXECUTED PROCESS TREE RESUME!
2022/12/01 01:25:13 [error โ‰กโ‰ก  ] MshMgr: FreezeMS: ResumeStopMS: Execute: checkMSRunning: minecraft server not online [00f201]
2022/12/01 01:25:13 [info  โ‰ก   ] sending api2 request
2022/12/01 01:25:13 [serv  โ‰กโ‰ก  ] [01:25:13] [ServerMain/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
2022/12/01 01:25:14 [info  โ‰ก   ] stop command does not seem to be stopping minecraft server during forceful shutdown
2022/12/01 01:25:14 [info  โ‰กโ‰กโ‰กโ‰ก] exiting msh

and a detached ms keeps running

MSH-Version

2.4.9

Operating system

win 10

Minecraft Version

1.19.2

Minecraft Server Software

vanilla

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details.

fixed in ec65fad