Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission issues #32

Open
jecoteco opened this issue Aug 8, 2023 · 8 comments
Open

Permission issues #32

jecoteco opened this issue Aug 8, 2023 · 8 comments
Labels
fixed Issue is fixed but pending an official release

Comments

@jecoteco
Copy link

jecoteco commented Aug 8, 2023

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
Copy link

mobihen commented Aug 9, 2023

did you add this to the docker-compose file?

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

@mobihen
Copy link

mobihen commented Aug 9, 2023

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

@jecoteco
Copy link
Author

jecoteco commented Aug 9, 2023

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

@mobihen
Copy link

mobihen commented Aug 9, 2023

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

@rursache
Copy link

@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
Copy link
Author

jecoteco commented Aug 10, 2023

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
Copy link
Author

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
Copy link
Owner

a1ex4 commented Sep 21, 2023

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

@a1ex4 a1ex4 added the fixed Issue is fixed but pending an official release label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Issue is fixed but pending an official release
Projects
None yet
Development

No branches or pull requests

4 participants