weidingerhp / kubernetes-spigot-home

0 stars 1 forks source link

Can't running jvm #1

Closed Moomink closed 2 years ago

Moomink commented 2 years ago

When I run the container as described in Docker Hub, I get the following error.

$ docker run --rm -it -v data:/mnt/minecraft hapewe/spigot
Starting minecraft server with heap: HEAP 2G
Unrecognized VM option 'UseLargePagesInMetaspace'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

This error does not occur in Jre16, but it does occur in jre17." The "UseLargePagesInMetaspace" option was a warning in jre16, but I think it was removed in jre17. I don't know how it works in k8s, but I think it's better to remove this option.

jdk 16 release note

thavlik commented 2 years ago

Rolling back the version to 1.17 changes (but does fix) things:

$ docker run --rm -it -e HEAP=8G -v mc:/opt/minecraft -p 25565:25565 hapewe/spigot:1.17
Unable to find image 'hapewe/spigot:1.17' locally
1.17: Pulling from hapewe/spigot
5843afab3874: Already exists
6044449a9168: Pull complete
6c930ff1682f: Pull complete
b332a3deca11: Pull complete
7acfca67a343: Pull complete
df78f117fde7: Pull complete
Digest: sha256:1ee8f2cc696f1ca6980a68446391283d6e1682b86ef0a9b83ab9dacf95bd21c9
Status: Downloaded newer image for hapewe/spigot:1.17
Starting minecraft server with heap: HEAP 8G
OpenJDK 64-Bit Server VM warning: Ignoring option UseLargePagesInMetaspace; support was removed in 16.0
Unbundling libraries to /mnt/minecraft/bundler
Unpacking spigot-1.18-R0.1-SNAPSHOT.jar (versions:spigot-1.18-R0.1-SNAPSHOT.jar) to /mnt/minecraft/bundler/versions/spigot-1.18-R0.1-SNAPSHOT.jar
Unpacking asm-9.2.jar (libraries:asm-9.2.jar) to /mnt/minecraft/bundler/libraries/asm-9.2.jar
Unpacking authlib-3.2.38.jar (libraries:authlib-3.2.38.jar) to /mnt/minecraft/bundler/libraries/authlib-3.2.38.jar
Unpacking brigadier-1.0.18.jar (libraries:brigadier-1.0.18.jar) to /mnt/minecraft/bundler/libraries/brigadier-1.0.18.jarUnpacking bungeecord-chat-1.16-R0.4.jar (libraries:bungeecord-chat-1.16-R0.4.jar) to /mnt/minecraft/bundler/libraries/bungeecord-chat-1.16-R0.4.jar
Unpacking checker-qual-3.12.0.jar (libraries:checker-qual-3.12.0.jar) to /mnt/minecraft/bundler/libraries/checker-qual-3.12.0.jar
Unpacking commons-codec-1.11.jar (libraries:commons-codec-1.11.jar) to /mnt/minecraft/bundler/libraries/commons-codec-1.11.jar
Unpacking commons-io-2.11.0.jar (libraries:commons-io-2.11.0.jar) to /mnt/minecraft/bundler/libraries/commons-io-2.11.0.jar
Unpacking commons-lang-2.6.jar (libraries:commons-lang-2.6.jar) to /mnt/minecraft/bundler/libraries/commons-lang-2.6.jarUnpacking commons-lang3-3.12.0.jar (libraries:commons-lang3-3.12.0.jar) to /mnt/minecraft/bundler/libraries/commons-lang3-3.12.0.jar
Unpacking datafixerupper-4.0.26.jar (libraries:datafixerupper-4.0.26.jar) to /mnt/minecraft/bundler/libraries/datafixerupper-4.0.26.jar
Unpacking error_prone_annotations-2.7.1.jar (libraries:error_prone_annotations-2.7.1.jar) to /mnt/minecraft/bundler/libraries/error_prone_annotations-2.7.1.jar
Unpacking failureaccess-1.0.1.jar (libraries:failureaccess-1.0.1.jar) to /mnt/minecraft/bundler/libraries/failureaccess-1.0.1.jar
Unpacking fastutil-8.5.6.jar (libraries:fastutil-8.5.6.jar) to /mnt/minecraft/bundler/libraries/fastutil-8.5.6.jar
Unpacking gson-2.8.8.jar (libraries:gson-2.8.8.jar) to /mnt/minecraft/bundler/libraries/gson-2.8.8.jar
Unpacking guava-31.0.1-jre.jar (libraries:guava-31.0.1-jre.jar) to /mnt/minecraft/bundler/libraries/guava-31.0.1-jre.jarUnpacking httpclient-4.5.13.jar (libraries:httpclient-4.5.13.jar) to /mnt/minecraft/bundler/libraries/httpclient-4.5.13.jar
Unpacking httpcore-4.4.14.jar (libraries:httpcore-4.4.14.jar) to /mnt/minecraft/bundler/libraries/httpcore-4.4.14.jar
Unpacking j2objc-annotations-1.3.jar (libraries:j2objc-annotations-1.3.jar) to /mnt/minecraft/bundler/libraries/j2objc-annotations-1.3.jar
Unpacking javabridge-1.2.24.jar (libraries:javabridge-1.2.24.jar) to /mnt/minecraft/bundler/libraries/javabridge-1.2.24.jar
Unpacking javax.inject-1.jar (libraries:javax.inject-1.jar) to /mnt/minecraft/bundler/libraries/javax.inject-1.jar
Unpacking jcl-over-slf4j-1.7.30.jar (libraries:jcl-over-slf4j-1.7.30.jar) to /mnt/minecraft/bundler/libraries/jcl-over-slf4j-1.7.30.jar
Unpacking jline-2.12.1.jar (libraries:jline-2.12.1.jar) to /mnt/minecraft/bundler/libraries/jline-2.12.1.jar
Unpacking jna-5.9.0.jar (libraries:jna-5.9.0.jar) to /mnt/minecraft/bundler/libraries/jna-5.9.0.jar
Unpacking jna-platform-5.9.0.jar (libraries:jna-platform-5.9.0.jar) to /mnt/minecraft/bundler/libraries/jna-platform-5.9.0.jar
Unpacking jopt-simple-5.0.4.jar (libraries:jopt-simple-5.0.4.jar) to /mnt/minecraft/bundler/libraries/jopt-simple-5.0.4.jar
Unpacking json-simple-1.1.1.jar (libraries:json-simple-1.1.1.jar) to /mnt/minecraft/bundler/libraries/json-simple-1.1.1.jar
Unpacking jsr305-3.0.2.jar (libraries:jsr305-3.0.2.jar) to /mnt/minecraft/bundler/libraries/jsr305-3.0.2.jar
Unpacking listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar (libraries:listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar) to /mnt/minecraft/bundler/libraries/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
Unpacking log4j-api-2.14.1.jar (libraries:log4j-api-2.14.1.jar) to /mnt/minecraft/bundler/libraries/log4j-api-2.14.1.jarUnpacking log4j-core-2.14.1.jar (libraries:log4j-core-2.14.1.jar) to /mnt/minecraft/bundler/libraries/log4j-core-2.14.1.jar
Unpacking log4j-iostreams-2.14.1.jar (libraries:log4j-iostreams-2.14.1.jar) to /mnt/minecraft/bundler/libraries/log4j-iostreams-2.14.1.jar
Unpacking log4j-slf4j18-impl-2.14.1.jar (libraries:log4j-slf4j18-impl-2.14.1.jar) to /mnt/minecraft/bundler/libraries/log4j-slf4j18-impl-2.14.1.jar
Unpacking maven-artifact-3.8.1.jar (libraries:maven-artifact-3.8.1.jar) to /mnt/minecraft/bundler/libraries/maven-artifact-3.8.1.jar
Unpacking maven-builder-support-3.8.1.jar (libraries:maven-builder-support-3.8.1.jar) to /mnt/minecraft/bundler/libraries/maven-builder-support-3.8.1.jar
Unpacking maven-model-3.8.1.jar (libraries:maven-model-3.8.1.jar) to /mnt/minecraft/bundler/libraries/maven-model-3.8.1.jar
Unpacking maven-model-builder-3.8.1.jar (libraries:maven-model-builder-3.8.1.jar) to /mnt/minecraft/bundler/libraries/maven-model-builder-3.8.1.jar
Unpacking maven-repository-metadata-3.8.1.jar (libraries:maven-repository-metadata-3.8.1.jar) to /mnt/minecraft/bundler/libraries/maven-repository-metadata-3.8.1.jar
Unpacking maven-resolver-api-1.6.2.jar (libraries:maven-resolver-api-1.6.2.jar) to /mnt/minecraft/bundler/libraries/maven-resolver-api-1.6.2.jar
Unpacking maven-resolver-connector-basic-1.7.0.jar (libraries:maven-resolver-connector-basic-1.7.0.jar) to /mnt/minecraft/bundler/libraries/maven-resolver-connector-basic-1.7.0.jar
Unpacking maven-resolver-impl-1.6.2.jar (libraries:maven-resolver-impl-1.6.2.jar) to /mnt/minecraft/bundler/libraries/maven-resolver-impl-1.6.2.jar
Unpacking maven-resolver-provider-3.8.1.jar (libraries:maven-resolver-provider-3.8.1.jar) to /mnt/minecraft/bundler/libraries/maven-resolver-provider-3.8.1.jar
Unpacking maven-resolver-spi-1.6.2.jar (libraries:maven-resolver-spi-1.6.2.jar) to /mnt/minecraft/bundler/libraries/maven-resolver-spi-1.6.2.jar
Unpacking maven-resolver-transport-http-1.7.0.jar (libraries:maven-resolver-transport-http-1.7.0.jar) to /mnt/minecraft/bundler/libraries/maven-resolver-transport-http-1.7.0.jar
Unpacking maven-resolver-util-1.6.2.jar (libraries:maven-resolver-util-1.6.2.jar) to /mnt/minecraft/bundler/libraries/maven-resolver-util-1.6.2.jar
Unpacking mysql-connector-java-8.0.27.jar (libraries:mysql-connector-java-8.0.27.jar) to /mnt/minecraft/bundler/libraries/mysql-connector-java-8.0.27.jar
Unpacking netty-all-4.1.68.Final.jar (libraries:netty-all-4.1.68.Final.jar) to /mnt/minecraft/bundler/libraries/netty-all-4.1.68.Final.jar
Unpacking org.eclipse.sisu.inject-0.3.4.jar (libraries:org.eclipse.sisu.inject-0.3.4.jar) to /mnt/minecraft/bundler/libraries/org.eclipse.sisu.inject-0.3.4.jar
Unpacking oshi-core-5.8.2.jar (libraries:oshi-core-5.8.2.jar) to /mnt/minecraft/bundler/libraries/oshi-core-5.8.2.jar
Unpacking plexus-interpolation-1.25.jar (libraries:plexus-interpolation-1.25.jar) to /mnt/minecraft/bundler/libraries/plexus-interpolation-1.25.jar
Unpacking plexus-utils-3.2.1.jar (libraries:plexus-utils-3.2.1.jar) to /mnt/minecraft/bundler/libraries/plexus-utils-3.2.1.jar
Unpacking protobuf-java-3.11.4.jar (libraries:protobuf-java-3.11.4.jar) to /mnt/minecraft/bundler/libraries/protobuf-java-3.11.4.jar
Unpacking slf4j-api-1.8.0-beta4.jar (libraries:slf4j-api-1.8.0-beta4.jar) to /mnt/minecraft/bundler/libraries/slf4j-api-1.8.0-beta4.jar
Unpacking snakeyaml-1.28.jar (libraries:snakeyaml-1.28.jar) to /mnt/minecraft/bundler/libraries/snakeyaml-1.28.jar
Unpacking spigot-api-1.18-R0.1-SNAPSHOT.jar (libraries:spigot-api-1.18-R0.1-SNAPSHOT.jar) to /mnt/minecraft/bundler/libraries/spigot-api-1.18-R0.1-SNAPSHOT.jar
Unpacking sqlite-jdbc-3.36.0.3.jar (libraries:sqlite-jdbc-3.36.0.3.jar) to /mnt/minecraft/bundler/libraries/sqlite-jdbc-3.36.0.3.jar
Starting server
Unsupported Java detected (60.0). This version of Minecraft requires at least Java 17. Check your Java version with the command 'java -version'.
Moomink commented 2 years ago

Okay. I'll run it on 1.17 for now.Thank you.

weidingerhp commented 2 years ago

Assume it was an OOM - but i am not sure why it does not print it to the CMD-Line....