Skip to content
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

Update Dockerfile #7

Open
wants to merge 1 commit into
base: latest
Choose a base branch
from
Open

Conversation

masterwishx
Copy link

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

libguestfs-tools - added for image mounting
/etc/default  - added for save data in urbackupsrv
@@ -20,6 +20,7 @@ RUN URL=https://hndl.urbackup.org/Server/${VERSION} && \
&& echo "deb $dry\ndeb-src $dry" >/etc/apt/sources.list.d/${DEBIAN}-backports.list \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get libguestfs-tools \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

install missing. Maybe the package just had to be added inside the line below.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You right install should be added, maybe
@uroni know better how to add it..

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Commifreak I'm made xml template for Unraid for this container, but founded some stuff like image mounting not enabled by default...

@uroni
Copy link
Owner

uroni commented May 17, 2023

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?

@masterwishx
Copy link
Author

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
Copy link
Author

@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
Copy link
Author

@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 ....

@Commifreak
Copy link

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

@masterwishx
Copy link
Author

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

Do you have errors in log maybe ?

image

@Commifreak
Copy link

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

@masterwishx
Copy link
Author

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.

@Commifreak
Copy link

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

@masterwishx
Copy link
Author

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
Copy link
Author

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 ...

@Commifreak
Copy link

Yep. Local and internet clients are able to connect.

@masterwishx
Copy link
Author

Yep. Local and internet clients are able to connect.

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

@masterwishx
Copy link
Author

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

@masterwishx
Copy link
Author

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

@Commifreak
Copy link

@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

@masterwishx
Copy link
Author

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

image

@masterwishx
Copy link
Author

Sorry,Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants