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

Server looping on start - loops at "Downloading Bedrock server version 1.19.31.01"

Open lexiismadd opened this issue 3 years ago • 6 comments

Hi,

As of just today (7th oct 2022), whenever my docker container starts, it gets stuck at "Downloading Bedrock server version 1.19.31.01" and then restarts.

I've captured the logs (below), and I've also tested that I can access and download the URL for the file (https://minecraft.azureedge.net/bin-linux/bedrock-server-1.19.31.01.zip) from my own computer and the box that's running the docker container (using wget).

Logs: minecraftbds_logs.txt

Any help would be amazing!

lexiismadd avatar Oct 07 '22 01:10 lexiismadd

It works fine for me.

Something restarted your container right after:

2022-10-07T01:41:48.511061000Z + rm -rf bedrock_server 'bedrock_server-*' '*.so' release-notes.txt bedrock_server_how_to.html valid_known_packs.json premium_cache

Maybe you have set the healthcheck too short?

itzg avatar Oct 08 '22 00:10 itzg

I have a similar issue (running the image on Kubernetes). I use NFS as my persistent storage, and it takes a really long time with both the backup and unpacking the new version. (~20 min in total) This is due to poor performance on (my) NFS when writing many (small) files. Using tar (or similar) for the backup instead of just moving the folders would help for the backup part, but the performance is still a problem when unpacking the new version.

Adjusting the healthchecks would work, but a better solution might be to add a startupProbe. That way, you can have sane liveness and readiness probes for normal restarts, and still give the pod the time it needs to start up when performing a slow backup/upgrade. https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes

bendikwa avatar Oct 16 '22 15:10 bendikwa

So I managed to figure out what it was. I had my BP and RP folders mapping as volumes to other locations outside of the hosts mapped /data volume. As soon as i moved them back into the native /data volume, it started working. I did check permissions and everything on them, and the folders all had identical permissions so I'm not sure why it was failing, but that's how I fixed it.

lexiismadd avatar Oct 16 '22 21:10 lexiismadd

Issue seems to be persiting

2023-02-18 22:14:02 Looking up latest version...
2023-02-18 22:14:03 Downloading Bedrock server version 1.19.62.01 ...

tkacprow avatar Feb 18 '23 21:02 tkacprow

@tkacprow it has to be some kind of networking issue, but unfortunately hard to say what. FWIW, I updated the latest image to ensure a 1 minute timeout on the version retrieval so that it at least doesn't hang forever. I'm not sure if that will really make a difference.

itzg avatar Feb 19 '23 19:02 itzg

Huh running into the same problem. Has anyone found a solution yet? I can't launch the server - all I ever get is:

Looking up latest version...
Downloading Bedrock server version 1.19.83.01 ...
Backing up behavior_packs into backup-pre-1.19.83.01
time="2023-06-03T13:20:36Z" level=debug msg="Forwarding signal" signal=terminated
time="2023-06-03T13:20:36Z" level=debug msg="Sending message on stdin due to SIGTERM" message=stop

achaiah avatar Jun 03 '23 13:06 achaiah