itzg / docker-minecraft-server

Docker image that provides a Minecraft Server that will automatically download selected version at startup
https://docker-minecraft-server.readthedocs.io/
Apache License 2.0
9.23k stars 1.52k forks source link

MC 1.18 failing install with helm chart, cause Java 17 needed #1164

Closed Conspir3D closed 2 years ago

Conspir3D commented 2 years ago

Describe the problem

Installing minecraft with the helm chart is failing because of old java version

Container definition

helm repo add minecraft-server-charts https://itzg.github.io/minecraft-server-charts/
helm repo update
helm upgrade --install minecraft -f values.yaml --set minecraftServer.eula=true minecraft-server-charts/minecraft --namespace=minecraft

Container logs

chmod: changing permissions of '/data': Operation not permitted
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwsr-x 4 0 2000 4096 Dec 6 22:11 /data'
[init] Resolved version given 1.18 into 1.18
[init] Resolving type given SPIGOT
[init] Downloading Spigot from https://download.getbukkit.org/spigot/spigot-1.18.jar ...
[init] Disabling whitelist
[init] Setting whitelist to 'false' in /data/server.properties
[init] Setting white-list to 'false' in /data/server.properties
[init] Setting server-name to 'Dedicated Server' in /data/server.properties
[init] Setting server-port to '25565' in /data/server.properties
[init] Setting motd to 'Welcome to Filip's BiomeCluster!' in /data/server.properties
[init] Setting allow-nether to 'true' in /data/server.properties
[init] Setting announce-player-achievements to 'true' in /data/server.properties
[init] Setting enable-command-block to 'true' in /data/server.properties
[init] Setting spawn-animals to 'true' in /data/server.properties
[init] Setting spawn-monsters to 'true' in /data/server.properties
[init] Setting spawn-npcs to 'true' in /data/server.properties
[init] Setting generate-structures to 'true' in /data/server.properties
[init] Setting view-distance to '10' in /data/server.properties
[init] Setting hardcore to 'false' in /data/server.properties
[init] Setting max-build-height to '1024' in /data/server.properties
[init] Setting force-gamemode to 'true' in /data/server.properties
[init] Setting max-tick-time to '60000' in /data/server.properties
[init] Setting enable-rcon to 'true' in /data/server.properties
[init] Setting rcon.password to '7Kuchen?xy' in /data/server.properties
[init] Setting rcon.port to '25575' in /data/server.properties
[init] Setting max-players to '50' in /data/server.properties
[init] Setting max-world-size to '6000' in /data/server.properties
[init] Setting level-name to 'world' in /data/server.properties
[init] Setting level-seed to '-2268290183235354767' in /data/server.properties
[init] Setting pvp to 'true' in /data/server.properties
[init] Setting online-mode to 'true' in /data/server.properties
[init] Setting level-type to 'DEFAULT' in /data/server.properties
[init] Setting difficulty to 'easy' in /data/server.properties
[init] Setting mode
[init] Setting gamemode to 'survival' in /data/server.properties
[init] Updating ops
[init] log4j2.xml already created, skipping
[init] Checking for JSON files.
[init] Setting initial memory to 1024M and max to 1024M
[init] Starting the Minecraft server...
Unbundling libraries to /data/bundler
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'.
2021-12-06T22:11:31.786Z INFO mc-server-runner Done
itzg commented 2 years ago

The image needs to be pulled to the latest

itzg commented 2 years ago

...that's weird, the chart's deployment manifest already states imagePullPolicy: Always. Can set the imageTag value to "java17" to force the latest.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.