BLUF (Bottom Line Up Front): Minecraft Server Rock-on broken due to Java version mismatch, is not updating itself. Send Help Please.
Having a bit of trouble with the Minecraft Rock-on (itgz/minecraft-server docker image). Following error message in the logs:
[init] server.properties already created, skipping
[init] log4j2.xml already created, skipping
[init] Checking for JSON files.
[init] Setting initial memory to 1G and max to 1G
[init] Starting the Minecraft server…
Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.UnsupportedClassVersionError: net/minecraft/server/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
…
2021-06-20T14:19:34.594-0400 WARN mc-server-runner sub-process failed {“exitCode”: 1}
2021-06-20T14:19:34.594-0400 INFO mc-server-runner Done
According to the project’s page at Dockerhub, this issue was fixed a while back and all is well. Except, for me it isn’t. The Rockstor WebUI says mc server running, but the log shows it’s restarting every so often because the container dies due to Java version mismatch, lather/rinse/repeat.
And the project page says that this was a known issue, fixed recently, and the container will automatically pull and update itself at startup. Restarting container/rock-on service/entire NAS doesn’t have any effect.
I considered uninstalling and then reinstalling to see if the newer version of the container would show up. If there’s a way to do this in the WebUI I’ve not spotted it. I know that the CLI (delete-rockon) is an option, and I’ve backed up the configuration already. Just don’t want to uninstall and then re-install a non-working container.
Sorry for the short novel, but any advice you can offer is greatly appreciated.
Cheers!