urbackup-server-docker icon indicating copy to clipboard operation
urbackup-server-docker copied to clipboard

Update Dockerfile

Open masterwishx opened this issue 2 years ago • 18 comments

libguestfs-tools - added for image mounting /etc/default - added for save data in urbackupsrv

masterwishx avatar May 17 '23 18:05 masterwishx

Usually libguest-fs mounting doesn't work in Docker containers.

And it would make the image a lot larger.

But maybe another variant like the -zfs and -btrfs one?

uroni avatar May 17 '23 18:05 uroni

Usually libguest-fs mounting doesn't work in Docker containers.

Hmm, I used binhex-urbackup for Unraid based on arch, then tryed this official container but then founded he added libguestfs but don't remember if it was working.... I will check his container... Do you mean libguestfs-tools must be installed on host system not docker?

Maybe /etc/default can be exposed for config saves after updates and etc....

masterwishx avatar May 18 '23 05:05 masterwishx

@uroni
i mounted /etc/default to /mnt/user/appdata/urbackup/config/ for saving changes in urbackupsrv changed to “br0” BROADCAST_INTERFACES to avoid 'ERROR: Sending broadcast failed! (ipv6)' but seems there is no effect like its not reading by default from config ?

masterwishx avatar May 18 '23 09:05 masterwishx

@Commifreak Are you using official uroni/urbackup container in unraid ? i made xml template for it. but somehow /mnt/user/appdata/urbackup/config/urbackupsrv config NOT working like in binhex-urbackup container .... it seems docker container is not reading from config ....

masterwishx avatar May 26 '23 15:05 masterwishx

I use the official one. But without the mapping you are mentioning.

Commifreak avatar May 26 '23 15:05 Commifreak

I use the official one. But without the mapping you are mentioning.

Do you have errors in log maybe ?

image

masterwishx avatar May 26 '23 17:05 masterwishx

I had this before I set own ip. But currently it looks like:

2023-05-26 20:56:41: Started UrBackup...
2023-05-26 20:56:41: Removing temporary files...
2023-05-26 20:56:41: Recreating temporary folder...
TEST FAILED: guestmount is missing (libguestfs-tools)
2023-05-26 20:56:41: Image mounting disabled: TEST FAILED: guestmount is missing (libguestfs-tools)
Testing for btrfs...
ERROR: not a btrfs filesystem: /backups/testA54hj5luZtlorr494
TEST FAILED: Creating test btrfs subvolume failed
Testing for zfs...
TEST FAILED: Dataset is not set via /etc/urbackup/dataset
2023-05-26 20:56:41: Backup destination cannot handle subvolumes and snapshots. Snapshots disabled.
2023-05-26 20:56:41: Reflink ioctl failed. errno=95
2023-05-26 20:56:41: Broadcasting on ipv4 interface eth0 addr 192.168.178.8
2023-05-26 20:56:41: Broadcasting on ipv6 interface eth0 addr myv6
2023-05-26 20:56:41: Broadcasting on ipv6 interface eth0 addr myv6
2023-05-26 20:56:41: Broadcasting on ipv6 interface eth0 addr myv6
2023-05-26 20:56:42: InternetService: Server started up successfully!
2023-05-26 20:56:42: UrBackup Server start up complete.
2023-05-26 20:56:42: Server started up successfully!
2023-05-26 20:56:42: Looking for old Sessions... 0 sessions
2023-05-26 20:56:42: Authentication failed in InternetServiceConnector::ReceivePackets: Token not found (token authentication)
2023-05-26 20:56:42: Authentication failed in InternetServiceConnector::ReceivePackets: Token not found (token authentication)
2023-05-26 20:56:43: Downloading version file...
2023-05-26 20:56:43: Downloading version file...
2023-05-26 20:56:43: Downloading server version info..

grafik

Commifreak avatar May 26 '23 18:05 Commifreak

Do you mean this error gone when you changed from host to br0 fixed Ip? I will try it...

It's very strange but I found how to fix this error on urbackup forum, just need to change BROADCAST_INTERFACES to "br0" from "" all. In config file urbackupsrv, and this was working on binhex-urbackup, but here somehow not working at all.

masterwishx avatar May 27 '23 10:05 masterwishx

Yes, switching if to br0 from host fixed it. Together with —mac-address it also gets fixed v6.

Commifreak avatar May 27 '23 10:05 Commifreak

Yes, switching if to br0 from host fixed it. Together with —mac-address it also gets fixed v6.

Thanks for hint ,its working fine for local clients but internet client (oracle server) cant be found in my case ...

masterwishx avatar Jun 05 '23 11:06 masterwishx

Yes, switching if to br0 from host fixed it. Together with —mac-address it also gets fixed v6.

Do you have then internet clients been founded ? it seems like no internet access after switching to br1 ...

masterwishx avatar Jul 18 '23 12:07 masterwishx

Yep. Local and internet clients are able to connect.

Commifreak avatar Jul 18 '23 13:07 Commifreak

Yep. Local and internet clients are able to connect.

in my case only local client can be found :(
internet not founded

masterwishx avatar Jul 18 '23 13:07 masterwishx

becose of this im staing on host , so im getting error ipv6 in log and also macvlan trace i think ....

masterwishx avatar Jul 18 '23 13:07 masterwishx

@Commifreak how do you set : SQLITE_TMPDIR="/var/urbackup/sqlite/tmp" , it seems as urbackupsrv file cant be readed in Unraid

masterwishx avatar Dec 23 '23 16:12 masterwishx

@Commifreak how do you set : SQLITE_TMPDIR="/var/urbackup/sqlite/tmp" , it seems as urbackupsrv file cant be readed in Unraid

Not at all.

grafik

Commifreak avatar Dec 23 '23 16:12 Commifreak

oh OK just asked becose have on server start , so ithink its becose db not closed correctly or dont have tmp folder ? :

image

masterwishx avatar Dec 23 '23 17:12 masterwishx

Sorry,Fixed

masterwishx avatar Dec 23 '23 17:12 masterwishx