JonathanTreffler / backblaze-personal-wine-container

Run the Backblaze personal backup client in a docker container
https://hub.docker.com/r/tessypowder/backblaze-personal-wine
GNU Affero General Public License v3.0
374 stars 35 forks source link

Permission issue with tmpfs #109

Open cjmanca opened 7 months ago

cjmanca commented 7 months ago

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 commented 7 months ago

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!