4O4 / mtasa-docker

Unofficial Docker image for Multi Theft Auto: San Andreas game server
https://hub.docker.com/r/notfound/mtasa-server
15 stars 7 forks source link

cp: cannot create regular file '/mtasa/mods/deathmatch/acl.xml': Permission denied #1

Closed JasperMC closed 3 years ago

JasperMC commented 3 years ago

Hi there!

First of all: Thanks for creating this docker image. I had started making my own but was running into difficulties and then found this one.

I'm trying to deploy this container but keep getting a particular error:

cp: cannot create regular file '/mtasa/mods/deathmatch/acl.xml': Permission denied

When I create a dummy acl.xml I get the same error with mtaserver.conf. It seems all the directories (data and resources) are giving permission denied.

I tried to chown -R 1000:1000 on every directory and set the PUID and GUID to 1000 in the env variables the same way my other containers have it but I can't seem to get it to work.

As the containers quits before I can get into the console, I can't actually see as which PUID or GUID it's running. Any chance you could give me a hint? :)

JasperMC commented 3 years ago

Nevermind!

I resolved it through adding the following as suggested in the readme:

-u $(id -u):$(id -g)