Understanding the Error
The java.lang.IllegalStateException: Failed to initialize server is a generic error triggered when the Minecraft server process encounters a critical failure during its startup sequence. It indicates that the server cannot complete its initialisation, usually due to corrupted configuration files, incompatible plugins, or missing dependencies.
How to fix it
1. Check the latest log file
Before making changes, identify the specific cause by reviewing the logs.
- On AwakeNode: Navigate to the File Manager in your panel, open the
logsfolder, and view thelatest.logfile. Look for lines marked[ERROR]or[FATAL]immediately preceding theIllegalStateException. - On other hosts: Use your SFTP client to download the
latest.logfile from thelogsdirectory to your computer and open it in a text editor.
2. Verify Plugins and Mods
Often, this error is caused by a plugin or mod that is incompatible with your current server version.
- On AwakeNode: Use the Files tab to move recently added plugins or mods out of the
pluginsormodsfolder for now. Restart the server to see if it boots successfully. - On other hosts: Manually move the contents of your
pluginsormodsfolder to a backup location on your computer. Restart the server; if it starts, add the files back one by one to identify the culprit.
3. Reset Configuration Files
Corrupted configuration files (such as server.properties or plugin config files) can prevent startup.
- On AwakeNode: Use the File Manager to rename the problematic configuration file (e.g., rename
server.propertiestoserver.properties.old). The server will generate a fresh, default file upon the next start. - On other hosts: Use your SFTP client to rename or delete the configuration files in the root directory. Restart your server to allow the software to regenerate default settings.
4. Check Java Version and RAM
If the error persists, it may be related to your environment settings.
- Java Version: Ensure your server is running the correct Java version for your Minecraft version (e.g., Java 17 for 1.18+, Java 21 for 1.20.5+). You can change this in your panel settings.
- RAM: If your server is crashing due to memory exhaustion, you may need to upgrade your plan. On AwakeNode, upgrading your plan automatically updates your Xmx settings. On other hosts, you must manually edit the
-Xmxflag in your startup script. To add your own JVM flags, set a custom startup command in your server's Startup tab.
Questions
Can I fix this error by changing my own startup flags?
To add your own JVM flags, set a custom startup command in your server's Startup tab.
Why does my server crash immediately after I add a new plugin?
This usually means the plugin is incompatible with your server version or is missing a required dependency. Try removing the plugin to see if the server starts correctly.
Does upgrading my RAM fix this error?
If the logs indicate an OutOfMemoryError, upgrading your plan will provide the necessary resources. On AwakeNode, your Xmx settings will update automatically once the plan is upgraded.
Where can I find the error logs?
You can find your logs in the 'logs' folder within the File Manager on your panel or via your SFTP client.