[Solved] Unable to use Hetzner Storagebox as external storage
BorgWarehouse version : Installation type :
- [X] Docker
- [ ] Baremetal (Debian/Ubuntu)
- [ ] Other environment :
Describe your problem here.
in my case built my ohn docker image additionally i set a different user name than borgwarehouse. BorgWarehouse ist working correctly when using NFS-volumes.
My .env looks like this:
`## Required variables section ##
User settings
UNIX_USER=fsn01
Host port mappings
WEB_SERVER_PORT=3001 SSH_SERVER_PORT=23
Hostname and URL
FQDN=... NEXTAUTH_URL=...
Secrects
NEXTAUTH_SECRET=... CRONJOB_KEY=...
UID:GID must match the user and group ID of the host folders and must be > 1000
If you want to use a different user than 1001:1001, you must rebuild the image yourself.
UID=1002 GID=1002
Config and data folders (volume mounts)
The host folders must be owned by the user with UID and GID specified above
CONFIG_PATH=/home/fsn01/config SSH_PATH=/home/fsn01/ssh SSH_HOST=/home/fsn01/ssh_host BORG_REPOSITORY_PATH=/home/fsn01/repos TMP_PATH=/home/fsn01/tmp LOGS_PATH=/home/fsn01/logs
Optional variables section
LAN feature
FQDN_LAN=...
Disable the DELETE feature
#DISABLE_DELETE_REPO=true
Disable the integrations (API tokens to CRUD repositories)
#DISABLE_INTEGRATIONS=true
Hide the SSH port in the UI : quickcommands & wizard
#HIDE_SSH_PORT=true
SMTP server settings
MAIL_SMTP_FROM=... MAIL_SMTP_HOST=... MAIL_SMTP_PORT=587 MAIL_SMTP_LOGIN=... MAIL_SMTP_PWD=... MAIL_REJECT_SELFSIGNED_TLS=false
Force app to start on IPv6
#HOSTNAME=::`
Mounting Storagebox with
sshfs -p 23 -o uid=1002,gid=1002,allow_root [email protected]:/home/borgwarehouse /home/fsn01/repos
and starting the BorgWarehouse-Container results in
root@vm126:/opt/stacks/fsn01# docker-compose up -d && docker-compose logs -f [+] Running 2/2 ✔ Network fsn01_default Created 0.0s ✔ Container fsn01-borgwarehouse Started 0.2s fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting) fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting) fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting) fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting) fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting) fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting) fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting) fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting) fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting) fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting) fsn01-borgwarehouse | chmod: changing permissions of '/home/fsn01/repos': Permission denied fsn01-borgwarehouse exited with code 1 (restarting)
I tried mounting Storgagebox to different volumes results in "Permission denied"like above. Only using an bindfs-mount on the Storagebox-Mount to repos works.
Permission are correct, home-folder belongs to fsn01 with 700.
What am i doing wrong? Can you give me a hint?
Thanks and cheers
This issue is solved.
im My case i had to modify
sshfs -p 23 -o uid=1002,gid=1002,allow_root [email protected]:/home/borgwarehouse /home/fsn01/repos
to
sshfs -p 23 -o uid=1002,gid=1002,default_permissions,allow_other [email protected]:/home/borgwarehouse /home/fsn01/repos
Now BorgWarehouse works as expected.
Great stuff!
Cheers!