Guide · Troubleshooting

Server crashes on startup: how to fix it

A server that stops seconds after starting almost always explains why in the last lines of its log. The trick is knowing what to look for.

Read the log first

Open logs/latest.log, or the console in your panel, and scroll to the first error, not the last line. Lines starting with ERROR or containing Exception, and the line after "Caused by", usually name the problem. Modded servers also write a file to crash-reports.

The common causes

  • Wrong Java version: UnsupportedClassVersionError; switch Java
  • EULA not accepted: set eula=true in eula.txt
  • Port in use: "Failed to bind to port"; another process is using it
  • Jar not found: "Unable to access jarfile"; the file name does not match the start command
  • Broken plugin or mod: the error names its package or mod ID; remove it and retry
  • Client-only mod on a server: errors about client classes
  • Corrupted world: errors while loading chunks or level.dat
  • Not enough memory: OutOfMemoryError or the process killed by the system

Isolate the problem

If the error is not clear, rename the plugins or mods folder and start the server. If it starts, add plugins back in halves until the crash returns. If it still crashes, set level-name to a new name temporarily to test whether the world is the problem.

Getting help

Paste the full log to a log-sharing site such as mclo.gs, which hides IP addresses, and share the link with the plugin author, the modpack's Discord or your host's support. A full log gets a far quicker answer than a screenshot of the last few lines.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Why does my server stop right after "Loading libraries"?
Usually the Java version is wrong or the EULA is not accepted. Check the lines just before it stopped.
My server crashes only when a player joins. Why?
Often a plugin or mod that handles joins, or corrupted data in that player's file or nearby chunks. The log at the moment of the crash names the cause.
Where are Minecraft crash reports?
In the crash-reports folder in the server root, with the date in the file name. The console log is in logs/latest.log.