docker-minecraft-server
docker-minecraft-server copied to clipboard
PAPERBUILD flag uses partial URL of latest version, 404s
Command used:
sudo podman run -d -it -v /home/$3/data:/data:z -e TYPE=PAPER -e PAPERBUILD=$6 -e FORCE_REDOWNLOAD=true -e MAX_RAM=$4G -e UID=$USR_UID -e GID=$USR_GID -p $1:25565 -e EULA=true -e USE_AIKAR_FLAGS=true -e SERVER_NAME=$5 --name $2 -m=$4g --cpus=1 itzg/minecraft-server
Console output:
[init] Changing uid of minecraft to 1004
[init] Changing gid of minecraft to 1004
[init] Changing ownership of /autopause to 1004 ...
[init] Running as uid=1004 gid=1004 with /data as 'drwxrwxr-x 9 1004 1004 4096 Jun 23 19:59 /data'
[init] Resolved version given LATEST into 1.16
[init] Resolving type given PAPER
[init] Downloading Paper 1.16 (build 370) from https://papermc.io/api/v1/paper/1.16/370/download ...
curl: (22) The requested URL returned error: 40
[init] ERROR: failed to download from https://papermc.io/api/v1/paper/1.16/370/download (status=0)
Looks like it's trying to hit https://papermc.io/api/v1/paper/1.16 instead of the appropriate path for the older version https://papermc.io/api/v1/paper/1.15.2/370/download. This just broke a lot of my servers, is there a quick workaround?
Manually specifying -e VERSION=1.15.2 seems to resolve for now. Since there's another ticket going, I'll close this.