-
Notifications
You must be signed in to change notification settings - Fork 39
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
File permissions error on app boot #106
Comments
I'm getting the same error when trying to start the container:
|
I'm seeing the same error on startup
|
Same same |
This reads to me like the app doesn't have permission to write the database file to the config location. I'll see if I can replicate this later today, but what happens if you use This will help me confirm the issue |
Also, can you tell me a little bit about your environment? Is it x86 or arm? Are you using WSL? Stuff like that |
I'm running docker on an amd64 machine. Nothing less, nothing more. |
@tiritibambix that helps, thanks! Would you mind posting your full Docker command? And if you look at your specified config location, is there a sqlite database file written to disk? |
Just checked and I was able to repro this issue by making the config folder not writable by the Docker user. Here's the output of the config dir from What's the output of |
For the record, I don't know much about all this, so please bare with me.
998:100 is my docker user:group. As mentioned above, I also tried none, 99:100 and 0:0
edit: I also tried |
Ok, I got it to work. Thanks for your assistance, it help me figure it out. Now I can try Pinchflat :D |
Glad to hear you got it sorted! You may want to see if Thanks for the help! I'll keep this issue open for a bit longer while I add a preflight check for permissions that's easier to read + improve the docs 🤙 |
It won't work with |
Hmm. One last thing to try - does it work if you first run I'll be the first to say that I'm not a docker/linux admin expert so thanks for bearing with me! |
x86 on LXC container |
If Edit: yes, tried that and it works |
If you could try with both |
yeah this work, but why i can not use a specific PUID/PGUID? |
It works with both :) |
The Docker container isn't set to do anything with PUID/PGUID env vars like you might find in a Linuxserver container. This is based on personal preference because, to my understanding, the PUID/PGUID approach starts the container as In contrast, Again, I'm not a Docker master but this system seems to work well. I'll update the docs later today to clarify this point |
I'm still confused with what I need to do:
|
So just to be ultimately clear, the PUID and PGID environment variables actually have nothing to do with Docker or Linux by default. It's a convention put into place by Linuxserver (and others), but the presence of those environment variables doesn't actually do anything automatically. So you can remove those guys entirely. Instead, add a line of |
Got it! Works now! Below is my compose:
I also made my user (id 1030) the owner of all the relevant directories (these previously were own by a different user). |
I'm closing this issue now that #114 is merged in. It's still relevant of course, but I'm hoping that the improved error messaging will help. Discussion is still open so please post here if you're having issues! I'm closing it because I don't feel it's an issue of the app, rather it's one of the host machine. But that doesn't mean you can't post if you need support! |
You don't feel this is an issue of the app. Well, it is an issue of the app. |
@C8opmBM please keep it civil. This is objectively not an issue of the app, it's an issue of the host filesystem that impacts the app. Indeed I could just crank all permissions and have it run as root (like many other containers do), but that'd have negative implications for any other app that tries to interact with your downloaded content. That's not to say I'm not going to continue to try to fix it, but the root of the problem is external to the application. I'm sure there's some way to resolve this, but I'm not a DevOps guy and I've exhausted my ideas. I'm open to pull requests! |
It's me, I'm the person still having the problem "Or adding I did that and I'm still having problems. Here's my Docker-compose: version: "3.3" |
Be sure to read all answers in the topic.
Then, you don't have to use
|
I'm hoping the changes in #157 will improve the permissions issue in some cases 🤙. Those will be deployed as part of |
I'm having issues with starting due to perms also. I understand that you're going for a better approach than the env var PUID/PGIU convention, but it's not clear how to actually make it work IMO. I'd rather not change my directory perms as my user can read/write as needed. Does #157 change the steps mentioned above to make perms work? I have directories owned by user, docker is run as deamon by root, I'm using docker-compose (via sudo) and usually set PUID/PGIU to 1000. I've tried "user: 1000:1000" and "user: 1000:100" without any luck. EDIT: I gave up trying to keep my usual user perms and used chmod 775/chown nobody, and this now starts. Although not sure how my other containers will react, as they use files in these directories as user/1000. Edit 2: you need to chown/chmod the parent folder also. |
It creates files as root now, I want to create them as 1000:100 so I can modify them from an SMB share. |
I believe this is because it's using 0o755 when it needs to be 0o760 to allow group members to write |
Hi, i just try to run this software via docker but i get error with some db table i think.
The docker image i launch is this:
these below are the error i get:
i need to fix something? thx
The text was updated successfully, but these errors were encountered: