a1ex4 / ownfoil

Lightweight and customizable Tinfoil Shop manager, with automatic saves backup.
BSD 3-Clause "New" or "Revised" License
311 stars 32 forks source link

Permission issues #32

Open jecoteco opened 11 months ago

jecoteco commented 11 months ago

There is no clear indication on how to change permissions.

2023-08-08 16:51:35 2023-08-08 20:51:35,679 - INFO gen_shop: Found 0 directories, 0 game/save files 2023-08-08 16:51:35 2023-08-08 20:51:35,679 - ERROR gen_shop: Failed to write /games/shop.json, error was: 2023-08-08 16:51:35 [Errno 13] Permission denied: '/games/shop.json' 2023-08-08 16:51:35 2023-08-08 20:51:35,680 - ERROR gen_shop: Failed to write /games/shop.tfl, error was: 2023-08-08 16:51:35 [Errno 13] Permission denied: '/games/shop.tfl' 2023-08-08 16:51:35 2023-08-08 20:51:35,680 - INFO apscheduler.executors.default: Job "Generate shop (trigger: interval[0:05:00], next run at: 2023-08-08 20:56:35 UTC)" executed successfully

cant find any directions to change permissions.

mobihen commented 11 months ago

did you add this to the docker-compose file?

environment:

For write permission in /games directory

  - PUID=1000
  - GUID=1000
mobihen commented 11 months ago

please check that the current user is in admin group and also in docker group and re create the container

jecoteco commented 11 months ago

I'm currently using Docker desktop for windows, can you help me out in the procedure to do that.

mobihen commented 11 months ago

sure :) join on discord at mobihen.com and ill try my best when available (around 20 pm)

rursache commented 11 months ago

@jecoteco make sure the /games folder exists and that you have

- PUID=1000
- GUID=1000

or

-e PUID=1000
-e GUID=1000

in docker compose/run

jecoteco commented 11 months ago

image

The /games folder exists and creates shop_config.toml and shop_template.toml but I don't have write access to it.

I did add - PUID=1000 - GUID=1000 to container. But still do not have write privileges. I gave the program admin privileges already.

jecoteco commented 10 months ago

Are there any conditions for the container to work, example: running on internal or external usb drive, permissions for anti virus, admin privileges in windows. Reasons why puid and guid would not work?

a1ex4 commented 9 months ago

Fixed in the rewrite of Ownfoil where permission issues is no longer a thing, see #43.