Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adobt :Server empty for 60 seconds, pausing #3183

Open
tiandaoyuxi opened this issue Dec 9, 2024 · 4 comments
Open

adobt :Server empty for 60 seconds, pausing #3183

tiandaoyuxi opened this issue Dec 9, 2024 · 4 comments

Comments

@tiandaoyuxi
Copy link

Describe the problem

2024-12-09 10:29:52 [init] Running as uid=1000 gid=1000 with /data as 'drwxr-x--- 7 1000 1000 4096 Dec 9 02:04 /data'
2024-12-09 10:29:52 [init] Resolving type given VANILLA
2024-12-09 10:29:55 [init] Resolved version given LATEST into 1.21.4
2024-12-09 10:29:56 [mc-image-helper] 02:29:56.380 INFO : Created/updated 1 property in /data/server.properties
2024-12-09 10:29:56 [init] Setting initial memory to 1G and max to 1G
2024-12-09 10:29:56 [init] Starting the Minecraft server...
2024-12-09 10:29:56 Starting net.minecraft.server.Main
2024-12-09 10:29:59 [02:29:59] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
2024-12-09 10:29:59 [02:29:59] [ServerMain/INFO]: Loaded 1370 recipes
2024-12-09 10:29:59 [02:29:59] [ServerMain/INFO]: Loaded 1481 advancements
2024-12-09 10:29:59 [02:29:59] [Server thread/INFO]: Starting minecraft server version 1.21.4
2024-12-09 10:29:59 [02:29:59] [Server thread/INFO]: Loading properties
2024-12-09 10:29:59 [02:29:59] [Server thread/INFO]: Default game type: SURVIVAL
2024-12-09 10:29:59 [02:29:59] [Server thread/INFO]: Generating keypair
2024-12-09 10:29:59 [02:29:59] [Server thread/INFO]: Starting Minecraft server on *:25565
2024-12-09 10:30:00 [02:30:00] [Server thread/INFO]: Using epoll channel type
2024-12-09 10:30:00 [02:30:00] [Server thread/INFO]: Preparing level "world"
2024-12-09 10:30:00 [02:30:00] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
2024-12-09 10:30:00 [02:30:00] [Worker-Main-2/INFO]: Preparing spawn area: 0%
2024-12-09 10:30:00 [02:30:00] [Server thread/INFO]: Time elapsed: 367 ms
2024-12-09 10:30:00 [02:30:00] [Server thread/INFO]: Done (0.525s)! For help, type "help"
2024-12-09 10:30:00 [02:30:00] [Server thread/INFO]: Starting remote control listener
2024-12-09 10:30:00 [02:30:00] [Server thread/INFO]: Thread RCON Listener started
2024-12-09 10:30:00 [02:30:00] [Server thread/INFO]: RCON running on 0.0.0.0:25575
2024-12-09 10:30:21 [02:30:21] [Server thread/INFO]: tiandao (/172.17.0.1:53550) lost connection: Disconnected
2024-12-09 10:31:00 [02:31:00] [Server thread/INFO]: Server empty for 60 seconds, pausing

image
image

image
"Output": "localhost:25565 : version=1.21.4 online=0 max=20 motd='A Minecraft Server'\n"

Container definition

Paste run command or compose file here

Container logs

Paste logs here
@itzg
Copy link
Owner

itzg commented Dec 9, 2024

That's a feature Mojang introduced

https://www.minecraft.net/fr-ca/article/minecraft-snapshot-24w33a#:~:text=new%20server.properties%20option%3A%20pause%2Dwhen%2Dempty%2Dseconds "New server.properties option: pause-when-empty-seconds"

Configure it with the env var PAUSE_WHEN_EMPTY_SECONDS documented here

https://docker-minecraft-server.readthedocs.io/en/latest/configuration/server-properties/#other-server-property-mappings

@tiandaoyuxi
Copy link
Author

tiandaoyuxi commented Dec 9, 2024

THX,
My problem is not“[02:31:00] [Server thread/INFO]: Server empty for 60 seconds, pausing”
But rather “2024-12-09 10:31:45 [02:31:45] [Server thread/INFO]: tiandao (/172.17.0.1:40542) lost connection: Disconnected”

@tiandaoyuxi
Copy link
Author

tiandaoyuxi commented Dec 9, 2024

image

image
2024-12-09 11:33:26 2024-12-09T03:33:26.051Z INFO mc-server-runner Done
2024-12-09 11:35:27 [init] Running as uid=1000 gid=1000 with /data as 'drwxr-x--- 7 1000 1000 4096 Dec 9 02:04 /data'
2024-12-09 11:35:27 [init] Resolving type given VANILLA
2024-12-09 11:35:30 [init] Resolved version given LATEST into 1.21.4
2024-12-09 11:35:30 [mc-image-helper] 03:35:30.780 INFO : Created/updated 1 property in /data/server.properties
2024-12-09 11:35:30 [init] Setting initial memory to 1G and max to 1G
2024-12-09 11:35:30 [init] Starting the Minecraft server...
2024-12-09 11:35:30 Starting net.minecraft.server.Main
2024-12-09 11:35:33 [03:35:33] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
2024-12-09 11:35:34 [03:35:34] [ServerMain/INFO]: Loaded 1370 recipes
2024-12-09 11:35:34 [03:35:34] [ServerMain/INFO]: Loaded 1481 advancements
2024-12-09 11:35:34 [03:35:34] [Server thread/INFO]: Starting minecraft server version 1.21.4
2024-12-09 11:35:34 [03:35:34] [Server thread/INFO]: Loading properties
2024-12-09 11:35:34 [03:35:34] [Server thread/INFO]: Default game type: SURVIVAL
2024-12-09 11:35:34 [03:35:34] [Server thread/INFO]: Generating keypair
2024-12-09 11:35:34 [03:35:34] [Server thread/INFO]: Starting Minecraft server on *:25565
2024-12-09 11:35:34 [03:35:34] [Server thread/INFO]: Using epoll channel type
2024-12-09 11:35:34 [03:35:34] [Server thread/INFO]: Preparing level "world"
2024-12-09 11:35:34 [03:35:34] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
2024-12-09 11:35:35 [03:35:35] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2024-12-09 11:35:35 [03:35:35] [Server thread/INFO]: Time elapsed: 412 ms
2024-12-09 11:35:35 [03:35:35] [Server thread/INFO]: Done (0.560s)! For help, type "help"
2024-12-09 11:35:35 [03:35:35] [Server thread/INFO]: Starting remote control listener
2024-12-09 11:35:35 [03:35:35] [Server thread/INFO]: Thread RCON Listener started
2024-12-09 11:35:35 [03:35:35] [Server thread/INFO]: RCON running on 0.0.0.0:25575
2024-12-09 11:36:35 [03:36:35] [Server thread/INFO]: Server empty for 60 seconds, pausing
2024-12-09 11:37:10 [03:37:10] [Server thread/INFO]: tiandao (/172.17.0.1:59482) lost connection: Disconnected

@itzg
Copy link
Owner

itzg commented Dec 9, 2024

Contact Mojang about that. The docker container is only running their software at that point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants