Hey MineOS community.
TL;DR
MineOS on Ubuntu Server can’t properly start Forge 1.20.1 servers through the Web UI because the server jar is located in the libraries folder. For 1.20.4, manual installation works but requires extra steps. Looking for a solution to make MineOS handle Forge servers more smoothly.
A couple of days ago I decided to make a modded server with Forge. I have mineos-node running on Ubuntu Server. Normally I only create survival servers and they just run fine and can start up, but when I created my Forge 1.20.4 server, I needed to go to the /var/games/minecraft/servers/my-server
folder on my server and manually create the server jar with java -jar forge-1.20.4-x-installer.jar --installServer
, and then changing the runnable jar to the newly created server
or shim
jar in MineOS and updating the server.config
appropriately.
While this was a slight burden, I at least got it working, but for Forge 1.20.1 the server jar is located inside the libraries
folder so MineOS can’t discover it and change the runnable jar. Also moving the server jar to the root of the server folder lets MineOS discover the server jar, but does not let MineOS startup the server through the Web UI.
What is causing this issue and how can I prevent it in the future? Any help, would be greatly appreciated!
For context, this is my run.sh
file which was in server folder:
#!/usr/bin/env sh
# Forge requires a configured set of both JVM and program arguments.
# Add custom JVM arguments to the user_jvm_args.txt
# Add custom program arguments {such as nogui} to this file in the next line before the "$@" or
# pass them to this script directly
java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.20.1-47.3.0/unix_args.txt "$@"
This is what I currently use to startup my server, which works fine, but it defeats the purpose of using MineOS.