Code Monkey home page Code Monkey logo

Comments (8)

a1ex4 avatar a1ex4 commented on May 14, 2024

The PUID and PGID need to be set to the same user that owns the directory on the host, you can find out the user with:
ls -l /volume1/Waclan/게임/스위치

Then you can find the UID and GID with id <user>. Setting those in the docker-compose should fix your permission issue.

from ownfoil.

KimPig avatar KimPig commented on May 14, 2024

The PUID and PGID need to be set to the same user that owns the directory on the host, you can find out the user with: ls -l /volume1/Waclan/게임/스위치

Then you can find the UID and GID with id <user>. Setting those in the docker-compose should fix your permission issue.

Yes, but my id is 1026, but the error persists even if I set the PUID to 1026.
Setting PUID to 0 also results in permission error. Is there a possibility that it is a PGID problem?

from ownfoil.

a1ex4 avatar a1ex4 commented on May 14, 2024

You shouldn't set the PUID to 0, the container is made to run as a non root user.

The GID is also given by the id <user>, so you can try to set it as well.

Can you exec into the container and check the permission/owner of the /games directory? Please post the output of the following commands:

docker exec -it ownfoil bash
ls -l /games

from ownfoil.

KimPig avatar KimPig commented on May 14, 2024

Unable to execute the command because the container could not be executed due to a permission error.

I tried to set the GID to [100,101,65539] that came out when I ran id, but it didn't work.

from ownfoil.

a1ex4 avatar a1ex4 commented on May 14, 2024

Right, first override the container entrypoint by adding to the docker-compose:

    ports:
      - "268:80"
    entrypoint: "sleep infinity"

and then

docker-compose up -d
docker exec -it ownfoil bash
ls -l /games

from ownfoil.

jimserio avatar jimserio commented on May 14, 2024

I'm having a similar issue. I'm using Unraid, which uses 99:100 (nobody:users) for shared directories. Setting the PUID:PGID to 99:100 results in the following error:

addgroup: gid '100' in use
chown: unknown user/group app:app
sudo: unknown user app
sudo: error initializing audit plugin sudoers_audit

Interestingly enough, the shop_config and shop_template files are copied over before the docker dies. If I set the PGID/UD to 1000:1000, the container will start the but the generated shop.json and shop.tfl, while generated, are owned by app:app which is unreadable by any user. Accessing the shop via the Switch just shows empty folders. The log only shows a simple GET /.

Any ideas?

from ownfoil.

a1ex4 avatar a1ex4 commented on May 14, 2024

I think I've figured out what happens, it's just that the base image (python-alpine) already has existing user that we are trying to add.

Can you please try the image a1ex4/ownfoil:fix-permission ? It should now handle this case and work as is.

from ownfoil.

jimserio avatar jimserio commented on May 14, 2024

ownfoil:fix-permission

This has fixed this issue, thanks!

from ownfoil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.