Closed tomlarkworthy closed 6 months ago
REPOSITORY TAG IMAGE ID CREATED SIZE
itzg/minecraft-server latest 33a235aa35e6 2 years ago 873MB
itzg/minecraft-server java16 409154d896a3 2 years ago 654MB
oh maybe I have ancient image
OK it was that, and it fixed the MEMORY flag, lol
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x 9 1000 1000 4096 Apr 25 18:30 /data'
[init] Resolving type given VANILLA
[init] Resolved version given LATEST into 1.20.5
[init] Downloading 1.20.5 server...
[mc-image-helper] 18:31:00.355 INFO : Created/updated 1 property in /data/server.properties
[mc-image-helper] 18:31:02.962 INFO : The file /data/ops.json already exists, so no changes will be made
[init] Setting initial memory to 7G and max to 7G
[init] Starting the Minecraft server...
So what exactly did you do? I'm having the same error, but with version 1.20.6
minecraft-server-mc-1 | [init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 8 1000 1000 4096 Jun 10 17:41 /data' minecraft-server-mc-1 | [init] Autopause functionality enabled minecraft-server-mc-1 | [init] Resolving type given VANILLA minecraft-server-mc-1 | [init] Resolved version given LATEST into 1.20.6 minecraft-server-mc-1 | [init] Setting initial memory to 1G and max to 1G minecraft-server-mc-1 | [init] Starting the Minecraft server... minecraft-server-mc-1 | Error: LinkageError occurred while loading main class net.minecraft.bundler.Main minecraft-server-mc-1 | java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0 minecraft-server-mc-1 | 2024-06-10T17:46:14.444Z WARN mc-server-runner Minecraft server failed. Inspect logs above for errors that indicate cause. DO NOT report this line as an error. {"exitCode": 1} minecraft-server-mc-1 | 2024-06-10T17:46:14.445Z INFO mc-server-runner Done minecraft-server-mc-1 exited with code 1
Use java21 image tag or re-pull latest
https://docker-minecraft-server.readthedocs.io/en/latest/versions/java/
Describe the problem
Recent problem that the latest server doesn't seem to startup for me.
Container definition
(the memory flag doesn't seem to work but NVM)
Container logs