Closed PascalMinder closed 4 years ago
Both volumes need to be set to the same user id (PUID
) and group id (PGID
).
Yes they are. But still the same error
Just to be sure, did your run chown -R
to apply the permissions recursively?
I'll be deploying a potential fix upstream to the base images, which should fix this automagically. I'll let you know when the fix is live.
Okay, can you pull the latest version and give that one a go? It should now always fix the permissions on startup, so long as you're not using any custom container paths, outside of /steamcmd
and /app
.
I will try it tonight. Thanks
Hmm, I still have the same error. Is there any way to get more error information? I am trying to run it on an OMV host.
Could you try deleting the volumes/folders again? Both game
and steam
should now be under the non-root user, and the permissions are set whenever the container starts. Additionally, could you try running the container as root, if the previous attempt fails? Just sudo docker run ...
should do, just to rule out anything else.
I will try it tonight. Sorry for the late reply.
So I tried it again tonight. First I deleted everything. Then I created both folders: After that I created the container with the following:
docker run -d \
--name=7d2d \
-e PUID=1000 \
-e PGID=100 \
-e TZ=Europe/Zurich \
-v /sharedfolders/docker/config/7d2d/steam:/steamcmd/7dtd \
-v /sharedfolders/docker/config/7d2d/game:/app/.local/share/7DaysToDie \
-p 26900-26902:26900-26902 \
-p 26900-26902:26900-26902/udp \
didstopia/7dtd-server
Could it be that somehow the platforms are incompatible?
Have you tried without creating the folders manually? Because Docker should ideally be in charge of creating them, as then it could also set the permissions accordingly.
I might have found the issue. cat /etc/mtab
gives me:
/dev/md0 /home/steam/7d2d/server ext4 rw,noexec,relatime,stripe=384,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0 /dev/md0 /home/steam/7d2d/save ext4 rw,noexec,relatime,stripe=384,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
I think the problem is noexec
It's possible, but then noexec
should be coming from the filesystem/partition mount flags and there's not much Docker can do about it.
Yeah, OMV does this for the data partition. So I guess it's my error. Sorry.
No worries! As a last resort, you could try again, but this time with PUID=0
and PGID=0
, which would effectively run the container as root again.
I use the following command to create the server:
This leads to creation of two folders
game
andsteam
. Thegame
folder has the right user permissions, while thesteam
folder hasroot:root
. This leads to the error: