Customization with Minecraft - Custom Mohist server stops after 5 seconds

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Phobos’ v2.6.0.12 (Mainline)
Virtualization Docker
Application Minecraft
Module MinecraftModule
Running in Container Yes
Current State Failed

Problem Description

Issue

I am trying to run a Mohist 1.20.1 custom server on Hostinger. I uploaded the mohist.jar file and set a startup command with optimized Java arguments. However, when I start the server, it stops within 5 seconds without a clear error message. The panel suggests checking the log files, but there is no obvious issue in latest.log.

I would like assistance in troubleshooting why the server is failing to start. Could you check if the startup command is correctly applied, or if there is any restriction on custom .jar files in Hostinger’s environment?

Reproduction Steps

  • Uploaded a custom mohist.jar file to the server.
  • Set up a custom startup command with Java arguments: java -Xmx12G -jar mohist.jar nogui
  • Started the server from the Hostinger panel.
  • The server stops within 5 seconds with the error: “The Minecraft server stopped within 5 seconds of starting…”

If you read the console and the custom startup command’s description, you would see that you did it wrong. The correct way is to use the placeholders, for example:
-Xmx{Memory}M -jar {JarFile}
Where you select the mohist jar as the Server Jar setting

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.