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

[Bug Report] Inconsistent file permissions in the "generated" directory #2797

Open
stashTX opened this issue Aug 2, 2022 · 0 comments
Open
Labels
bug report Bug reports that are not yet verified

Comments

@stashTX
Copy link

stashTX commented Aug 2, 2022

Describe the bug
When running under docker, I'm having trouble understanding the file ownership that everything is created under. It seems that some files are created as my user and some are created as root. I haven't been able to discern a pattern or reasoning for this.

eg:

stashman@server1:/mnt/data/stashapp/generated$ find . -group root |wc -l
194
stashman@server1:/mnt/data/stashapp/generated$ find . -group stashman |wc -l
14433

As you can see the vast majority of files are created as the user running the docker container, but a small smattering of files are created as root. If I go reset the ownership on all the files everything works fine, but the next time I go add something some files will again be created as my user and some as root.

To Reproduce
Steps to reproduce the behavior:

  1. Run stashapp as docker container using official image.
  2. Observe ownership of various files in the "generated" directory.

Expected behavior
All files should be owned by the same user. Ideally one could set an environment variable in the docker-compose with uid/gid and stashapp would use this, but I would settle for just consistency. :)

Stash Version: (from Settings -> About):
v0.16.0

@stashTX stashTX added the bug report Bug reports that are not yet verified label Aug 2, 2022
@github-project-automation github-project-automation bot moved this to To triage in Bug fixing Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Bug reports that are not yet verified
Projects
Status: To triage
Development

No branches or pull requests

1 participant