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

PermissionDenied #352

Open
Joly0 opened this issue Nov 14, 2023 · 6 comments
Open

PermissionDenied #352

Joly0 opened this issue Nov 14, 2023 · 6 comments

Comments

@Joly0
Copy link

Joly0 commented Nov 14, 2023

Description

I try to start Lodestone docker, but i get this error when starting:

The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
Location: src/prelude.rs:71

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Steps to reproduce (optional)

Start lodestone with the provided commands from the documentation

@pinnouse
Copy link
Member

Can you explain more about how you got to the error?
Could it be that you are pointing the docker image to a volume/location you don't have permission for?

@Joly0
Copy link
Author

Joly0 commented Nov 16, 2023

Hey, ofc. I used this command to run lodestone:

docker run -d --name='Lodestone' -p '16662:16662/tcp' -v '/appdata/lodestone':'/home/user/.lodestone':'rw' 'ghcr.io/lodestone-team/lodestone_core'

the folder /appdata already exists, /appdata/lodestone doesnt, so i let docker create it on its own. Usually for other dockers this isnt an issue, but i checked and gave the folder 777 permissions and then lodestone started and worked witohut an issue. But i havent seen such an issue with other containers yet. The default permission after creating for that folder was 755

@pinnouse
Copy link
Member

Seems like this might be more of a docker related issue since I imagine the folder creation would be how docker chooses to handle that

@Joly0
Copy link
Author

Joly0 commented Nov 19, 2023

Its just weird, that i dont have such issues with any other docker container, just with Lodestone

@mstrlargo
Copy link

@Joly0 I was having the same issue. I am running Unraid and had an issue with another docker container that would not start until I manually created the folder. I have found that creating the folder via windows resolves the issue.

@pinnouse
Copy link
Member

May be due to docker container using user. Perhaps we should chown the folder in the dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants