Server crash: "for invalid dist DEDICATED_SERVER"
Short answer: A mod that only belongs on your own game (a minimap, HUD, shader or menu mod) is in the server's mods folder. Remove it from the server and keep it on your game.
What it means
A server has no screen, so it doesn't contain any of Minecraft's display code. When a client-only mod tries to use that code, the server crashes with invalid dist DEDICATED_SERVER.
The mod's name is usually in the stack trace just below the error, often as a .jar file name.
How to fix it
- Find the mod named in the stack trace. The crash checker will pull it out for you.
- Delete it from the server's mods folder only.
- Start the server again. If another client-only mod shows up, repeat.
- Usual suspects: minimaps, shader loaders, HUD and inventory tweaks, and anything described as "client-side only" on its download page.
Not sure this is your crash?
Paste your crash report or latest.log into the checker. It reads the log in your browser and tells you what broke, and how sure it is.
Check my crash log