BloodyMods / ServerStarter

MIT License
99 stars 62 forks source link

Server not starting On Linux ARM or WSL2 (Ubuntu) but starting on Windows #44

Closed herkulessi closed 2 years ago

herkulessi commented 2 years ago

I tried sstarting a ServerStarter server on both my Raspberry Pi (Running an ARM Linux) and on my PC (using WSL) and neither could start.

Staring it in Windows Powershell worked.

I used the same version of JAVA (17). Expected Behavior: Server starting on all 3 Platforms.

Actual Behavior: Server only starting on Windows. Linux ARM:

Error: Could not find or load main class @libraries.net.minecraftforge.forge.1.17.1-37.0.103.unix_args.txt

WSL Ubuntu x86_64:

Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: libraries/cpw/mods/bootstraplauncher/0.1.17/bootstraplauncher-0.1.17.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Unsupported major.minor version 60.0
BloodWorkXGaming commented 2 years ago

For the unsupported major.minor version you should try using Java 16 (which is what MC recommends)

I know ARM has some problems (which should however already have crashed earlier) therefore I am not sure what causes the error here. What files are in libraries/net/minecraftforge/forge/1.17.1-37.0.95? no unix_args.txt file?

herkulessi commented 2 years ago

There is a unix_args.txt in <FolderWithServerStarterJar>/setup/libraries/net/minecraftforge/forge/1.17.1-37.0.103/: unix_args.txt

NOTE: I added a java -version to the beginning of the .sh file to display the Java Version.

I still get the same bug on Java 16 in WSL, this time a bigger part of the Log (Maybe it Helps)

openjdk version "16" 2021-03-16
OpenJDK Runtime Environment (build 16+36-2231)
OpenJDK 64-Bit Server VM (build 16+36-2231, mixed mode, sharing)
Skipping download. Using existing serverstarter-2.2.0.jar
[22:57:57] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[22:57:57] [INFO]    Minecraft ServerStarter install/launcher jar
[22:57:57] [INFO]    (Created by BloodWorkXGaming with the help of Contributors)
[22:57:57] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[22:57:57] [INFO]
[22:57:57] [INFO]    This jar will launch a Minecraft Forge/Fabric Modded server
[22:57:57] [INFO]
[22:57:57] [INFO]    Github:    https://github.com/BloodyMods/ServerStarter
[22:57:57] [INFO]    Discord:   https://discord.gg/A3c5YfV
[22:57:57] [INFO]
[22:57:57] [INFO] You are playing All the Mods 7
[22:57:57] [INFO] Starting to install/launch the server, lean back!
[22:57:57] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[22:57:57] [INFO]
[22:57:57] [INFO] Testing http://example.com.
[22:57:57] [INFO] Reached http://example.com: true
[22:57:57] [INFO] Testing http://google.com.
[22:57:58] [INFO] Reached http://google.com: true
[22:57:58] [INFO] Reached 2 out of 2 IPs.
[22:57:58] [INFO] Server is already installed to correct version, to force install delete the serverstarter.lock File.
[22:57:58] [INFO] Starting Loader, output incoming
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: libraries/cpw/mods/bootstraplauncher/0.1.17/bootstraplauncher-0.1.17.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Unsupported major.minor version 60.0
[22:57:59] [INFO] Server has been stopped, it has started 1 times in 60min
[22:57:59] [INFO] Restarting server in 10 seconds, press ctrl+c to stop
[22:58:09] [INFO] Starting Loader, output incoming
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: libraries/cpw/mods/bootstraplauncher/0.1.17/bootstraplauncher-0.1.17.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Unsupported major.minor version 60.0
[22:58:09] [INFO] Server has been stopped, it has started 2 times in 60min
[22:58:09] [INFO] Restarting server in 10 seconds, press ctrl+c to stop

The ARM-Linux from my PI had the following output:

