Ravinou / borgwarehouse

A fast and modern WebUI for a BorgBackup's central repository server.
https://borgwarehouse.com
GNU Affero General Public License v3.0
362 stars 21 forks source link

Repos not being created #241

Closed trinilopez99 closed 3 months ago

trinilopez99 commented 3 months ago

I am not able to get BW to create repos. I've installed first using docker, and then baremetal on Ubuntu server, neither works. When I create repos in the WebUI, it looks to have been created, but when I go to the repo directory it is empty. I have tried with the default repo directory and with a symlink. I have checked all relevant permissions and ownership. I am able to create repos using the borgbackup CLI but not with BW. Hoping for some support as I'd love to use this software.

DOCKER ENV FILE

/opt/borg/.env
## Required variables section ##

# Host port mappings
WEB_SERVER_PORT=4000
SSH_SERVER_PORT=2222

# Hostname and URL
FQDN=backup.example.com  ## I use my real URL here
NEXTAUTH_URL=http://backup.example.com   ## I use my real URL here

# Secrets
NEXTAUTH_SECRET=xxxxxxxxxx
CRONJOB_KEY=xxxxxxxxxx

# Login
UNIX_USER=borgwarehouse

# 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=1001
GID=1001

# Config and data folders (volume mounts)
# The host folders must be owned by the user with UID and GID specified above
CONFIG_PATH=./config
SSH_PATH=./ssh
SSH_HOST=./ssh_host
BORG_REPOSITORY_PATH=./repos
TMP_PATH=./tmp
LOGS_PATH=./logs

## Optional variables section ##

# LAN feature
FQDN_LAN=
SSH_SERVER_PORT_LAN=2222

# SMTP server settings
MAIL_SMTP_FROM=
MAIL_SMTP_HOST=
MAIL_SMTP_PORT=
MAIL_SMTP_LOGIN=
MAIL_SMTP_PWD=
MAIL_REJECT_SELFSIGNED_TLS=

BAREMETAL ENV FILE

/home/borgwarehouse/app/.env.local
## Required variables section ##

# SSH
SSH_SERVER_PORT=22
SSH_SERVER_FINGERPRINT_ED25519=SHA256:xxxxxxxx
SSH_SERVER_FINGERPRINT_RSA=SHA256:xxxxxxxx
SSH_SERVER_FINGERPRINT_ECDSA=SHA256:xxxxxxxx

# Hostname and URL
FQDN=backup.example.com   ## I use my real URL here
NEXTAUTH_URL=http://backup.example.com    ## I use my real URL here

# Secrects
NEXTAUTH_SECRET=xxxxxxxxxxx
CRONJOB_KEY=xxxxxxxxxx

# Login
UNIX_USER=borgwarehouse

# 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=1001
GID=1001

# Optional Variables

# LAN feature
FQDN_LAN=
SSH_SERVER_PORT_LAN=

# SMTP server settings
MAIL_SMTP_FROM=
MAIL_SMTP_HOST=
MAIL_SMTP_PORT=
MAIL_SMTP_LOGIN=
MAIL_SMTP_PWD=
MAIL_REJECT_SELFSIGNED_TLS=
Ravinou commented 3 months ago

Hi @trinilopez99 , you don't have any error ?

When you said "but when I go to the repo directory it is empty", do you try to launch a backup, do you have an error on launch in your borgbackup client ?

It's normal to have an empty repository if you don't do a first backup after creating a repo in webui.

trinilopez99 commented 3 months ago

This is my mistake - I missed the step of initializing the repository on the command line. It is working now, thank you.