Thanks for the great work. I think, this is a pretty neat sollution for running a PZ server. May i have a few suggestioins?
in the .env file, you should export, not just the admin password, but also the server name. Not everyone want's to live in "da-hood" 😄
Writing a step-by-step guide what to do after docker comose up -d would be very nice, because I'm honestly, a little lost.
I've entered the container, and tried to start the server with bash zomboid_scripts/entry.sh but I'm sure I don't have to tell you, that did not go well. It got stuck at quitting.
root@6d4241d2fb88:/opt# bash ./zomboid_scripts/entry.sh
Using args: -Xmx8G -Xms4G -- -servername da-hood -cachedir=/opt/zomboid_data -adminpassword asdasdasd2
THE PID OF THE SERVER IS 80!
64-bit java detected
pzexe: looking for PZXInitThreads.so
pzexe: libPZXInitThreads64.so was not found. This is ok for a server, but multi-core rendering won't work on a client without it.
pzexe: about to run java hack to locate libjvm.so...
pzexe: executing "java -classpath pzexe.jar -Djava.library.path=. zombie.pzexe"
pzexe.java: loading shared library "pzexe_jni64"
JVM=/opt/zomboid_app/jre64/lib/server/libjvm.so
pxexe: /proc/self/exe=/opt/zomboid_app/ProjectZomboid64
pzexe config file: /opt/zomboid_app/ProjectZomboid64.json
pzexe: mainClass: zombie/network/GameServer
pzexe: classpath: -Djava.class.path=java/.:java/istack-commons-runtime.jar:java/jassimp.jar:java/javacord-2.0.17-shaded.jar:java/javax.activation-api.jar:java/jaxb-api.jar:java/jaxb-runtime.jar:java/lwjgl.jar:java/lwjgl-natives-linux.jar:java/lwjgl-glfw.jar:java/lwjgl-glfw-natives-linux.jar:java/lwjgl-jemalloc.jar:java/lwjgl-jemalloc-natives-linux.jar:java/lwjgl-opengl.jar:java/lwjgl-opengl-natives-linux.jar:java/lwjgl_util.jar:java/sqlite-jdbc-3.27.2.1.jar:java/trove-3.0.3.jar:java/uncommons-maths-1.2.3.jar:java/commons-compress-1.18.jar
pzexe: vmArg (json) 1: -Djava.awt.headless=true
pzexe: vmArg (json) 2: -Xmx8g
pzexe: vmArg (json) 3: -Dzomboid.steam=1
pzexe: vmArg (json) 4: -Dzomboid.znetlog=1
pzexe: vmArg (json) 5: -Djava.library.path=linux64/:natives/
pzexe: vmArg (json) 6: -Djava.security.egd=file:/dev/urandom
pzexe: vmArg (json) 7: -XX:+UseZGC
pzexe: vmArg (json) 8: -XX:-OmitStackTraceInFastThrow
pzexe: vmArg (args) 9: -Xmx8G
pzexe: vmArg (args) 10: -Xms4G
pzexe: using jvm "/opt/zomboid_app/jre64/lib/server/libjvm.so"
sleeping
sleeping
[21.999s][error][gc] Failed to commit memory (Not enough space)
sleeping
[34.035s][error][gc] Forced to lower max Java heap size from 8192M(100%) to 4094M(50%)
[34.037s][error][gc] Failed to allocate initial Java heap (4096M)
Failed to create Java VM
sleeping
quitting
^C^C
^C^C^C^C^C^C
One cause could be, that I have a webserver, with 4GB rof RAM only, and I forgot to change the server properties to a lower memory size (BTW: This also could go to the .env file) But as you can see at the end, even Ctrl+C did not quit it. I had to force destroy the container.
So if you could tell me, how did I mess this up so badly, I would listen and learn from it. 😃 Also, how do you manage mods with the containers? I can see the workshop and data folders, but they are just empty.
Hey Brenno!
Thanks for the great work. I think, this is a pretty neat sollution for running a PZ server. May i have a few suggestioins?
docker comose up -d
would be very nice, because I'm honestly, a little lost.I've entered the container, and tried to start the server with
bash zomboid_scripts/entry.sh
but I'm sure I don't have to tell you, that did not go well. It got stuck at quitting.One cause could be, that I have a webserver, with 4GB rof RAM only, and I forgot to change the server properties to a lower memory size (BTW: This also could go to the .env file) But as you can see at the end, even Ctrl+C did not quit it. I had to force destroy the container.
So if you could tell me, how did I mess this up so badly, I would listen and learn from it. 😃 Also, how do you manage mods with the containers? I can see the
workshop
anddata
folders, but they are just empty.Thanks in advance !