pi@piserver:~/ModPackServerFolder $ ./startserver.sh
openjdk version "16.0.2" 2021-07-20
OpenJDK Runtime Environment Temurin-16.0.2+7 (build 16.0.2+7)
OpenJDK 64-Bit Server VM Temurin-16.0.2+7 (build 16.0.2+7, mixed mode, sharing)
Skipping download. Using existing serverstarter-2.2.0.jar
[23:17:02] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[23:17:02] [INFO]    Minecraft ServerStarter install/launcher jar
[23:17:02] [INFO]    (Created by BloodWorkXGaming with the help of Contributors)
[23:17:02] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[23:17:02] [INFO]
[23:17:02] [INFO]    This jar will launch a Minecraft Forge/Fabric Modded server
[23:17:02] [INFO]
[23:17:02] [INFO]    Github:    https://github.com/BloodyMods/ServerStarter
[23:17:02] [INFO]    Discord:   https://discord.gg/A3c5YfV
[23:17:02] [INFO]
[23:17:02] [INFO] You are playing All the Mods 7
[23:17:02] [INFO] Starting to install/launch the server, lean back!
[23:17:02] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[23:17:02] [INFO]
[23:17:03] [INFO] Testing http://example.com.
[23:17:03] [INFO] Reached http://example.com: true
[23:17:03] [INFO] Testing http://google.com.
[23:17:04] [INFO] Reached http://google.com: true
[23:17:04] [INFO] Reached 2 out of 2 IPs.
[23:17:04] [INFO] Server is already installed to correct version, to force install delete the serverstarter.lock File.
[23:17:04] [INFO] Starting Loader, output incoming
Error: Could not find or load main class @libraries.net.minecraftforge.forge.1.17.1-37.0.103.unix_args.txt
[23:17:07] [INFO] Server has been stopped, it has started 1 times in 60min
[23:17:07] [INFO] Restarting server in 10 seconds, press ctrl+c to stop
^C

The Arm's unix_args.txt file:

pi@piserver:~/ModPackServerFolder $ cat ./setup/libraries/net/minecraftforge/forge/1.17.1-37.0.103/unix_args.txt
-p libraries/cpw/mods/bootstraplauncher/0.1.17/bootstraplauncher-0.1.17.jar:libraries/cpw/mods/securejarhandler/0.9.54/securejarhandler-0.9.54.jar:libraries/org/ow2/asm/asm-commons/9.1/asm-commons-9.1.jar:libraries/org/ow2/asm/asm-util/9.1/asm-util-9.1.jar:libraries/org/ow2/asm/asm-analysis/9.1/asm-analysis-9.1.jar:libraries/org/ow2/asm/asm-tree/9.1/asm-tree-9.1.jar:libraries/org/ow2/asm/asm/9.1/asm-9.1.jar
--add-modules ALL-MODULE-PATH
--add-opens java.base/java.util.jar=cpw.mods.securejarhandler
--add-exports java.base/sun.security.util=cpw.mods.securejarhandler
-DignoreList=bootstraplauncher-0.1.17.jar,securejarhandler-0.9.54.jar,asm-commons-9.1.jar,asm-util-9.1.jar,asm-analysis-9.1.jar,asm-tree-9.1.jar,asm-9.1.jar
-DlibraryDirectory=libraries
-DlegacyClassPath=libraries/cpw/mods/securejarhandler/0.9.54/securejarhandler-0.9.54.jar:libraries/org/ow2/asm/asm/9.1/asm-9.1.jar:libraries/org/ow2/asm/asm-commons/9.1/asm-commons-9.1.jar:libraries/org/ow2/asm/asm-tree/9.1/asm-tree-9.1.jar:libraries/org/ow2/asm/asm-util/9.1/asm-util-9.1.jar:libraries/org/ow2/asm/asm-analysis/9.1/asm-analysis-9.1.jar:libraries/net/minecraftforge/accesstransformers/8.0.4/accesstransformers-8.0.4.jar:libraries/org/antlr/antlr4-runtime/4.9.1/antlr4-runtime-4.9.1.jar:libraries/net/minecraftforge/eventbus/5.0.3/eventbus-5.0.3.jar:libraries/net/minecraftforge/forgespi/4.0.10/forgespi-4.0.10.jar:libraries/net/minecraftforge/coremods/5.0.1/coremods-5.0.1.jar:libraries/cpw/mods/modlauncher/9.0.7/modlauncher-9.0.7.jar:libraries/net/minecraftforge/unsafe/0.2.0/unsafe-0.2.0.jar:libraries/com/electronwill/night-config/core/3.6.3/core-3.6.3.jar:libraries/com/electronwill/night-config/toml/3.6.3/toml-3.6.3.jar:libraries/org/apache/maven/maven-artifact/3.6.3/maven-artifact-3.6.3.jar:libraries/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar:libraries/net/jodah/typetools/0.8.3/typetools-0.8.3.jar:libraries/org/apache/logging/log4j/log4j-api/2.14.1/log4j-api-2.14.1.jar:libraries/org/apache/logging/log4j/log4j-core/2.14.1/log4j-core-2.14.1.jar:libraries/net/minecrell/terminalconsoleappender/1.2.0/terminalconsoleappender-1.2.0.jar:libraries/org/jline/jline-reader/3.12.1/jline-reader-3.12.1.jar:libraries/org/jline/jline-terminal/3.12.1/jline-terminal-3.12.1.jar:libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar:libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar:libraries/org/openjdk/nashorn/nashorn-core/15.3/nashorn-core-15.3.jar:libraries/com/google/guava/guava/21.0/guava-21.0.jar:libraries/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar:libraries/net/minecraftforge/fmlloader/1.17.1-37.0.103/fmlloader-1.17.1-37.0.103.jar:libraries/net/minecraft/server/1.17.1-20210706.113038/server-1.17.1-20210706.113038-extra.jar
cpw.mods.bootstraplauncher.BootstrapLauncher
--launchTarget forgeserver
--fml.forgeVersion 37.0.103
--fml.mcVersion 1.17.1
--fml.forgeGroup net.minecraftforge
--fml.mcpVersion 20210706.113038
TheMasterTM69 commented 2 years ago

