-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
docker deployment fails to create crontab entry (building own image) #60
Comments
I'm getting the same error when using the latest docker images (not self created) on a 64-bit x86 VPS. borgwarehouse | Adding cron job... I attempted to solve the issue by adding the --privileged variable and that did not change it. Any other thoughts? |
I tried I'm not good with added but that causes error where sudo complains about no terminal to ask for password. As I said I'm a bit of a noob, but perhaps at least the approach I chose might be in the correct direction and it just doesn't work coz I make the changes wrong I dunno. |
I ended up fixing it by making sure borgbackup was installed and creating a new user on the host system specifically for borgbackup. |
Hmm, I do not think that is a proper solution though, the whole point of docker deployment is to leave the host system unmodified. If this is the solution I might as well stay with the bare-metal install. |
Solved (without modifying host system) Issue was I was using user "1000:1000" in Amending the user in docker-compose.yml to 1001:1001 and then chowning the created directories + repo storage with 1001:1001 on host will work.
|
Hi everyone :) You can't use 1000:1000 because borgwarehouse docker image is based on nodeJS. And this nodeJS image use 1000:1000 for node user. That's why in the docker-compose file it is clearly indicated in line 10 : So, in addition to the comment, I'm going to add a note in the documentation about this to draw even more attention to it. Thanks for your feedback. I also have a friend who uses BorgWarehouse on Rapsberry pi and it works great 👌 I'll have to manage to provide an image on dockerhub for ARM architectures. I just have an issue on my PC to compile them with docker buildx. I'll have to test docker desktop. |
Hi,
since I run on rpi4 I had to build the image, everything seems to be going ok, but running the image fails at the step where it wants to create the crontab entry.
logs from building the image:
logs from trying to run the container:
Any help welcome, I'm really eager to switch to the docker deplyment asap.
The text was updated successfully, but these errors were encountered: