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 issue with tmpfs #109

Open
cjmanca opened this issue Feb 2, 2024 · 1 comment
Open

Permission issue with tmpfs #109

cjmanca opened this issue Feb 2, 2024 · 1 comment

Comments

@cjmanca
Copy link

cjmanca commented Feb 2, 2024

I usually use the tmpfs command for the /tmp directory (and in this case, I'm using tmp for the backblaze temp storage drive too) to minimize disk writes, using the option:

--mount type=tmpfs,destination=/tmp,tmpfs-size=2000000000,tmpfs-mode=1777

This used to work fine, but it seems sometime in the last month or so it broke. Now I get this error in logs during container startup:

[cont-init ] 85-take-config-ownership.sh: executing...
[cont-init ] 85-take-config-ownership.sh: find: ‘/tmp/tmp.aKbpXZjVMB’: Permission denied
[cont-init ] 85-take-config-ownership.sh: terminated with error 1.

Removing the tmpfs option allows the container to start as expected

@traktuner
Copy link
Collaborator

Hello!
Please try to set USER_ID and GROUP_ID in your docker run command, this user will then be handed over th thoe Backblaze app. You can also create a new user just for Backblze on your system, but note that it needs read-write permissions on the config folder where it stores the install files and logs (that is in your case tmpfs) and also read-write permissions for the shared folders you want to back up (because it creates a .bzvol folder where it stores information to identify the "drive" and also files to check its on/offline state).
Hope that helps!

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

2 participants