ownfoil icon indicating copy to clipboard operation
ownfoil copied to clipboard

Permission issues

Open jecoteco opened this issue 2 years ago • 8 comments

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.

jecoteco avatar Aug 08 '23 21:08 jecoteco

did you add this to the docker-compose file?

environment: # For write permission in /games directory - PUID=1000 - GUID=1000

mobihen avatar Aug 09 '23 08:08 mobihen

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

mobihen avatar Aug 09 '23 13:08 mobihen

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

jecoteco avatar Aug 09 '23 14:08 jecoteco

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

mobihen avatar Aug 09 '23 14:08 mobihen

@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

rursache avatar Aug 10 '23 00:08 rursache

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 avatar Aug 10 '23 00:08 jecoteco

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?

jecoteco avatar Aug 20 '23 12:08 jecoteco

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

a1ex4 avatar Sep 21 '23 12:09 a1ex4