Help running Curseforge "All of Create" in Kubernetes using itzg/docker-minecraft-server image

Hi all, Still new to hosting my own server, maybe someone could help point me in the right direction. I am trying to start up a server for https://www.curseforge.com/minecraft/modpacks/aoc using this docker image: https://github.com/itzg/docker-minecraft-server, running with a GKE auto cluster in GCP. I get a failure due to a mod not installing: https://www.curseforge.com/minecraft/mc-mods/just-enough-resources-jer/files/4862430 I was able to fix this locally when using docker-compose because I could just download the mod and put it in my data directory, but I am having trouble getting this file into my persistent volume.
CurseForge
All of Create
The Ultimate Create Experience | Create with Addons and Great Performance 187.7K Downloads | Modpacks
CurseForge
Just Enough Resources (JER)
A JEI addon that adds mob drops, ore gen, .. 153.8M Downloads | Mods
8 Replies
Admincraft Meta
Admincraft Meta4mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by qosmiq#0
CØSMIC
CØSMICOP4mo ago
Here is my k8s yaml:
apiVersion: apps/v1
kind: Deployment
metadata:
name: mc
spec:
replicas: 1
selector:
matchLabels:
app: mc
template:
metadata:
labels:
app: mc
spec:
containers:
- name: mc
image: itzg/minecraft-server
tty: true
stdin: true
ports:
- containerPort: 25565
env:
- name: TYPE
value: AUTO_CURSEFORGE
- name: CF_API_KEY
value: "XYZ"
- name: CF_PAGE_URL
value: "https://www.curseforge.com/minecraft/modpacks/aoc/files/5656821"
- name: MEMORY
value: "4G"
- name: VERSION
value: "1.19.2"
- name: EULA
value: "TRUE"
- name: ALLOW_FLIGHT
value: "TRUE"
volumeMounts:
- name: mc-data
mountPath: /data
volumes:
- name: mc-data
persistentVolumeClaim:
claimName: mc-pvc
apiVersion: apps/v1
kind: Deployment
metadata:
name: mc
spec:
replicas: 1
selector:
matchLabels:
app: mc
template:
metadata:
labels:
app: mc
spec:
containers:
- name: mc
image: itzg/minecraft-server
tty: true
stdin: true
ports:
- containerPort: 25565
env:
- name: TYPE
value: AUTO_CURSEFORGE
- name: CF_API_KEY
value: "XYZ"
- name: CF_PAGE_URL
value: "https://www.curseforge.com/minecraft/modpacks/aoc/files/5656821"
- name: MEMORY
value: "4G"
- name: VERSION
value: "1.19.2"
- name: EULA
value: "TRUE"
- name: ALLOW_FLIGHT
value: "TRUE"
volumeMounts:
- name: mc-data
mountPath: /data
volumes:
- name: mc-data
persistentVolumeClaim:
claimName: mc-pvc
Here is the error:
forge-1.19.2-43.3.5-universal.jar |Forge |forge |43.3.5 |NONE |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90[12:56:01] [main/ERROR] [minecraft/Main]: Failed to start the minecraft server
net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [
Mod §ejerintegration§r requires §6jeresources§r §o0.14.1.160 or above§r
....
forge-1.19.2-43.3.5-universal.jar |Forge |forge |43.3.5 |NONE |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90[12:56:01] [main/ERROR] [minecraft/Main]: Failed to start the minecraft server
net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [
Mod §ejerintegration§r requires §6jeresources§r §o0.14.1.160 or above§r
....
I have tried an init container:
initContainers:
- name: copy-file
image: alpine:latest
command: ["sh", "-c", "apk add curl && mkdir -p /data/mods && curl -o /data/mods/JustEnoughResources-1.19.2-1.2.3.243.jar https://www.curseforge.com/minecraft/mc-mods/just-enough-resources-jer/download/4862430"]
initContainers:
- name: copy-file
image: alpine:latest
command: ["sh", "-c", "apk add curl && mkdir -p /data/mods && curl -o /data/mods/JustEnoughResources-1.19.2-1.2.3.243.jar https://www.curseforge.com/minecraft/mc-mods/just-enough-resources-jer/download/4862430"]
Which does show a successful download:
PS D:\dev\minecraft-server-cloud\gke> kubectl logs mc-fcdf58b65-68sv9 -c copy-file
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
(1/10) Installing ca-certificates (20240705-r0)
(2/10) Installing brotli-libs (1.1.0-r2)
(3/10) Installing c-ares (1.28.1-r0)
(4/10) Installing libunistring (1.2-r0)
(5/10) Installing libidn2 (2.3.7-r0)
(6/10) Installing nghttp2-libs (1.62.1-r0)
(7/10) Installing libpsl (0.21.5-r1)
(8/10) Installing zstd-libs (1.5.6-r0)
(9/10) Installing libcurl (8.9.1-r2)
(10/10) Installing curl (8.9.1-r2)
Executing busybox-1.36.1-r29.trigger
Executing ca-certificates-20240705-r0.trigger
OK: 13 MiB in 24 packages
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8549 100 8549 0 0 77129 0 --:--:-- --:--:-- --:--:-- 77718
PS D:\dev\minecraft-server-cloud\gke> kubectl logs mc-fcdf58b65-68sv9 -c copy-file
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
(1/10) Installing ca-certificates (20240705-r0)
(2/10) Installing brotli-libs (1.1.0-r2)
(3/10) Installing c-ares (1.28.1-r0)
(4/10) Installing libunistring (1.2-r0)
(5/10) Installing libidn2 (2.3.7-r0)
(6/10) Installing nghttp2-libs (1.62.1-r0)
(7/10) Installing libpsl (0.21.5-r1)
(8/10) Installing zstd-libs (1.5.6-r0)
(9/10) Installing libcurl (8.9.1-r2)
(10/10) Installing curl (8.9.1-r2)
Executing busybox-1.36.1-r29.trigger
Executing ca-certificates-20240705-r0.trigger
OK: 13 MiB in 24 packages
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8549 100 8549 0 0 77129 0 --:--:-- --:--:-- --:--:-- 77718
And I get this error:
Exception in thread "main" cpw.mods.niofs.union.UnionFileSystem$UncheckedIOException: java.util.zip.ZipException: zip END header not found
Caused by: java.util.zip.ZipException: zip END header not found
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.findEND(Unknown Source)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.initCEN(Unknown Source)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.<init>(Unknown Source)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getZipFileSystem(Unknown Source)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(Unknown Source)
at java.base/java.nio.file.FileSystems.newFileSystem(Unknown Source)
at java.base/java.nio.file.FileSystems.newFileSystem(Unknown Source)
.....
Exception in thread "main" cpw.mods.niofs.union.UnionFileSystem$UncheckedIOException: java.util.zip.ZipException: zip END header not found
Caused by: java.util.zip.ZipException: zip END header not found
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.findEND(Unknown Source)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.initCEN(Unknown Source)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.<init>(Unknown Source)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getZipFileSystem(Unknown Source)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(Unknown Source)
at java.base/java.nio.file.FileSystems.newFileSystem(Unknown Source)
at java.base/java.nio.file.FileSystems.newFileSystem(Unknown Source)
.....
Snow Kit
Snow Kit4mo ago
if you're going to be running a bunch of the same copies of a minecraft server (with the same exact modpack), it would be better to just create your own docker image
CØSMIC
CØSMICOP4mo ago
This is just for personal use to play with some friends
ProGamingDk
ProGamingDk4mo ago
completely wrong size you arent downloading the jar you're probably just downloading html and outputting it to a .jar https://mediafilez.forgecdn.net/files/4862/430/JustEnoughResources-1.19.2-1.2.3.243.jar is the url you want tested and downloads correct size
ProGamingDk
ProGamingDk4mo ago
No description
CØSMIC
CØSMICOP4mo ago
Ahhh, thank you! I will test a bit later You're awesome, thanks! Feel a bit stupid not checking the filesize lol !solved
Admincraft Meta
Admincraft Meta4mo ago
post closed!
The post/thread has been closed!
Requested by qosmiq#0

Did you find this page helpful?