Hello, I am at my wits end trying to get this working on TrueNAS Scale. I had Urbackup installed in the compose plugin and it wasn’t working properly. So I figured I’d run it as a “Launch docker image” but I get the same issues.
Datasets:
- data/Backups/urbackup
- data/Backups/urbackup/backups
- data/Backups/urbackup/files
- data/Backups/urbackup/images
Volumes:
- /mnt/ssd/appdata/urbackup/database:/var/urbackup
- /mnt/ssd/appdata/urbackup/backupfolder:/etc/urbackup/backupfolder
- /mnt/ssd/appdata/urbackup/dataset:/etc/urbackup/dataset
- /mnt/ssd/appdata/urbackup/dataset_file:/etc/urbackup/dataset_file
- /mnt/ssd/appdata/urbackup/server_update_location.url:/var/urbackup/server_update_location.url
- /mnt/data/Backups/urbackup:/mnt/data/Backups/urbackup
Running container as 0:0
PUID: 0
PGID: 0
backupfolder: /mnt/data/Backups/urbackup/backups
dataset: data/Backups/urbackup/images
dataset_file: data/Backups/urbackup/files
Settings > Backup storage path: /mnt/data/Backups/urbackup/backups
I have paid for CBT.
The issue is, urbackup creates the ZFS dataset data/Backups/urbackup/files/DC-2022. This is readable in truenas gui and exists on the file system.
It then creates data/Backups/urbackup/files/DC-2022/231012-0753
. But this says
Path /mnt/data/Backups/urbackup/files/DC-2022/231012-0753 not found.
If I shell into the container, the files are there and the symlinks from backups > files work.
If I shell into the host, the files are not there.
If I restart the container, the files that were once there, are no longer there.
This is some of the log that I can see problem areas
2023-10-12 11:51:34.751517+00:00Testing for zfs...
2023-10-12 11:51:35.107444+00:00Destroyed subvol data/Backups/urbackup/images/testA54hj5luZtlorr494 successfully.
2023-10-12 11:51:35.107471+00:00ZFS TEST OK
2023-10-12 11:51:35.586693+00:00Destroyed subvol data/Backups/urbackup/files/testA54hj5luZtlorr494 successfully.
2023-10-12 11:51:35.587038+00:002023-10-12 07:51:35: Backup destination does handle subvolumes and snapshots. Snapshots enabled for image and file backups.
2023-10-12 11:51:35.587068+00:002023-10-12 07:51:35: Emulating reflinks via copying
2023-10-12 11:51:35.587253+00:002023-10-12 07:51:35: Reflink ioctl failed. errno=95
2023-10-12 11:53:21.980408+00:002023-10-12 07:53:21: New Backupclient: DC-2022
2023-10-12 11:53:22.563365+00:002023-10-12 07:53:22: Starting scheduled incremental file backup...
2023-10-12 11:53:22.563455+00:002023-10-12 07:53:22: WARNING: Cannot retrieve last file backup when doing incremental backup. Doing full backup now...
2023-10-12 11:53:22.568754+00:00Checking data/Backups/urbackup/files/DC-2022/231012-0753 for dependencies...
2023-10-12 11:53:22.571179+00:00cannot open 'data/Backups/urbackup/files/DC-2022/231012-0753@ro': dataset does not exist
2023-10-12 11:53:22.571463+00:002023-10-12 07:53:22: ERROR: No permission to access "/mnt/data/Backups/urbackup/backups/DC-2022/231012-0753"
2023-10-12 11:53:22.958013+00:002023-10-12 07:53:22: Starting scheduled full file backup...
2023-10-12 11:53:29.062201+00:002023-10-12 07:53:29: Change block tracking active on volume C:
2023-10-12 11:53:29.062230+00:002023-10-12 07:53:29: Indexing of "Desktop" done. 3 filesystem lookups 0 db lookups and 0 db updates