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

Server is failing on startups in k3s

Open vutratenko opened this issue 7 years ago • 3 comments

Hello,

For some reason, server is being shut down on startup by rcon-cli without any manual actions when I'm trying to launch it in k3s (k8s implementation by Rancher):

` Checking type information.

server.properties already created, skipping

Checking for JSON files.

Copying any mods over...

Setting initial memory to 1G and max to 1G

Starting the Minecraft server...

[09:11:47] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]

[09:11:47] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]

[09:11:47] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]

[09:11:47] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]

[09:11:47] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]

2019/10/26 09:11:48 Stopping with rcon-cli

2019/10/26 09:11:48 ERROR Failed to stop using rcon-cli exit status 1

2019/10/26 09:11:48 Sending 'stop' to Minecraft server...

2019/10/26 09:11:48 Waiting for completion...

[09:11:48] [Server thread/INFO]: Starting minecraft server version 1.14.4

[09:11:48] [Server thread/INFO]: Loading properties

[09:11:48] [Server thread/INFO]: Default game type: SURVIVAL

[09:11:48] [Server thread/INFO]: Generating keypair

[09:11:49] [Server thread/INFO]: Starting Minecraft server on *:25565

[09:11:50] [Server thread/INFO]: Using epoll channel type

[09:11:50] [Server thread/INFO]: Preparing level "world"

[09:11:51] [Server thread/INFO]: Found new data pack vanilla, loading it automatically

[09:11:51] [Server thread/INFO]: Reloading ResourceManager: Default

[09:11:59] [Server thread/INFO]: Loaded 6 recipes

[09:12:00] [Server thread/INFO]: Loaded 811 advancements `

Is there any Idea what might be a reason of this?

vutratenko avatar Oct 26 '19 09:10 vutratenko

Hello, It doesn't look like it has anything to do with rcon-cli. When I do docker stop [containerName] I see the same message. Looks like something else is stopping container itself.

wlp7s0 avatar Oct 26 '19 11:10 wlp7s0

Yeah, any container stop operation is intercepted and handled with a stop command. So I agree, something is stopping the container prematurely. Maybe there’s a default readiness probe k3s uses or resources constraint it imposes.

itzg avatar Oct 26 '19 14:10 itzg

Thanks all, the reason was in readiness/liveness probes. I've increased timeouts and everything works well now :)

vutratenko avatar Oct 27 '19 08:10 vutratenko