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

Autostop don't work on modpack ATM6

Open DewDrop-99 opened this issue 3 years ago • 8 comments

Describe the problem

After the server starts the listener for autoserver stop don't appear in console. In other 4 modpack that I have the autostop works perfectly.

The modpack is All the mods 6

DewDrop-99 avatar Jul 20 '22 00:07 DewDrop-99

Can you provide your container config?

itzg avatar Jul 21 '22 01:07 itzg

I use it on Unraid so the container config are the following:

image

DewDrop-99 avatar Jul 21 '22 20:07 DewDrop-99

1 week later the issue still persists. Maybe it's some mod creating the conflict since I don't have this problem with other modpacks. There is some debugging variable that I can enable to see if I can find the error?

DewDrop-99 avatar Jul 30 '22 10:07 DewDrop-99

If you could pull the latest image there is now DEBUG_AUTOSTOP that can be set to true. That will output more logs to reveal more of what it is trying. Also note that the default for AUTOSTOP_TIMEOUT_INIT is 30 minutes...had to lower that to 30 seconds for my testing.

itzg avatar Jul 30 '22 17:07 itzg

The debug log is the following:

  • :
  • isTrue true
  • local oldState ++ shopt -po xtrace
  • oldState='set -o xtrace'
  • shopt -u -o xtrace
  • return 0
  • log 'DEBUG: autostop state = INIT'
  • local oldState ++ shopt -po xtrace
  • oldState='set -o xtrace'
  • shopt -u -o xtrace
  • case X$STATE in
  • mc_server_listening
  • mc-monitor status --host localhost --port 25565 --timeout 10s [init] DEBUG: autostop state = INIT
  • sleep 10

DewDrop-99 avatar Jul 31 '22 16:07 DewDrop-99

Really need to see all the container logs, but at least the ones through the line that says "Starting Minecraft server on".

itzg avatar Jul 31 '22 23:07 itzg

Here they are with two server boot's. The last player left the game at [04:19:42] and I manually stopped the server at [08:28:46] .

The second boot started at [08:38:39]

Contailerlog.log

DewDrop-99 avatar Aug 01 '22 08:08 DewDrop-99

Thanks. Still a mystery unfortunately since I see the correct message from the server binding on all interfaces:

[23:36:32] [Server thread/INFO] [minecraft/DedicatedServer]: Starting Minecraft server on *:25565 

and the server ping is going to the same port:

+ mc-monitor status --host localhost --port 25565 --timeout 10s                                     "time":{"2022-07-30T22:36:33.208538047Z"}

...but it's like the server itself is not responding to the status pings.

itzg avatar Aug 01 '22 13:08 itzg

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.

github-actions[bot] avatar Sep 01 '22 02:09 github-actions[bot]