Package Base Details: bareos

Git Clone URL: (read-only, click to copy)
Keywords: Backup bacula bareos
Submitter: AlD
Maintainer: khvalera
Last Packager: khvalera
Votes: 21
Popularity: 0.047601
First Submitted: 2014-07-23 09:45 (UTC)
Last Updated: 2022-05-28 20:00 (UTC)

Pinned Comments

Latest Comments

1 2 3 4 5 6 .. 15 Next › Last »

rafael.castellar commented on 2022-06-03 10:02 (UTC) (edited on 2022-06-03 10:06 (UTC) by rafael.castellar)

I'm trying to update my bareos-director installation (20.0.1-3) on my raspberry pi4 (aarch64), but it's failing during building process:

/home/myuser/tmp/bareos/src/bareos/core/src/droplet/libdroplet/src/backend/posix/backend.c: In function ‘dpl_posix_head_raw’: /home/myuser/tmp/bareos/src/bareos/core/src/droplet/libdroplet/src/backend/posix/backend.c:147:33: error: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘__nlink_t’ {aka ‘unsigned int’} [-Werror=format=] 147 | snprintf(buf, sizeof(buf), "%ld", st.st_nlink); | ~~^ ~~~~~~~~~~~ | | | | | __nlink_t {aka unsigned int} | long int | %d /home/myuser/tmp/bareos/src/bareos/core/src/droplet/libdroplet/src/backend/posix/backend.c:182:33: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘__blksize_t’ {aka ‘int’} [-Werror=format=] 182 | snprintf(buf, sizeof(buf), "%lu", st.st_blksize); | ~~^ ~~~~~~~~~~~~~ | | | | | __blksize_t {aka int} | long unsigned int | %u cc1: all warnings being treated as errors make[2]: [core/src/droplet/libdroplet/CMakeFiles/droplet.dir/build.make:1070: core/src/droplet/libdroplet/CMakeFiles/droplet.dir/src/backend/posix/backend.c.o] Erro 1 make[1]: [CMakeFiles/Makefile2:2538: core/src/droplet/libdroplet/CMakeFiles/droplet.dir/all] Erro 2 make: *** [Makefile:146: all] Erro 2

The whole system is up to date. Any tip?

derdeagle commented on 2022-05-18 05:17 (UTC)

@khvalera The build now worked and I could install it successfully. Thank you very much for your work and effort!

deep_thought commented on 2022-05-15 18:27 (UTC)

ah, yes - that patch looks better than mine. Didn't look too hard at the code :D

bsdice commented on 2022-05-15 18:15 (UTC)

Here is the "official" patch:

Does you patch fix the use-after-free?

deep_thought commented on 2022-05-15 18:11 (UTC) (edited on 2022-05-15 18:12 (UTC) by deep_thought)

This patch fixes it for me:

--- a/core/src/lib/  2022-03-17 17:22:34.000000000 +0100
+++ b/core/src/lib/  2022-05-15 19:28:30.410009804 +0200
@@ -213,9 +213,11 @@
       remove_from_list = true;
     } else {
       p->scheduled_run_timepoint = last_timer_run_timepoint + p->interval;
+      next_timer_run = min(p->scheduled_run_timepoint, next_timer_run);
+  } else {
+    next_timer_run = min(p->scheduled_run_timepoint, next_timer_run);
-  next_timer_run = min(p->scheduled_run_timepoint, next_timer_run);
   return remove_from_list;

though, on second look, I got a different error (use after delete) and I use a newer version: 21.1.2.

derdeagle commented on 2022-05-14 17:15 (UTC)

@khvalera Thank you very much for the further investigation. I have indeed the following versions installed. gcc 12.1.0-1 gcc-libs 12.1.0-1 lib32-gcc-libs 12.1.0-1

Good call.

khvalera commented on 2022-05-14 09:48 (UTC)

I checked it is going without problems on gcc-11.2.0-4 gcc-libs-11.2.0-4, on gcc-12.1.0 there are errors :(

simona commented on 2022-05-13 22:13 (UTC)

/home/simona/.cache/yay/bareos/src/bareos/core/src/tests/ error: ‘sleep_for’ is not a member of ‘std::this_thread’
148 | std::this_thread::sleep_for(std::chrono::milliseconds(10));
| ^~~~~~~~~ make[2]: *** [core/src/tests/CMakeFiles/sd_reservation.dir/build.make:76: core/src/tests/CMakeFiles/sd_reservation.dir/] Errore 1

khvalera commented on 2022-05-13 09:12 (UTC)

@derdeagle Unfortunately, the problem could not be recreated. On standard packages, assembly occurs without errors, perhaps non-standard packages are used in your system. Alternatively, try updating your system with pacman -Syu

bsdice commented on 2022-05-12 23:52 (UTC)

@derdeagle You can try which I just updated with my latest changes. Unzip into a directory and makepkg -Ccf should build a clean, single, complete, small, package.

This build has completed a 20 LTO-6 tape spanning backup with 48 TB of data with no issues a couple weeks ago.

I have also extended functionality to use ZFS snapshot names unique per job, so while job 1 runs a full backup to a tape pool, job 2 for a different drive but for the same ZFS dataset will not interfere, because it will create/delete its own snapshot. Bareos should really only be used with a snapshotting-capable filesystem. Every else is just not elegant.

Passwords are preset randomly (using pwg helper, supplied) in configs, should of course be changed to something completely different.