Skip to content

Unable to launch NeoForge server as "invalid dist DEDICATED_SERVER" #428

@505e06b2

Description

@505e06b2

Bug description

When launching the latest NeoForge dedicated server with AutoModpack, the server fails to start. When the automodpack jar is removed from mods/, all other mods load as expected

The crash happens on both 4.0.0-beta39 and 4.0.0-beta40 with versions <= 4.0.0-beta38 causing a crash related to ...automodpack-4.0.0-beta38.jar is not a valid mod file

Have attempted to downgrade the NeoForge version, but at least one of the mods in my list depend on NeoForge >= 21.1.209

Steps to reproduce

  1. Download latest NeoForge installer for 1.21.1 (currently 21.1.210)
  2. java -jar [neoforge-*installer.jar]
  3. "Install Server" to empty directory
  4. Add latest AutoModpack jar (beta40) to mods/ folder
  5. ./run.sh

Expected behavior

AutoModpack is bootstrapped and relevant config directories are created

Actual behavior

AutoModpack fails to bootstrap and server crashes with java.lang.BootstrapMethodError: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid dist DEDICATED_SERVER

Relevant logs

Server crash report: crash-2025-10-11_14.46.23-fml.txt

Minecraft & Mod Loader versions

1.21.1 NeoForge 21.1.210

Minecraft launcher

None

Operating system

Debian 14 (Testing)

AutoModpack version

4.0.0-beta40

Other information

My current setup heavily uses symlinks and renames all mods to a standard form of {slug}-{version}.*

Check list

  • I have verified that the issue persists in the latest version of the mod.
  • I have searched the existing issues and confirmed that this is not a duplicate.
  • I have provided all the necessary information to reproduce the issue.
  • I have verified that the issue does not occur without the AutoModpack - Ignore if you are reporting a mod conflict issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglow prioLow priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions