Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR : 'install-forge' command failed when specifying FORGE_INSTALLER #2011

Closed
qibao07 opened this issue Mar 16, 2023 · 2 comments
Closed
Labels

Comments

@qibao07
Copy link

qibao07 commented Mar 16, 2023

Describe the problem

Everything used to work fine until the new image was pulled.

When I execute "docker pull itzg/minecraft-server:java8-multiarch", and then restart, the problem occurs.

It is normal to use old image by imageID.

Container definition

  docker run -d -it \
    --name $SERVER_NAME \
    -v $(pwd)/data:/data \
    -e TZ=Asia/Shanghai \
    -e TYPE=FORGE \
    -e VERSION=1.12.2 \
    -e FORGE_INSTALLER=forge-1.12.2-14.23.5.2855-installer.jar \
    -e EULA=TRUE \
    -e ONLINE_MODE=FALSE \
    -e MEMORY=4G \
    -p $MC_PORT:25565 \
    itzg/minecraft-server:java8-multiarch

Container logs

+ mc-image-helper install-forge --output-directory=/data --results-file=/data/.run-forge.env --minecraft-version=1.12.2 --forge-installer=forge-1.12.2-14.23.5.2855-installer.jar --force-reinstall=false
[mc-image-helper] 21:19:31.427 DEBUG : JSON FETCH: uri=https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json headers=DefaultHttpHeaders[user-agent: mc-image-helper/1.25.12 (cmd=forge), x-fetch-session: 6a9778d4-7e93-4aa1-b9bd-5641357652a2, accept: application/json, host: files.minecraftforge.net]
[mc-image-helper] 21:19:34.542 DEBUG : JSON FETCH: uri=https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json headers=DefaultHttpHeaders[user-agent: mc-image-helper/1.25.12 (cmd=forge), x-fetch-session: 6a9778d4-7e93-4aa1-b9bd-5641357652a2, accept: application/json, host: files.minecraftforge.net]
[mc-image-helper] 21:19:35.055 INFO  : Running Forge installer. This might take a while...
[mc-image-helper] 21:19:39.073 DEBUG : Deleting Forge installer log at /data/forge-1.12.2-14.23.5.2855-installer.jar.log
[mc-image-helper] 21:19:39.075 ERROR : 'install-forge' command failed. Version is 1.25.12
me.itzg.helpers.errors.GenericException: Unable to locate forge server jar
        at me.itzg.helpers.forge.ForgeInstaller.install(ForgeInstaller.java:264)
        at me.itzg.helpers.forge.ForgeInstaller.installUsingExisting(ForgeInstaller.java:157)
        at me.itzg.helpers.forge.ForgeInstaller.install(ForgeInstaller.java:113)
        at me.itzg.helpers.forge.InstallForgeCommand.call(InstallForgeCommand.java:84)
        at me.itzg.helpers.forge.InstallForgeCommand.call(InstallForgeCommand.java:16)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at me.itzg.helpers.McImageHelper.main(McImageHelper.java:132)
+ log 'ERROR failed to install Forge given installer forge-1.12.2-14.23.5.2855-installer.jar'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2023-03-16 21:19:39+08:00 ERROR failed to install Forge given installer forge-1.12.2-14.23.5.2855-installer.jar
+ exit 1
@itzg
Copy link
Owner

itzg commented Mar 16, 2023

Thanks for reporting this. It does seem to be a bug with the server jar resolution when providing a custom forge installer.

As a workaround, if a custom installer isn't needed can you replace FORGE_INSTALLER with FORGE_VERSION=14.23.5.2855?

@itzg itzg moved this to To do in Docker Minecraft Mar 16, 2023
@itzg itzg changed the title ERROR : 'install-forge' command failed. ERROR : 'install-forge' command failed when specifying FORGE_INSTALLER Mar 16, 2023
@qibao07
Copy link
Author

qibao07 commented Mar 17, 2023

@itzg
As you said, the problem is gone. Thanks! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants