Skip to content

Container Image doesn't run #267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vorburger opened this issue Oct 29, 2021 · 1 comment
Closed

Container Image doesn't run #267

vorburger opened this issue Oct 29, 2021 · 1 comment
Assignees

Comments

@vorburger
Copy link
Member

vorburger commented Oct 29, 2021

With #260 fixed, it now builds again - but doesn't actually run, so #259 next step is blocked on this:

$ podman run --rm -p 25565:25565 -p 8080:8080 -p 7070:7070 minecraft-storeys-maker
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x. 3 1000 1000 4096 Oct 29 15:37 /data'
[init] Resolved version given LATEST into 1.17.1
[init] Resolving type given SPONGEVANILLA
[init] Choosing branch for Sponge
[init] Choosing Version for Sponge
[init] Downloading spongevanilla-1.12.2-7.3.1-RC391.jar ...
[init] Creating server.properties in /data/server.properties
[init] Disabling whitelist
[init] Setting whitelist to 'false' in /data/server.properties
[init] Setting white-list to 'false' in /data/server.properties
[init] Adding server-name with 'Dedicated Server' in /data/server.properties
[init] Setting server-port to '25565' in /data/server.properties
[init] Setting motd to 'A Spongevanilla Minecraft Server powered by Docker' in /data/server.properties
[init] Setting enable-rcon to 'true' in /data/server.properties
[init] Setting rcon.password to 'minecraft' in /data/server.properties
[init] Setting rcon.port to '25575' in /data/server.properties
[init] Setting level-name to 'world' in /data/server.properties
[init] Setting online-mode to 'true' in /data/server.properties
[init] Checking for JSON files.
[init] Setting initial memory to 1G and max to 1G
[init] Starting the Minecraft server...
Downloading the versions manifest...
Downloading minecraft_server.1.12.2.jar... This can take a while.
https://launcher.mojang.com/v1/objects/886945bfb2b978778c3a0288fd7fab09d315b25f/server.jar
Successfully downloaded minecraft_server.1.12.2.jar and verified checksum!
Downloading launchwrapper-1.12.jar... This can take a while.
https://libraries.minecraft.net/net/minecraft/launchwrapper/1.12/launchwrapper-1.12.jar
Successfully downloaded launchwrapper-1.12.jar and verified checksum!
Exception in thread "main" java.lang.NoClassDefFoundError: net/minecraft/launchwrapper/Launch
        at org.spongepowered.server.launch.VanillaServerMain.main(VanillaServerMain.java:126)
        at org.spongepowered.server.launch.VersionCheckingMain.main(VersionCheckingMain.java:38)
Caused by: java.lang.ClassNotFoundException: net.minecraft.launchwrapper.Launch
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
        ... 2 more
2021-10-29T15:39:07.722Z        WARN    mc-server-runner        sub-process failed      {"exitCode": 1}
2021-10-29T15:39:07.728Z        INFO    mc-server-runner        Done

This is likely because something got changed in that itzg/minecraft-server base image... I'l try to figure out how to fix it.

@edewit FYI

@vorburger
Copy link
Member Author

#268 will fix this (when @edewit has merged it).

vorburger added a commit to vorburger/minecraft-storeys-maker that referenced this issue Feb 25, 2022
* issue-267:
  add missing :java8 to FROM itzg/minecraft-server in Dockerfile (fixes OASIS-learn-study#267)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant