Skip to content

ERROR : 'install-neoforge' command failed. #3480

Closed
@petitbonney

Description

@petitbonney

Describe the problem

I digged a bit, I guess the error is raised because https://maven.neoforged.net/releases/net/neoforged/neoforge/maven-metadata.xml is empty.

Container definition

podman run -e DEBUG=true -e EULA=true -e TYPE=NEOFORGE -e VERSION=1.21.1 -e NEOFORGE_VERSION=latest -p 25565:25565 itzg/minecraft-server

Container logs

+ export HOME=/data
+ HOME=/data
++ id -u
++ id -g
++ ls -lnd /data
+ log 'Running as uid=1000 gid=1000 with /data as '\''drwxr-x--- 2 1000 1000 4096 May 31 14:45 /data'\'''
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2025-06-02 01:52:02+00:00 Running as uid=1000 gid=1000 with /data as 'drwxr-x--- 2 1000 1000 4096 May 31 14:45 /data'
++ paste -d, -s /etc/image.properties
+ log 'Image info: buildtime=2025-05-31T14:44:45.370Z,version=java21,revision=e6cd7116b63c7d146702a726da66ea1c7dcb3c0b'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2025-06-02 01:52:02+00:00 Image info: buildtime=2025-05-31T14:44:45.370Z,version=java21,revision=e6cd7116b63c7d146702a726da66ea1c7dcb3c0b
+ '[' '!' -e /data/eula.txt ']'
+ isTrue true
+ case "${1,,}" in
+ return 0
+ writeEula
++ date
+ echo '# Generated via Docker
# Mon Jun  2 01:52:02 AM UTC 2025
eula=true
'
+ isTrue false
+ case "${1,,}" in
+ return 1
+ isTrue true
+ case "${1,,}" in
+ return 0
+ set +x
+ isTrue false
+ case "${1,,}" in
+ return 1
+ isTrue false
+ case "${1,,}" in
+ return 1
+ [[ -n '' ]]
+ fixJavaPath
+ which java
+ cd /data
+ export DECLARED_TYPE=NEOFORGE
+ DECLARED_TYPE=NEOFORGE
+ export DECLARED_VERSION=1.21.1
+ DECLARED_VERSION=1.21.1
+ isTrue false
+ case "${1,,}" in
+ return 1
+ isTrue false
+ case "${1,,}" in
+ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ : ''
+ [[ -n '' ]]
+ case "${TYPE^^}" in
+ [[ -n '' ]]
+ log 'Resolving type given NEOFORGE'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2025-06-02 01:52:02+00:00 Resolving type given NEOFORGE
+ case "${TYPE^^}" in
+ exec /start-deployNeoForge
+ resultsFile=/data/.run-neoforge.env
+ mc-image-helper install-neoforge --output-directory=/data --results-file=/data/.run-neoforge.env --minecraft-version=1.21.1 --neoforge-version=latest --force-reinstall=false
[mc-image-helper] 01:52:03.855 DEBUG : Requesting NeoForge version=latest for minecraft=1.21.1
[mc-image-helper] 01:52:04.511 DEBUG : JSON FETCH: uri=https://maven.neoforged.net/releases/net/neoforged/neoforge/maven-metadata.xml headers=[user-agent: itzg/mc-image-helper/1.41.9 (cmd=install-neoforge), x-fetch-session: b2b57b7a-32d8-4ac1-8a3e-b6b09e38cf82, host: maven.neoforged.net, accept: */*]
[mc-image-helper] 01:52:04.560 ERROR : 'install-neoforge' command failed. Version is 1.41.9
me.itzg.helpers.errors.GenericException: Unable to resolve NeoForge metadata
        at me.itzg.helpers.forge.NeoForgeInstallerResolver.resolve(NeoForgeInstallerResolver.java:92)
        at me.itzg.helpers.forge.ForgeInstaller.install(ForgeInstaller.java:54)
        at me.itzg.helpers.forge.InstallNeoForgeCommand.call(InstallNeoForgeCommand.java:87)
        at me.itzg.helpers.forge.InstallNeoForgeCommand.call(InstallNeoForgeCommand.java:19)
        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:178)
+ logError 'Failed to install NeoForge'
+ isDebugging
+ isTrue true
+ case "${1,,}" in
+ return 0
+ set +x
[init] 2025-06-02 01:52:04+00:00 [ERROR] Failed to install NeoForge
+ exit 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    reason/externalClosed because issue is caused by external factors

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions