itzg / itzg/docker-minecraft-bedrock-server

Failing to download latest version

Open
#619 20 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
1.9k
Forks
303
Avg merge
2h 26m
Merged PRs (30d)
2

Description

I'm running the server on a synology NAS, the clients I connect to it with are Fire Tablets. Currently getting an error that the server is running an old version.

- I tried restarting the docker containter to pull the latest, but was still getting the same error
- I tried updating the docker image, but still the same error
- I tired to rename the old server file to try force a download

Looking at the logs I see the following warning

`WARN Minecraft download page failed, so using existing download of 1.21.111_OLD`

I was seeing the same before I renamed the old one.

Enabling Debug on the docker container I get the following logs (Sorry the logs have latest on the top, thats how they exported for some reason. Can include all the logs if it would be helpful)

Any suggestions for what im doing wrong?

```

2026-04-04T10:19:11.319572665Z,stdout,+ [[ ! -f bedrock_server-1.21.111_OLD ]]

2026-04-04T10:19:11.317829029Z,stdout,+ rm -f restify.err

2026-04-04T10:19:11.317651883Z,stdout,2026/04/04 10:19:10 Unable to find an element with attribute matcher data-platform=serverBedrockLinux

2026-04-04T10:19:11.316735255Z,stdout,"WARN Minecraft download page failed, so using existing download of 1.21.111_OLD
"
2026-04-04T10:19:11.316426926Z,stdout,+ cat restify.err

2026-04-04T10:19:11.316365786Z,stdout,"+ echo 'WARN Minecraft download page failed, so using existing download of 1.21.111_OLD'
"
2026-04-04T10:19:11.316302491Z,stdout,+ VERSION=1.21.111_OLD

2026-04-04T10:19:11.316136198Z,stdout,+ [[ bedrock_server-1.21.111_OLD =~ bedrock_server-(.*) ]]

2026-04-04T10:19:11.314697411Z,stdout,++ ls -rv bedrock_server-1.21.111_OLD

2026-04-04T10:19:11.314374902Z,stdout,++ head -1

2026-04-04T10:19:11.314037803Z,stdout,dub1::jw8qx-1775297951300-baac0f67dacf =~ http.*/.*-(.*)\.zip ]]

2026-04-04T10:19:11.313999915Z,stdout,

2026-04-04T10:19:11.313959904Z,stdout,DEPLOYMENT_NOT_FOUND

2026-04-04T10:19:11.313921216Z,stdout,

2026-04-04T10:19:11.313867960Z,stdout,+ [[ The deployment could not be found on Vercel.

2026-04-04T10:19:11.313827644Z,stdout,+ [[ -n '' ]]

2026-04-04T10:19:11.313756745Z,stdout,dub1::jw8qx-1775297951300-baac0f67dacf'

2026-04-04T10:19:11.313719833Z,stdout,

2026-04-04T10:19:11.313678928Z,stdout,DEPLOYMENT_NOT_FOUND

2026-04-04T10:19:11.313637095Z,stdout,

2026-04-04T10:19:11.313456698Z,stdout,+ DOWNLOAD_URL='The deployment could not be found on Vercel.

2026-04-04T10:19:11.196822369Z,stdout,++ curl -s https://mc-bds-helper.vercel.app/api/latest

2026-04-04T10:19:11.196094169Z,stdout,+ [[ -z '' ]]

2026-04-04T10:19:10.194611975Z,stdout,+ sleep 1

2026-04-04T10:19:10.194566496Z,stdout,+ [[ -n '' ]]

2026-04-04T10:19:10.194424366Z,stdout,+ DOWNLOAD_URL=

2026-04-04T10:19:10.194044147Z,stdout,++ echo ''

2026-04-04T10:19:10.045703177Z,stdout,++ jq -r '.[0].href'

2026-04-04T10:19:10.045110480Z,stdout,++ restify --user-agent=itzg/minecraft-bedrock-server --headers 'accept-language:*' --attribute=data-platform=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock

2026-04-04T10:19:10.044138327Z,stdout,+ for i in {1..3}

2026-04-04T10:19:09.042958691Z,stdout,+ sleep 1

2026-04-04T10:19:09.042898094Z,stdout,+ [[ -n '' ]]

2026-04-04T10:19:09.042690365Z,stdout,+ DOWNLOAD_URL=

2026-04-04T10:19:09.042353774Z,stdout,++ echo ''

2026-04-04T10:19:08.881416482Z,stdout,++ jq -r '.[0].href'

2026-04-04T10:19:08.880962414Z,stdout,++ restify --user-agent=itzg/minecraft-bedrock-server --headers 'accept-language:*' --attribute=data-platform=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock

2026-04-04T10:19:08.880129884Z,stdout,+ for i in {1..3}

2026-04-04T10:19:07.878888494Z,stdout,+ sleep 1

2026-04-04T10:19:07.878653064Z,stdout,+ [[ -n '' ]]

2026-04-04T10:19:07.878581248Z,stdout,+ DOWNLOAD_URL=

2026-04-04T10:19:07.878304729Z,stdout,++ echo ''

2026-04-04T10:19:07.622744397Z,stdout,++ jq -r '.[0].href'

2026-04-04T10:19:07.622588786Z,stdout,++ restify --user-agent=itzg/minecraft-bedrock-server --headers 'accept-language:*' --attribute=data-platform=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock

2026-04-04T10:19:07.622217654Z,stdout,+ for i in {1..3}

2026-04-04T10:19:07.622176125Z,stdout,+ customVersion=

2026-04-04T10:19:07.622130664Z,stdout,+ platform=serverBedrockLinux

2026-04-04T10:19:07.621965524Z,stdout,+ lookupVersion serverBedrockLinux

2026-04-04T10:19:07.621924084Z,stdout,Looking up latest version...

2026-04-04T10:19:07.621878488Z,stdout,+ echo 'Looking up latest version...'

2026-04-04T10:19:07.621834710Z,stdout,+ case ${VERSION^^} in

2026-04-04T10:19:07.621790764Z,stdout,+ [[ TRUE != TRUE ]]

2026-04-04T10:19:07.621737388Z,stdout,+ downloadPage=https://www.minecraft.net/en-us/download/server/bedrock

2026-04-04T10:19:07.621697377Z,stdout,+ HOME=/data

2026-04-04T10:19:07.621651202Z,stdout,+ export HOME=/data

2026-04-04T10:19:07.621596557Z,stdout, current directory is /data

2026-04-04T10:19:07.621392284Z,stdout,+ echo ' current directory is /data'

2026-04-04T10:19:07.620807770Z,stdout,++ pwd

2026-04-04T10:19:07.620488128Z,stdout,DEBUG: running as uid=1027 gid=65536 groups=65536 with drwxrwxrwx 1 1026 users 836 Apr 4 10:12 /data

2026-04-04T10:19:07.620287626Z,stdout,+ echo 'DEBUG: running as uid=1027 gid=65536 groups=65536 with drwxrwxrwx 1 1026 users 836 Apr 4 10:12 /data'

2026-04-04T10:19:07.618532317Z,stdout,++ ls -ld /data

2026-04-04T10:19:07.598372403Z,stdout,++ id -a

2026-04-04T10:19:07.597979315Z,stdout,+ curlArgs=(-v)

2026-04-04T10:19:07.596927039Z,stdout,DEBU[0000] Resolved 65536 from environment variable GID

2026-04-04T10:19:07.596821393Z,stdout,DEBU[0000] Resolved 1027 from environment variable UID

2026-04-04T10:19:07.595990079Z,stdout,DEBU[0000] Using /data to match uid and gid

2026-04-04T10:17:25.936015759Z,stdout,2026-04-04T10:17:25.935Z INFO mc-server-runner Done
```

Contributor guide

Open the contributing guide

Research direction

Start with the startup download flow shown in the logs, especially the restify lookup of minecraft.net/en-us/download/server/bedrock and the fallback request to mc-bds-helper.vercel.app/api/latest. Compare those responses and the data-platform=serverBedrockLinux matcher behavior. Done means the container resolves the current Bedrock server version and downloads it instead of retaining the existing _OLD file.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.