Skip to main content

forge-server-doctor

Why won't my modded Minecraft server start?

A 400-line crash report, a wall of at net.minecraft... frames, and no indication which of your 200 mods caused it. That is the problem this solves.

$ forge-doctor logs/latest.log

ENVIRONMENT
------------------------------------------------------------
  Minecraft        1.21.1
  Loader           21.1.72
  Java             21.0.4
  Mods             214
  Reached 'Done'   no

  CULPRIT (first non-vanilla frame):
    techmod-1.21.1-4.2.0.jar
    in com.example.tech.TechMod.<init>

It names a culprit on any report that has a stack trace, including crashes it does not recognise -- which is the common case, and the part other tools give up on. The method is deliberately simple: walk the trace, skip every frame belonging to Minecraft, the loader or the JDK, and report the first one that is left, along with the jar Forge says it came from.

Constructor frames (TechMod.<init>) and static initialisers (<clinit>) count, because dying in your own constructor is one of the most common startup crashes there is.

What this free edition does

  • Names the culprit mod and the jar it came from, on any trace
  • Eight startup failures matched with the fix for each: EULA not accepted, port already in use, wrong Java version, out of memory, locked or corrupt world, duplicate mod jars, a missing dependency, and client-only code reaching the server
  • Reads plain .log, .log.gz and crash-reports/*.txt
  • When nothing matches, it says so plainly and tells you what to check by hand, instead of implying the log is clean
  • Links each finding to a page on how to be sure it is that, and what it gets mistaken for

Honest limits

  • It reads the log, not the game. It cannot know a mod is merely incompatible if nothing in the log says so.
  • The first non-vanilla frame is a strong heuristic, not proof. A mod that wraps another mod's code will sometimes take the blame for it.
  • Some logs do not annotate frames with a jar name at all. There it reports the Java package instead and says it could not identify the jar, rather than guessing one.
  • Deobfuscated names only. A fully obfuscated trace gives it nothing to read.

Install

pip install forge-server-doctor

One module, Python 3.8+, no dependencies -- it imports nothing outside the standard library.

More

The paid edition adds 18 more failure modes matched in the log with the fix for each, plus --json for scripting. Culprit naming is deliberately in the free edition -- withholding the only hard part would be the wrong way round.

Exit codes are meaningful and non-zero on purpose: 0 nothing fatal, 1 a fatal finding, 2 bad arguments. That lets you gate a start script on it (forge-doctor logs/latest.log || exit). It also fooled my own test harness twice, which is why it is written down here.

Diagnostic pages for every finding: https://jaakoby.github.io/fix/ Source: https://github.com/jaakoby/forge-server-doctor Full edition: https://kaiven.gumroad.com/l/forge-server-doctor


Built by Jakoby Tuckta with Claude. Every claim above is something the tool does on a real log; see the repo's tests.

Metadata

Release files for forge-server-doctor 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forge-server-doctor 1.1.0
File Size Uploaded Provenance Actions
forge_server_doctor-1.1.0.tar.gz 14.9 kB Without provenance Details for forge_server_doctor-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for forge-server-doctor 1.1.0
File Interpreter ABI Platform Actions
forge_server_doctor-1.1.0-py3-none-any.whl Python 3 none any Details for forge_server_doctor-1.1.0-py3-none-any.whl

Total release size: 29.0 kB

Release files / forge_server_doctor-1.1.0.tar.gz

Download URL forge_server_doctor-1.1.0.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
376a0f7b45875d92a1754956a160ba689d6253aaf20d329b62fd077082e43200
BLAKE2b-256 checksum
How to use checksums
56e0e392f5e7c6ba0ff8e0cdf4035d6e660b60c7510299d48cb2d42eeb7c741c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / forge_server_doctor-1.1.0-py3-none-any.whl

Download URL forge_server_doctor-1.1.0-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7c9362b3db76306ba17cffe35f2fa07674b05d57e5b6eb7277a38b4640a0abe
BLAKE2b-256 checksum
How to use checksums
eb5de8548f2b820d5a73da00e8009fd2af8f6f21176dc32d1aa303027505893a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for forge-server-doctor 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page