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

ERROR : 'install-curseforge' command failed. Version is 1.41.9

Open Wordlesschunk opened this issue 9 months ago • 1 comments

Describe the problem

Morning guys, i seem to be running into this weird issue when trying to start my server I've been running an all-the-mods-10 server for the past couple days and sometimes when i try and start the server i keep getting:

Image

sometimes a restart fixes it but this time its not helped and the container just wont start, any advice appreciated !

Container definition

services:
  game:
    tty: true
    image: itzg/minecraft-server
    ports:
      - '25565:25565'
    volumes:
      - './data:/data'
    stdin_open: true
    environment:
      EULA: true
      CF_SLUG: all-the-mods-10
      CF_API_KEY: 
      ALLOW_FLIGHT: true
      MOD_PLATFORM: AUTO_CURSEFORGE
      CF_EXCLUDE_MODS: |-
        lighty
        dark-mode-everywhere
        iceberg
        just-enough-mekanism-multiblocks
        model-gap-fix
        packmenu
        reeses-sodium-options
        sodium-extra
        sodium-options-api
        toast-control
      CF_FILENAME_MATCHER: '2.41'
      CREATE_CONSOLE_IN_PIPE: true
      CF_OVERRIDES_EXCLUSIONS: 'shaderpacks/**'
      MIN_MEMORY: 5G
      MAX_MEMORY: 16G
    container_name: all-the-mods-10

Container logs

all-the-mods-10  | [init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 16 1000 1000 4096 May  5 09:53 /data'
all-the-mods-10  | [init] Image info: buildtime=2025-05-04T21:49:44.111Z,version=java21,revision=1c0fe6ff1028216bf9d8153f4d61793d96d26ee5
all-the-mods-10  | [mc-image-helper] 09:57:29.494 ERROR : 'install-curseforge' command failed. Version is 1.41.9
all-the-mods-10  | me.itzg.helpers.errors.GenericException: No matching files found for mod 'all-the-mods-10' (925200) using fileMatcher '2.41'
all-the-mods-10  |      at me.itzg.helpers.curseforge.CurseForgeApiClient.lambda$resolveModpackFile$4(CurseForgeApiClient.java:188)
all-the-mods-10  |      at java.base/java.util.Optional.orElseThrow(Unknown Source)
all-the-mods-10  |      at me.itzg.helpers.curseforge.CurseForgeApiClient.resolveModpackFile(CurseForgeApiClient.java:183)
all-the-mods-10  |      at me.itzg.helpers.curseforge.CurseForgeInstaller.resolveModpackFileAndProcess(CurseForgeInstaller.java:332)
all-the-mods-10  |      at me.itzg.helpers.curseforge.CurseForgeInstaller.installByRetrievingModpackZip(CurseForgeInstaller.java:257)
all-the-mods-10  |      at me.itzg.helpers.curseforge.CurseForgeInstaller.lambda$install$3(CurseForgeInstaller.java:182)
all-the-mods-10  |      at me.itzg.helpers.curseforge.CurseForgeInstaller.install(CurseForgeInstaller.java:228)
all-the-mods-10  |      at me.itzg.helpers.curseforge.CurseForgeInstaller.install(CurseForgeInstaller.java:181)
all-the-mods-10  |      at me.itzg.helpers.curseforge.InstallCurseForgeCommand.call(InstallCurseForgeCommand.java:222)
all-the-mods-10  |      at me.itzg.helpers.curseforge.InstallCurseForgeCommand.call(InstallCurseForgeCommand.java:30)
all-the-mods-10  |      at picocli.CommandLine.executeUserObject(CommandLine.java:2031)
all-the-mods-10  |      at picocli.CommandLine.access$1500(CommandLine.java:148)
all-the-mods-10  |      at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469)
all-the-mods-10  |      at picocli.CommandLine$RunLast.handle(CommandLine.java:2461)
all-the-mods-10  |      at picocli.CommandLine$RunLast.handle(CommandLine.java:2423)
all-the-mods-10  |      at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
all-the-mods-10  |      at picocli.CommandLine$RunLast.execute(CommandLine.java:2425)
all-the-mods-10  |      at picocli.CommandLine.execute(CommandLine.java:2174)
all-the-mods-10  |      at me.itzg.helpers.McImageHelper.main(McImageHelper.java:178)
all-the-mods-10  | [init] [ERROR] Failed to auto-install CurseForge modpack 
all-the-mods-10 exited with code 1

Wordlesschunk avatar May 05 '25 10:05 Wordlesschunk

There seems to be a sporadic problem with CurseForge web API not responding with the file listing. I have been encountering this at times but can't yet reproduce it within a debugger.

In the meantime, can set CF_PAGE_URL to https://www.curseforge.com/minecraft/modpacks/all-the-mods-10/files/6313628

itzg avatar May 05 '25 12:05 itzg

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.

github-actions[bot] avatar Jun 21 '25 02:06 github-actions[bot]

Hi, I am having the same issue with ATM 10 V 4.14 ERROR : 'install-curseforge' command failed. Version is 1.50.1

[init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 19 1000 1000 4096 Nov 6 16:08 /data' [init] Image info: buildtime=2025-10-18T23:45:11.452Z,version=java21,revision=2cd747263156ed00697ab6a98b7a1888b317160b [mc-image-helper] 16:21:43.167 INFO : Requested CurseForge modpack All the Mods 10-4.14 is already installed for All the Mods 10 - ATM10 [mc-image-helper] 16:21:43.849 ERROR : 'install-curseforge' command failed. Version is 1.50.1 me.itzg.helpers.errors.GenericException: Unable to prepare modpack's mod loader neoforge 21.1.211 for Minecraft 1.21.1: Unable to find suitable version for Minecraft 1.21.1 NeoForge 21.1.211 at me.itzg.helpers.curseforge.CurseForgeInstaller.prepareModLoader(CurseForgeInstaller.java:996) at me.itzg.helpers.curseforge.CurseForgeInstaller.finalizeExistingInstallation(CurseForgeInstaller.java:473) at me.itzg.helpers.curseforge.CurseForgeInstaller.resolveModpackFileAndProcess(CurseForgeInstaller.java:367) at me.itzg.helpers.curseforge.CurseForgeInstaller.installByRetrievingModpackZip(CurseForgeInstaller.java:274) at me.itzg.helpers.curseforge.CurseForgeInstaller.lambda$install$3(CurseForgeInstaller.java:196) at me.itzg.helpers.curseforge.CurseForgeInstaller.install(CurseForgeInstaller.java:242) at me.itzg.helpers.curseforge.CurseForgeInstaller.install(CurseForgeInstaller.java:195) at me.itzg.helpers.curseforge.InstallCurseForgeCommand.call(InstallCurseForgeCommand.java:252) at me.itzg.helpers.curseforge.InstallCurseForgeCommand.call(InstallCurseForgeCommand.java:33) at picocli.CommandLine.executeUserObject(CommandLine.java:2031) at picocli.CommandLine.access$1500(CommandLine.java:148) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469) at picocli.CommandLine$RunLast.handle(CommandLine.java:2461) at picocli.CommandLine$RunLast.handle(CommandLine.java:2423) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277) at picocli.CommandLine$RunLast.execute(CommandLine.java:2425) at picocli.CommandLine.execute(CommandLine.java:2174) at me.itzg.helpers.McImageHelper.main(McImageHelper.java:176) Caused by: me.itzg.helpers.errors.InvalidParameterException: Unable to find suitable version for Minecraft 1.21.1 NeoForge 21.1.211 at me.itzg.helpers.forge.ForgeInstaller.install(ForgeInstaller.java:57) at me.itzg.helpers.curseforge.CurseForgeInstaller.prepareNeoForge(CurseForgeInstaller.java:1024) at me.itzg.helpers.curseforge.CurseForgeInstaller.prepareModLoader(CurseForgeInstaller.java:985) ... 17 common frames omitted [init] [ERROR] Failed to auto-install CurseForge modpack

Any suggestions?

FrnaklySpeaking24 avatar Nov 06 '25 21:11 FrnaklySpeaking24

I was using a droplet on digital ocean, whenever i would get this error i would just create a new server and that would usually work, it seemed to be some kinda ip related issue on the curseforge side i think, i guess the other solution could be where you download the files and run it from that maybe?

Wordlesschunk avatar Nov 06 '25 21:11 Wordlesschunk

I figured it out!

TLDR: Check your API key and make sure it respects auto-curseforge requirements

When I first setup the server I used the setup mc configurator which adjusted the API key for me automatically by inserting the extra "$". Eventually I changed to an .env but didn't correct it by using single quotes and removing the extra characters.

It had been running with the incorrect formatted key for a little bit tho like 10 days which is curious. Anyways it's back up and running, thanks!

FrnaklySpeaking24 avatar Nov 06 '25 22:11 FrnaklySpeaking24