Renegade-Master / zomboid-dedicated-server

Linux based Docker image containing a Dedicated Server for Project Zomboid.
https://hub.docker.com/r/renegademaster/zomboid-dedicated-server
Other
171 stars 57 forks source link

Not able to run even with correct permissions #67

Open EuleMitKeule opened 1 year ago

EuleMitKeule commented 1 year ago

Describe the bug I am unable to start the container using the provided commands even when running as a non-root user.

To Reproduce Steps to reproduce the behavior:

  1. mkdir zomboid
  2. cd zomboid
  3. mkdir ZomboidConfig ZomboidDedicatedServer
  4. docker run --rm \ --mount type=bind,source="$(pwd)/ZomboidDedicatedServer",target=/home/steam/ZomboidDedicatedServer \ --mount type=bind,source="$(pwd)/ZomboidConfig",target=/home/steam/Zomboid \ --publish 16261:16261/udp --publish 16262:16262/udp \ --name zomboid-server \ docker.io/renegademaster/zomboid-dedicated-server:latest
    
    ### Setting variables...

Applying Pre Install Configuration...

Pre Install Configuration applied.

Updating Project Zomboid Server...

/usr/bin/steamcmd.sh: line 38: 13 Segmentation fault $DEBUGGER "$STEAMEXE" "$@"

Project Zomboid Server updated.

Checking if this is the first run...

This is the first run.

Starting server for 60 seconds

Starting Project Zomboid Server...

timeout: failed to run command '/home/steam/ZomboidDedicatedServer/start-server.sh': No such file or directory

Project Zomboid Server stopped.

First run check complete.

Applying Post Install Configuration...

/home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! /home/steam/Zomboid/Server/ZomboidServer.ini not found! sed: can't read /home/steam/ZomboidDedicatedServer/ProjectZomboid64.json: No such file or directory sed: can't read /home/steam/ZomboidDedicatedServer/ProjectZomboid64.json: No such file or directory

Post Install Configuration applied.

Starting Project Zomboid Server...

timeout: failed to run command '/home/steam/ZomboidDedicatedServer/start-server.sh': No such file or directory

Project Zomboid Server stopped.



**Expected behavior**
The container should start up correctly.

**Desktop (please complete the following information):**
 - OS: Ubuntu
huylenguyen commented 1 year ago

I also ran into this issue today. Docker deployed as non-root user running in a Proxmox LXC

axi92 commented 1 year ago

Exact the same issue

Edit: My solution was going back to version 1.6.0 were it worked fine for me =)

evarsanyi commented 1 year ago

Thanks, 1.6.0 is working for me as well (podman, root or rootless).