@BloodWorkXGaming is this issue still open or resolved in any way? i recently decided to run a server as well but most hosting websites run unbuntu and im getting the same problem but it works fine on my windows PC. It just cant seem to grab/load the file even though it is inside the folder. nothing helps.

tombaku commented 2 years ago

So it seems I have a similar issue to this and I'm not sure it needs a new thread so I'm going to put it here. I have the problem that is shown on the Pi server above with not finding a main class however I'm running windows 10 instead of a Pi

Any ideas on what is happening with this?


INFO: Checking java installation...

java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)

INFO: Found 64-bit Java
[00:08:21] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[00:08:21] [INFO]    Minecraft ServerStarter install/launcher jar
[00:08:21] [INFO]    (Created by BloodWorkXGaming with the help of Contributors)
[00:08:21] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[00:08:21] [INFO]
[00:08:21] [INFO]    This jar will launch a Minecraft Forge/Fabric Modded server
[00:08:21] [INFO]
[00:08:21] [INFO]    Github:    https://github.com/BloodyMods/ServerStarter
[00:08:21] [INFO]    Discord:   https://discord.gg/A3c5YfV
[00:08:21] [INFO]
[00:08:21] [INFO] You are playing Another Quality Modpack 3
[00:08:21] [INFO] Starting to install/launch the server, lean back!
[00:08:21] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[00:08:21] [INFO]
[00:08:21] [INFO] Testing http://example.com.
[00:08:22] [INFO] Reached http://example.com: true
[00:08:22] [INFO] Testing http://google.com.
[00:08:22] [INFO] Reached http://google.com: true
[00:08:22] [INFO] Reached 2 out of 2 IPs.
[00:08:22] [INFO] Server is already installed to correct version, to force install delete the serverstarter.lock File.
[00:08:22] [INFO] Starting Loader, output incoming
Error: Could not find or load main class @libraries.net.minecraftforge.forge.1.18.1-39.0.79.win_args.txt
[00:08:23] [INFO] Server has been stopped, it has started 1 times in 60min
[00:08:23] [INFO] Restarting server in 10 seconds, press ctrl+c to stop
Terminate batch job (Y/N)?
Shadowner83 commented 2 years ago

So it seems I have a similar issue to this and I'm not sure it needs a new thread so I'm going to put it here. I have the problem that is shown on the Pi server above with not finding a main class however I'm running windows 10 instead of a Pi

Any ideas on what is happening with this?

INFO: Checking java installation...

java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)

INFO: Found 64-bit Java
[00:08:21] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[00:08:21] [INFO]    Minecraft ServerStarter install/launcher jar
[00:08:21] [INFO]    (Created by BloodWorkXGaming with the help of Contributors)
[00:08:21] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[00:08:21] [INFO]
[00:08:21] [INFO]    This jar will launch a Minecraft Forge/Fabric Modded server
[00:08:21] [INFO]
[00:08:21] [INFO]    Github:    https://github.com/BloodyMods/ServerStarter
[00:08:21] [INFO]    Discord:   https://discord.gg/A3c5YfV
[00:08:21] [INFO]
[00:08:21] [INFO] You are playing Another Quality Modpack 3
[00:08:21] [INFO] Starting to install/launch the server, lean back!
[00:08:21] [INFO] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[00:08:21] [INFO]
[00:08:21] [INFO] Testing http://example.com.
[00:08:22] [INFO] Reached http://example.com: true
[00:08:22] [INFO] Testing http://google.com.
[00:08:22] [INFO] Reached http://google.com: true
[00:08:22] [INFO] Reached 2 out of 2 IPs.
[00:08:22] [INFO] Server is already installed to correct version, to force install delete the serverstarter.lock File.
[00:08:22] [INFO] Starting Loader, output incoming
Error: Could not find or load main class @libraries.net.minecraftforge.forge.1.18.1-39.0.79.win_args.txt
[00:08:23] [INFO] Server has been stopped, it has started 1 times in 60min
[00:08:23] [INFO] Restarting server in 10 seconds, press ctrl+c to stop
Terminate batch job (Y/N)?

Install Java 17 on your server. It was the issue from my end that prevented my server to start.

BloodWorkXGaming commented 2 years ago

Unsupported major.minor version 60.0 This line means the wrong java version is installed/used