lancachenet / monolithic

A monolithic lancache service capable of caching all CDNs in a single instance
https://hub.docker.com/r/lancachenet/monolithic
Other
725 stars 73 forks source link

perm check change #168

Closed KillahB33 closed 1 year ago

KillahB33 commented 1 year ago

Describe the issue you are having

Hey Team, I am trying to do lancache using my nas, perm check will fail then try to chown files which will then fail so monolith will never start UID:99 and group users This is the nobody user on unraid

How are you running the container(s)

docker compose up -d

DNS Configuration

<!-- Paste your docker run command for the DNS container OR explain how you have setup DNS on your network to point to the container -->

Output of container(s)

# Finished including /etc/nginx/nginx.conf
Checking nginx config
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] chown("/data/cache/cache", 33) failed (1: Operation not permitted)
nginx: configuration file /etc/nginx/nginx.conf test failed
ERROR: hook /hooks/supervisord-pre.d/99_config_check.sh} returned a non-zero exit status '0'
VibroAxe commented 1 year ago

Are you using nfs by any chance?

KillahB33 commented 1 year ago

That's correct, I am. NFS4 mounting it with autofs

EDIT: I removed the 20_perms_check.sh as I thought that's what was causing this issue, but I am still getting the same error.

VibroAxe commented 1 year ago

Yeah you will do. NFS will be squashing the root user which the init scripts are run as to nobody, so it has no permission to read or create folders. Check out no_root_squash command line options for your NFS mount. Not sure if it exists in v4

KillahB33 commented 1 year ago

There seems to be a miss understanding here. The user would have permission to read and create folders so that shouldn't be an issue.