KnowledgebaseServer Errors & Troubleshooting

Troubleshooting Common Java Error Exit Codes

Troubleshooting Common Java Error Exit Codes

Server Errors & Troubleshooting
Sep 11, 2024
3 min read

In some cases, your server may crash without any explanation or a crash report. Often in these situations, it鈥檒l be accompanied by a number such as 1, 137, or 143.


#Common Exit Codes and Solutions

While Exit Codes can be hard to diagnose, they generally point to a few simple problems, which we cover in the table below.

Exit CodeDescriptionSolution
1Your server鈥檚 JAR file is either not named properly, missing, or corrupted.Ensure the name of your JAR file matches what is configured in your server instance. If you鈥檙e running a modpack or a Custom JAR, consider reinstalling Forge/Fabric or your Custom JAR file.
2In certain situations, this may signify a networking issue.Check your server files for any crash reports. If you are unable to find any, please feel free to contact us for help.
125Your server鈥檚 port is not binding properly. This code may also be accompanied by a Failed to bind to port error.This error implies you may need a new, valid IP address assigned to your server. If you experience this error, please contact us for support!
137Your server is out of memory (RAM).If you experience this error code, you should investigate ways to lower your memory usage or upgrade the RAM allocated on your server.
143Your server was terminated by an external factor. This error can sometimes occur when a server isn鈥檛 responding and you鈥檝e clicked the kill button.Generally, this error may be ignored. If the error appears repeatedly, you should consider reviewing crash reports, running a timing report, or contacting us for support.
Do艂膮cz do Discord