docker-minecraft-server
docker-minecraft-server copied to clipboard
Unable to download modpack from Curseforge
Describe the problem
Starting the container fails with:
'ERROR : 'get' command failed: Failed to download https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%255bFABRIC%255d+v11.zip: status code: 404, reason phrase: Not Found'
When downloading via Browser/Curl/wget the link always works.
Maybe there is a problem with processing the urlencoded characters?
Container definition
version: '3'
services:
minecraft-server:
ports:
- "25565:25565"
environment:
EULA: "TRUE"
TYPE: "FABRIC"
GENERIC_PACK: 'https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip'
USE_MODPACK_START_SCRIPT: "FALSE"
SNOOPER_ENABLED: "FALSE"
ALLOW_FLIGHT: "TRUE"
MAX_MEMORY: 6400M
DEBUG: true
DEBUG_EXEC: true
image: docker.io/itzg/minecraft-server
container_name: mc
tty: true
stdin_open: true
restart: always
Container logs
0a988c2565894d6f3a31554c5052b5eabed6ca25a418b2c319c1101b4a2500da
+ export HOME=/data
+ HOME=/data
++ id -u
++ id -g
++ ls -lnd /data
+ log 'Running as uid=1000 gid=1000 with /data as '\''drwxrwxr-x 1 1000 1000 0 May 30 17:18 /data'\'''
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-06-07 15:29:32+00:00 Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x 1 1000 1000 0 May 30 17:18 /data'
+ '[' '!' -e /data/eula.txt ']'
+ isTrue TRUE
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 0
+ writeEula
++ date
+ echo '# Generated via Docker
# Tue 07 Jun 2022 03:29:32 PM UTC
eula=true
'
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ fixJavaPath
+ which java
+ export VERSIONS_JSON=https://launchermeta.mojang.com/mc/game/version_manifest.json
+ VERSIONS_JSON=https://launchermeta.mojang.com/mc/game/version_manifest.json
+ case "X$VERSION" in
++ get --json-path '$.latest.release' https://launchermeta.mojang.com/mc/game/version_manifest.json
++ flags=()
++ local flags
++ isTrue false
++ local oldState
+++ shopt -po xtrace
++ oldState='set -o xtrace'
++ shopt -u -o xtrace
++ return 1
++ mc-image-helper get --json-path '$.latest.release' https://launchermeta.mojang.com/mc/game/version_manifest.json
+ VANILLA_VERSION=1.19
+ export VANILLA_VERSION
++ get_major_version 1.19
++ version=1.19
++ echo 1.19
++ cut -d. -f 1-2
+ MAJOR_VANILLA_VERSION=1.19
+ export MAJOR_VANILLA_VERSION
+ log 'Resolved version given LATEST into 1.19 and major version 1.19'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-06-07 15:29:33+00:00 Resolved version given LATEST into 1.19 and major version 1.19
+ cd /data
+ export ORIGINAL_TYPE=FABRIC
+ ORIGINAL_TYPE=FABRIC
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ versionLessThan 1.7
+ mc-image-helper compare-versions 1.19 lt 1.7
+ log 'Resolving type given FABRIC'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-06-07 15:29:33+00:00 Resolving type given FABRIC
+ case "${TYPE^^}" in
+ exec /start-deployFabric
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ LATEST = LATEST ]]
+ log 'Checking Fabric Launcher version information.'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-06-07 15:29:33+00:00 Checking Fabric Launcher version information.
++ maven-metadata-release https://maven.fabricmc.net/net/fabricmc/fabric-installer/maven-metadata.xml
+ FABRIC_LAUNCHER_VERSION=0.11.0
+ [[ LATEST = LATEST ]]
+ log 'Checking Fabric Loader version information.'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-06-07 15:29:33+00:00 Checking Fabric Loader version information.
++ maven-metadata-release https://maven.fabricmc.net/net/fabricmc/fabric-loader/maven-metadata.xml
+ FABRIC_LOADER_VERSION=0.14.6
+ export SERVER=fabric-server-mc.1.19-loader.0.14.6-launcher.0.11.0.jar
+ SERVER=fabric-server-mc.1.19-loader.0.14.6-launcher.0.11.0.jar
+ export FABRIC_LAUNCHER_URL=https://meta.fabricmc.net/v2/versions/loader/1.19/0.14.6/0.11.0/server/jar
+ FABRIC_LAUNCHER_URL=https://meta.fabricmc.net/v2/versions/loader/1.19/0.14.6/0.11.0/server/jar
+ [[ ! -e fabric-server-mc.1.19-loader.0.14.6-launcher.0.11.0.jar ]]
+ [[ ! -z https://meta.fabricmc.net/v2/versions/loader/1.19/0.14.6/0.11.0/server/jar ]]
+ log 'Downloading https://meta.fabricmc.net/v2/versions/loader/1.19/0.14.6/0.11.0/server/jar ...'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-06-07 15:29:33+00:00 Downloading https://meta.fabricmc.net/v2/versions/loader/1.19/0.14.6/0.11.0/server/jar ...
+ get -o fabric-server-mc.1.19-loader.0.14.6-launcher.0.11.0.jar https://meta.fabricmc.net/v2/versions/loader/1.19/0.14.6/0.11.0/server/jar
+ flags=()
+ local flags
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ mc-image-helper get -o fabric-server-mc.1.19-loader.0.14.6-launcher.0.11.0.jar https://meta.fabricmc.net/v2/versions/loader/1.19/0.14.6/0.11.0/server/jar
+ [[ ! -e fabric-server-mc.1.19-loader.0.14.6-launcher.0.11.0.jar ]]
+ export FAMILY=FABRIC
+ FAMILY=FABRIC
+ exec /start-setupWorld
+ '[' FABRIC = CURSEFORGE ']'
+ worldDest=/data/world
+ [[ -n '' ]]
+ exec /start-setupVanillaTweaks
+ VT_VERSION=
+ DATAPACKS_DIR=/data/world/datapacks
+ RESOURCEPACKS_DIR=/data/resourcepacks
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ exec /start-setupDatapack
+ out_dir=/data/world/datapacks
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ exec /start-setupForgeApiMods
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ '[' '' ']'
+ '[' '' ']'
+ exec /start-setupModpack
+ CURSE_URL_BASE=https://minecraft.curseforge.com/projects
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ : https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip
+ : ''
+ : ''
+ [[ -n https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip ]]
+ IFS=,
+ read -ra packs
+ packFiles=()
+ for packEntry in "${packs[@]}"
+ pack=https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip
+ isURL https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip
+ local value=https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip
+ [[ https:// == \h\t\t\p\s\:\/\/ ]]
+ return 0
+ mkdir -p /data/packs
+ log 'Downloading generic pack from https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-06-07 15:29:34+00:00 Downloading generic pack from https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip
++ get -o /data/packs --output-filename --skip-up-to-date https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip
++ flags=()
++ local flags
++ isTrue false
++ local oldState
+++ shopt -po xtrace
++ oldState='set -o xtrace'
++ shopt -u -o xtrace
++ return 1
++ mc-image-helper get -o /data/packs --output-filename --skip-up-to-date https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip
[mc-image-helper] 15:29:35.647 ERROR : 'get' command failed: Failed to download https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%255bFABRIC%255d+v11.zip: status code: 404, reason phrase: Not Found
+ outfile=
+ log 'ERROR: failed to download https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-06-07 15:29:35+00:00 ERROR: failed to download https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip
+ exit 2
['podman', '--version', '']
using podman version: 4.1.0
** excluding: set()
['podman', 'network', 'exists', 'docker_default']
podman create --name=mc --label io.podman.compose.config-hash=123 --label io.podman.compose.project=docker --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=docker --label com.docker.compose.project.working_dir=/home/max/tmp/docker --label com.docker.compose.project.config_files=docker-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=minecraft-server -e EULA=TRUE -e TYPE=FABRIC -e GENERIC_PACK=https://media.forgecdn.net/files/3806/247/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip -e USE_MODPACK_START_SCRIPT=FALSE -e SNOOPER_ENABLED=FALSE -e ALLOW_FLIGHT=TRUE -e MAX_MEMORY=6400M -e DEBUG=True -e DEBUG_EXEC=True --net docker_default --network-alias minecraft-server -p 25565:25565 -i --tty --restart always docker.io/itzg/minecraft-server
exit code: 0
podman start -a mc
exit code: 2
Is it this mod: https://www.curseforge.com/minecraft/modpacks/medieval-minecraft-fabric?
if so, two things:
- it does not seem to be compatible with 1.19 yet. latest version mentioned is 1.18.2
- the download URL has moved to https://media.forgecdn.net/files/3433/164/Medieval+Minecraft+Server+Pack+%5bFABRIC%5d+v11.zip
This is something I'll have to investigate in mc-image-helper.
So a workaround would be replacing the urlencoded characters by their originals?
So a workaround would be replacing the urlencoded characters by their originals?
Yes and double check what @abesnier pointed out.
Well, it's working. Regarding the MC Version, I already set a static version in my docker-compose. I didn't correct it here, because the download problem is independent from the MC version.
My link is correct. The only issue was the double reencoding.
This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.