ACLClouds
ACLClouds

My game server crashes on startup: how to diagnose?

Read the first meaningful error, then check resources, variables, files and dependencies. The last line is not always the cause.

The last line is not always the cause. Work back to the first specific error, before the cascade of shutdown messages.

Step-by-step procedure

  1. Find the first error

    Check for ERROR, FATAL, Exception, Segmentation fault or a missing file.

  2. Check resources

    An OOM error or exit code 137 usually means the server ran out of memory.

  3. Check the variables

    Check license key, version, ports and boot command.

  4. Isolate the add-ons

    Temporarily remove the last added plugin or mod, then reboot.

  5. Create a ticket

    Attach the log lines from before the crash, the time and the last change. Remove any token from the log.

Find the first errors in a downloaded log

grep -n -m 5 -E "ERROR|FATAL|Exception|Caused by" latest.log

Reading the status and the end of the console

When the process stops without you asking for it, the console status switches to “Crashed” and only the “Start” button remains available. Wings then adds a few lines at the end of the console:

The memory and disk counters in the console also compare usage with the plan’s limit. A full disk prevents the world from being written and often produces No space left on device.

  • Detected server process in a crashed state!: the process ended on its own, with no stop sent from the panel.
  • Exit code: 137 with Out of memory: true: the server went over the plan’s memory and the system killed it.
  • Exit code: 1: the game stopped itself after an error. The cause is further up, in the startup lines.

Common errors and fixes

These messages cover most startup crashes:

  • java.lang.OutOfMemoryError: Java heap space: the world, mods or plugins need more memory. Lower the view distance, remove mods or move to a larger plan.
  • UnsupportedClassVersionError: the Java version is too old for the server jar. Pick a newer image in “Startup”, under “Docker image”.
  • FAILED TO BIND TO PORT! or Address already in use: the configuration file forces another port, or a previous instance still holds this one. Use the port shown in “Network”, for example in server.properties.
  • You need to agree to the EULA in order to run the server: replace eula=false with eula=true in eula.txt, then restart.

Isolating the cause without losing data

If your plan includes backups, create one before changing any files. To test a plugin or mod, move its file out of plugins/ or mods/ from “Files” instead of deleting it: you can put it back later. Change one thing at a time, restart, then read the console again from the start of the boot.

Frequently asked questions

The server switches to “Crashed” without any error in the console, why?

If the end of the console shows Out of memory: true, the system killed the process before it could write its error. Lighten the server or increase the plan’s memory.

The server crashes right after an update, what should I do?

Plugins and mods often depend on an exact game version. Update them or restore the previous version from a backup. On Minecraft, the Could not load line usually names the plugin at fault.

Why does the server not restart on its own after the crash?

With the Aborting automatic restart line, Wings gives up restarting a server that has just crashed already, to avoid a restart loop. Fix the cause, then click “Start”.