@khvalera The build now worked and I could install it successfully. Thank you very much for your work and effort!
Search Criteria
Package Details: bareos-database-tools 21.1.3-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/bareos.git (read-only, click to copy) |
---|---|
Package Base: | bareos |
Description: | Bareos - Backup Archiving REcovery Open Sourced - Admin Tool (CLI) |
Upstream URL: | http://www.bareos.org |
Keywords: | Backup bacula bareos |
Licenses: | AGPL3 |
Submitter: | AlD |
Maintainer: | khvalera |
Last Packager: | khvalera |
Votes: | 19 |
Popularity: | 1.55 |
First Submitted: | 2014-07-23 09:45 (UTC) |
Last Updated: | 2022-05-17 19:08 (UTC) |
Dependencies (16)
- bareos-database-common
- jansson (jansson-git)
- openssl (libressl-git, openssl-hardened, openssl-git, openssl-static)
- cmake (cmake-git) (make)
- gcc (fastgcc, gccrs-git, gcc-multilib-git, gcc-git) (make)
- git (git-git, git-vfs, git-run-command-patch-git) (make)
- glusterfs (make)
- jansson (jansson-git) (make)
- libmariadbclient (libmysqlclient55, libmysqlclient56, libmysqlclient57, libmysqlclient, mariadb-libs-git, mariadb-libs) (make)
- lsb-release (arch-btw) (make)
- pam_wrapper (make)
- postgresql-libs (agensgraph-git, postgresql-libs-1c, postgresql-libs-9.5, postgresql-libs-9.4, postgresql-src-beta-libs, postgresql-libs-9.6, postgresql-libs-11, postgresql-libs-10, postgresql13-libs, postgresql-lts-libs, postgresql-libs-12, postgresql-src-libs) (make)
- python (python38, python36, python37, python3.7, nogil-python, python311, python39) (make)
- python2 (make)
- qt5-base (qt5-base-git, qt5-base-headless) (make)
- rpcsvc-proto (make)
Required by (0)
Sources (11)
Latest Comments
derdeagle commented on 2022-05-18 05:17 (UTC)
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: https://github.com/bareos/bareos/commit/ce3339d28623b8bb771e5e0aa139168df5963c4b
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/timer_thread.cc 2022-03-17 17:22:34.000000000 +0100
+++ b/core/src/lib/timer_thread.cc 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/sd_reservation.cc:148:21: 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/sd_reservation.cc.o] 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 https://seitics.de/files/bareos.zip 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.
derdeagle commented on 2022-05-12 20:34 (UTC) (edited on 2022-05-12 20:34 (UTC) by derdeagle)
I am glad you adopted this project. Unfortunately I cannot build it, below is the error message.
[ 92%] Built target test_backtrace
[ 92%] Building CXX object core/src/tests/CMakeFiles/sd_reservation.dir/sd_reservation.cc.o
/home/username/.cache/yay/bareos/src/bareos/core/src/tests/sd_reservation.cc: In function ‘void WaitThenUnreserve(std::unique_ptr<TestJob>&)’:
/home/username/.cache/yay/bareos/src/bareos/core/src/tests/sd_reservation.cc:148:21: 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/sd_reservation.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3380: core/src/tests/CMakeFiles/sd_reservation.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
-> error making: bareos (bareos-common bareos-filedaemon)
I am using cmake 3.23.1-1. Could you please take a look into this and help resolve it?
wcasanova commented on 2022-01-24 14:53 (UTC)
Thanks @bsdice
bsdice commented on 2022-01-23 06:31 (UTC)
To please the r/datahoarder crowd, I have put up ten screenshots of the web UI with a brief explainer: https://seitics.de/files/bareos/screenshots/
bsdice commented on 2022-01-21 02:54 (UTC) (edited on 2022-01-21 02:55 (UTC) by bsdice)
There's a new test version up at https://seitics.de/files/bareos/bareos.zip and I zipped up all files for easier download. Single file access is still possible at https://seitics.de/files/bareos/. I also changed the mime-type on the web server to text/plain so if you click on a file, it will show in the browser as a preview and not annoyingly download right away.
My example configs and example scripts are now part of the package, instead of being bystanders. Can be found in /etc/bareos/examples. Dito for the NGINX config, which is now a single file. I made a README also in this directory to explain more concepts of the examples. Cleaned up tape-helper, with settings now at start of the file. Bunch more PKGBUILD bugfixes.
If you populate /etc/bareos with working
bareos-dir.conf
bareos-fd.conf
bareos-sd.conf
bconsole.conf
configuration.ini
directors.ini
files things should start to work pretty fast.
Well let me know what you think and if you could get it to work.
bsdice commented on 2022-01-20 03:29 (UTC) (edited on 2022-01-20 03:30 (UTC) by bsdice)
OK I spent the evening fixing things...
Download is again available at https://seitics.de/files/bareos/
- All changes are now fully AGPL3 compatible.
- The default is now a non-debug build, resulting in a 5 MB .zst-archive for everything (neat!).
- CAP_SYS_PTRACE capability is removed for security reasons in non-debug builds.
- Explained and extended optional deps more.
- PKGBUILD will now include all AUR files in the package (/etc/bareos/pkgbuild). This may seem weird but it will allow you to copy the single directory /etc/bareos off to some other place, and you will have everything necessary to bootstrap your server back into life. This is especially helpful when you need to stay at the installed Bareos version during disaster recovery.
- I included a few nginx snippets in nginx/ to help people understand how to get the web UI going quickly.
- Also included are now sanitized configuration files which I personally use, see etc_bareos/. bareos-dir.conf contains some more lenghty explanations.
LTO is a solid and safe backup technology. I'd hope with a bit of mentoring and polishing of this package people will appreciate this too and spin up a trial in their own computer landscape.
#Arch #LTOultras ;-)
bsdice commented on 2022-01-18 21:13 (UTC)
@wcasanova I know, and I am sorry. I had to take it down because after reading the AGPL3 license text I realized some patches might be in violation. Other things taking precedence I can't work on this right now. Some patches may be substitutable with deletion sequences in PKGBUILD which have no origin in the source code unlike patch files, so could possibly be distributed. But if you run this at your university or CERN or something, with others accessing it, you would again be in violation. On the other hand I really can't have my browser phone home to the Bareos guys every time I open the web UI. This being Germany which has overtaken litigious USA on the right, I need to find a precedence-proofed solution.
wcasanova commented on 2022-01-18 20:45 (UTC)
@bsdice, the new changes you mention are no longer available.
bsdice commented on 2022-01-17 01:54 (UTC)
You're welcome. I updated the systemd files to include SuccessExitStatus for error-message-less stopping of services. New PKGBUILD I just uploaded also includes a better cleanup of the entire web GUI tree, which I audited manually to really get rid of 99% of useless files.
Currently using this at home with an LTO-5 and an LTO-6 drive. System runs quarterly fulls to LTO-6 and daily incrementals to LTO-4. Tape drives are turned on/off on demand via the USB box, ZFS snapshot create/delete before/after backup run, second run after main backup run saves database+PKGBUILD+files+configuration to tape for disaster recovery purposes. Operator command is a script which beeps to alert me, should I happen to be around, unmounts tape in Bareos and ejects the tape, because it will want another one anyway, and also sends me an e-mail.
I included a bunch more files:
1) read_attribute.pl: parses binary MAM data into human-readable output. Should probably be rewritten in C. I made it work with recent Perl versions from older versions found on the web.
2) tape-label: Needs configuration in the file. Argument will be tape name. Loads tape, writes EOF to start to delete any records, rewinds, labels in Bareos, ejects tape again.
3) tape-operator: Beep, unmount, eject tape when Bareos wants a new tape. Used in bareos-dir.conf Messages resource as "operatorcommand". Needs correct storage name as first argument to know what to eject and then the usual bstmp command following.
4) tape-helper: Needs in-script configuration. As such probably only useful in my system, but just to give anyone interested an idea what can be done feature-wise. Like ZFS snapshots, USB-control, send e-mail in case drive wants a cleaning tape, read MAM chip of cartridge and send to read_attribute.pl etc.
Only thing missing is now my six config files bareos-sd|dir|fd.conf bconsole.conf and the two .ini files for the web UI. No time to sanitize right now.
wcasanova commented on 2022-01-16 23:28 (UTC)
@bsdice thanks
spradlim commented on 2021-12-24 01:04 (UTC)
Obviously, I am not really maintaining this. (I moved to borg) I don't think mfulz is either. Let me know if anyone would like to be a maintainer or would like to own the package.
bsdice commented on 2021-12-23 16:29 (UTC)
Hey guys, I ported this AUR to Bareos version 22 i.e. latest git as of yesterday for my own personal use.
You can find the PKGBUILD and necessary files at https://seitics.de/files/bareos/.
Some notes:
- Single AUR package only, because deciding what packages you need is hard.
- PostgreSQL only from 21 on, check official release notes. You have to migrate to this database before updating.
- Disabled phone home and prettified some areas; a matter of taste.
- Various compile fixes, PHP warning fixes, measures to cut back on log spam.
- For the web-GUI nginx is recommended, I deprecated Apache.
- Binaries are unstripped and daemons run among others with CAP_SYS_PTRACE privileges so I can debug segfaults.
- New systemd-service files. All daemons run as user "bareos". File daemon gets CAP_DAC_READ_SEARCH to read everything without root.
- Meticulous cleaning of useless files before packaging.
- I am using a USB relais box to switch on two LTO drives before jobs, that's what 99-bareos-usb.rules is for, to fix up device permissions.
- Tested with a LTO-5 and LTO-6 drive.
I also have a couple of unpublished scripts and .conf files to tie everything together. Mostly to turn tape drives on/off using the USB box, read the cartridge MAM chip, send mail warnings on tape alerts (e.g. when cleaning is necessary), to queue backup jobs from a systemd timer depending on time of day and day of week (rare fulls to LTO-6, daily incrementals to LTO-4 but on different drive), or to unmount and eject the tape and play an audible beep in Backup Exec style if operator intervention is required.
Personally I like handcrafted single bareos-(dir|sd|fd).conf and bconsole.conf files more than the spread out directories with many partial config files. After 2-3 years of using the software, I think I got the hang of it.
All my contributions are licensed CC0 i.e. in the public domain, or as governed by the original license if more restrictive.
hirnschmalz commented on 2021-01-17 12:16 (UTC) (edited on 2021-01-23 10:08 (UTC) by hirnschmalz)
I tried to install bareos on one of my machines. During the build I go the following error
/home/XXXXX/.cache/rua/build/bareos/src/bareos/core/src/plugins/filed/cephfs-fd.cc:457:33: error: cannot convert 'stat*' to 'ceph_statx*'
EDIT
I had samba
installed which requires ceph-libs
. After removing those two packages the build did finish successfully.
deep_thought commented on 2021-01-09 21:48 (UTC)
This makes version 20.0.0 compile for me - not sure, if this is the right thing to do, though.
--- a/core/src/droplet/libdroplet/src/utils.c 2020-12-16 08:46:16.000000000 +0100
+++ b/core/src/droplet/libdroplet/src/utils.c 2021-01-09 21:28:43.099999815 +0100
@@ -33,7 +33,7 @@
*/
#include <dropletp.h>
#include <linux/xattr.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
#include <errno.h>
/** @file */
--- a/core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h 2020-12-16 08:46:16.000000000 +0100
+++ b/core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h 2021-01-09 21:50:10.506666487 +0100
@@ -78,7 +78,6 @@
#ifndef DONE_STYLE
typedef unsigned long ulong;
-typedef unsigned bool;
typedef unsigned char * p_ubyte_;
#ifndef TRUE
@@ -106,8 +106,8 @@
int cm_width; /* Parameter: Width in bits [8,32]. */
ulong cm_poly; /* Parameter: The algorithm's polynomial. */
ulong cm_init; /* Parameter: Initial register value. */
- bool cm_refin; /* Parameter: Reflect input bytes? */
- bool cm_refot; /* Parameter: Reflect output CRC? */
+ _Bool cm_refin; /* Parameter: Reflect input bytes? */
+ _Bool cm_refot; /* Parameter: Reflect output CRC? */
ulong cm_xorot; /* Parameter: XOR this to output CRC. */
ulong cm_reg; /* Context: Context during execution. */
--- a/core/src/droplet/libdroplet/src/backend/posix/reqbuilder.c 2020-12-16 08:46:16.000000000 +0100
+++ b/core/src/droplet/libdroplet/src/backend/posix/reqbuilder.c 2021-01-09 22:27:57.346666239 +0100
@@ -39,7 +39,7 @@
#include <dirent.h>
#include <sys/types.h>
#include <linux/xattr.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
#include <utime.h>
#include <pwd.h>
#include <grp.h>
keijko commented on 2020-12-21 15:01 (UTC)
Is it possible that you remove or comment (also at the services of the other bareos-packages) the parameter "StandardOutput=syslog" in service section of the daemon service? Because this feature is outdated and normally bareos is logging to systemd-journald.
alphacent commented on 2020-08-26 19:15 (UTC)
build fails, I get:
ERROR: A failure occurred in build(). Aborting...
error making: %!s(func() string=0x563f3a164bb0)
I am unable to install bareos-common regardless if I meet the dependencies
arsirc commented on 2020-04-19 15:35 (UTC) (edited on 2020-04-26 14:06 (UTC) by arsirc)
EDIT: 26.04.2020
I have found the problem, at least on my installation of Manjaro Linux.
The output of the build process tells me that:
CMake Error at core/cmake/BareosGetDistInfo.cmake:36 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
core/CMakeLists.txt:151 (include)
After some investigation i found out that the script bareos/core/cmake/distname.sh does not provide a DISTVER.
The output of the script is "archlinux;;;;;"
The second field of that string is empty.
After some further investigation i found out that this script tries to get the DISTVER with lsb_release if it is available. But because i am on Manjaro Linux this does not work, so we fall back testing if /etc/arch-release is existing. But then we dont get the DISTVER set at all.
So a quick fix for everyone running on Manjaro Linux would be to just echo out the needed return of this script with something like this:
echo "archlinux;20.0;$OBS_PROJECT;$OBS_DISTRIBUTION;$OBS_ARCH;$OBS_SRCMD5"
Hope that helps someone ...
Best regards
Andreas
ORIGINAL:
I have problems compiling bareos-common
Here are some logs: https://gist.github.com/apachler/be87c7454b512873db0fb8fe5de34271 https://gist.github.com/apachler/f712da912965fe84afbcf14387afa05c https://gist.github.com/apachler/c7ed4cff8096e2c02b7759ad2d464ec8
Maybe you have an idea?
mfulz commented on 2020-04-09 08:26 (UTC)
Why OOD? still 19.2.6 is the last version....
AlD commented on 2020-02-19 21:05 (UTC)
'gmock' appears to be a make dependency now.
mfulz commented on 2020-01-30 23:47 (UTC) (edited on 2020-02-07 21:40 (UTC) by mfulz)
I'll check your comments out the next days: - update to 19.2.5 will be ready in a few minutes - web-ui.conf and logrotate added
The chmod makes sense to me, as the files contains sensitive data which shouldn't be readable worldwide. Of course in /usr/share it's arguable, but better safe than sorry ;)
khvalera commented on 2020-01-28 19:51 (UTC) (edited on 2020-01-28 19:58 (UTC) by khvalera)
@spradlim need to add: _cp $srcdir/install/etc/httpd/conf.d/bareos-webui.conf ${pkgdir}/etc/httpd/conf/extra/bareos-webui.conf and _cp $srcdir/install/etc/logrotate.d $pkgdir/etc/logrotate.d
khvalera commented on 2020-01-25 21:35 (UTC)
Why is this? : chmod -R 750 /usr/share/bareos/config/bareos-dir.d
mfulz commented on 2019-12-15 20:46 (UTC)
@FieldOfClay: I've removed everything ceph related from my system for a test and my build is working fine.
Could you please provide the logs / build errors you get?
FieldOfClay commented on 2019-12-07 09:00 (UTC) (edited on 2019-12-07 09:00 (UTC) by FieldOfClay)
It still fails for me during the cmake checks, unless I include ceph as a makedepends. It seems that it is still looking for ceph, somewhere. I haven't been able to figure out where.
This is on a machine that only needs bareos-filedaemon and bareos-common.
mfulz commented on 2019-12-04 18:12 (UTC)
Hi Kai,
I've added the mkdir -p thanks for the hint.
ceph is only needed for the bareos-backend-ceph afaik, which is not inlcuded here?
php is included as dependency for the webui package, which is correct in my opinion?
balticer commented on 2019-11-25 19:39 (UTC)
Hello,
a few suggestions:
- change "mkdir build" to "mkdir -p build" in build() or remove "build" directory after package is build to allow rebuilding without errors
- "community/ceph" or "community/ceph-libs" is needed, at least as build dependency?!
- PHP is needed, at least as build dependency?!
regards Kai
mfulz commented on 2019-10-23 11:24 (UTC)
@spradlim: Thanks.
The bareos is updated to 18.2.6 and working for me. Any feedback is welcome :)
I've added also bareos-web-ui but I've to rename it because of this one: https://aur.archlinux.org/packages/bareos-webui which is not working at all. Hopefully this guy will throw it away so we can take it over.
spradlim commented on 2019-10-23 04:57 (UTC)
Mfulz I added you
mfulz commented on 2019-10-22 23:38 (UTC)
I'd like to take it over. Working on a 18.2.6 build atm and should be ready the next days.
spradlim commented on 2019-07-02 14:38 (UTC) (edited on 2019-07-02 14:39 (UTC) by spradlim)
Obviously, I no longer have time to maintain this package. Anyone, else want to maintain this package?
malus commented on 2019-06-26 21:50 (UTC)
Hello spradlim, could you please add 'git' to makedepends? I think it is needed by all involved packages. Thanks :)
spradlim commented on 2019-04-23 13:37 (UTC)
@impatt Upstream he puts it in libbareossd.so in bareos-common so I would put it there.
impatt commented on 2019-04-23 08:01 (UTC) (edited on 2019-04-23 08:20 (UTC) by impatt)
@deep_thought: Two things: Maybe this patch will be useful:
--- /tmp/PKGBUILD 2019-04-23 11:50:04.845864401 +0500 +++ /tmp/PKGBUILD_ 2019-04-23 12:22:50.103145212 +0500 @@ -28,7 +28,7 @@ pkgdesc="Bareos - Backup Archiving REcovery Open Sourced" url="http://www.bareos.org" license=('AGPL3') -makedepends=(acl bash cmake gcc-libs glibc jansson libcap libmariadbclient lsb-release lzo mtx openssl postgresql-libs python python2 readline sqlite3 zlib) +makedepends=(acl bash cmake gcc-libs glibc jansson libcap libmariadbclient lsb-release lzo mtx openssl postgresql-libs python python2 readline sqlite3 zlib patch gcc make pkg-config fakeroot) makedepends_x86_64=(ceph) makedepends_armv7h=(ceph) makedepends_aarch64=(ceph)
Question: when installing packages on ARMv7, a conflict of files is detected: error: failed to commit transaction (conflicting files) /usr/lib/bareos/libbareossd.so exists in both 'bareos-common' and 'bareos-storage' Which package would it be more logical to attribute /usr/lib/bareos/libbareossd.so when building packages?
Thank you.
deep_thought commented on 2019-04-14 09:00 (UTC)
spradlim: I was able to compile it with cmake. https://git.eckner.net/Erich/archlinuxewe/tree/bareos
It's based on your pkgbuild, so the changes should be minor.
spradlim commented on 2019-04-03 20:13 (UTC) (edited on 2019-04-03 20:14 (UTC) by spradlim)
So has anyone got cmake to compile. It looks like its more difficult to compile this with an unoffical supported distribution. Even if you force set distname when doing cmake it does more depending on that version to pull more information out.
spradlim commented on 2019-03-19 13:37 (UTC) (edited on 2019-03-21 15:26 (UTC) by spradlim)
Yes, I am still working on this. I will try and update it today. Made some progress, trying to as I get time. I see he switched over a new build system so I am trying to make sure everything is correct.
mfulz commented on 2019-03-14 23:23 (UTC)
Are you still maintaining this aur? There is version 18.2.6 out already and I'd like to help updating if you need assitance :)
deep_thought commented on 2019-02-26 09:49 (UTC)
another thing: running '/usr/lib/bareos/scripts/bareos-config initialize_local_hostname' and alike should happen after copying the files into /etc/bareos (at least, that's the location, where the script looks). So maybe you should just print the instruction for the sysadmin to execute after he set up those files from the templates?
deep_thought commented on 2019-02-26 08:30 (UTC) (edited on 2019-02-26 08:31 (UTC) by deep_thought)
Can you please add --with-hostname='XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX' --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" --with-basename="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" --with-hostname="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" to the configure options? Otherwise, bareos has this stuff fixed at compile time. (hostname of build machine may be different from host name of machine where bareos will be installed; having the passwords in the packages is also a bad idea)
The above list was derived from https://groups.google.com/forum/#!topic/bareos-users/rQ4i5oHoKGQ - maybe there is some stuff missing or superfluid (I know close to nothing about bareos).
Cheers, deep42thought
icebal commented on 2018-10-05 10:02 (UTC) (edited on 2018-10-05 10:07 (UTC) by icebal)
By default, bareos runs under the bareos user, but the /usr/lib/bareos/scripts/ directory is owned by root:root causing bareos not able to usw the mtx-changer script. Can you update the pkgbuild to chown that directory to bareos:bareos, or atleast preserve the ownership when updating the files?
Edit: actually, looking further, it now looks like all bareos files need to be bareos:bareos, including /usr/bin/bareos-*
rafael.castellar commented on 2018-06-21 10:37 (UTC)
Fixed! Tks!!
rafael.castellar commented on 2018-06-19 10:09 (UTC)
I'm getting the same error: ERROR: Package contains paths with newlines Is there any tip?
Tks
icebal commented on 2018-06-12 06:41 (UTC) (edited on 2018-06-12 08:29 (UTC) by icebal)
with all bareos packages, they are getting the following error via yay and trizen. Packages to test error with are bconsole and storage-tape packages. ==> Checking for packaging issues... ==> ERROR: Package contains paths with newlines /opt/Git/bareos/pkg/bareos-director/usr/share/bareos/config/bareos-dir.d/fileset . .
Edit: looks like the file responsible is this one, created from the makepkg:
/home/icebal/.cache/pacaur/bareos/pkg/bareos-director/usr/share/bareos/config/bareos-dir.d/fileset$'\n'.$'\n'.
spradlim commented on 2018-04-02 13:41 (UTC) (edited on 2018-04-02 14:02 (UTC) by spradlim)
Latest Change:
- Support armv7h and aarch64
- Fix systemd service files to create /run directories automatically.
spradlim commented on 2018-03-22 13:13 (UTC) (edited on 2018-03-22 13:13 (UTC) by spradlim)
Hello Freaknils.
Yes armv7h and aarch64 work. I should add them.
freaknils commented on 2018-03-22 08:09 (UTC)
Hi, is there a reason why arm is not in arch=(i686 x86_64) ? On my armv7h cubietruck i am able to build and use bareos.
spradlim commented on 2018-02-20 02:28 (UTC)
Fixed Cephfs broken build. I did not see this issue since I didn't have the lib for cephfs installed and autotools did not try to build with cephfs.
@bsdice FYI: I have updated the PKGBUILD quite a bit, I made it more ArchLinux way of doing stuff, rather than a hacking script. You don't need those CPPFLAGS for openssl anymore.
bsdice commented on 2018-02-19 22:14 (UTC) (edited on 2018-02-19 22:16 (UTC) by bsdice)
As a temp fix, see sed line below to disable.
build() {
cd "${srcdir}/${pkgname}"
# Disable cephfs, broken
sed -i 's/have_cephfs=\"yes\"/have_cephfs=\"no\"/' configure
CPPFLAGS+=" -I/usr/include/openssl-1.0" \
LDFLAGS+=" -L/usr/lib/openssl-1.0" \
DISTNAME="systemd" \
./configure \
ferion commented on 2018-02-19 20:17 (UTC) (edited on 2018-02-19 20:18 (UTC) by ferion)
Any way around to not compilie ceph in bareos-common ?
cephfs-fd.c:470:97: error: cannot convert 'stat' to 'ceph_statx' for argument '4' to 'int ceph_readdirplus_r(ceph_mount_info, ceph_dir_result, dirent*, ceph_st
It's an open bug report here:
spradlim commented on 2017-12-08 17:41 (UTC) (edited on 2017-12-08 20:05 (UTC) by spradlim)
I have upgraded the package to 17.2.4rc2.
Several things have changed, hopefully all for the better.
-
openssl 1.1 is now supported, fixes all ssl issues
-
I moved config files to /usr/share/bareos/config to prevent pacnew files being created whenever you upgraded. bsdice suggested this idea.
-
Moved to the systemd script included with bareos.
-
I am actually correctly managing the package rather than using my script that used the debian paths. This means binaries have moved from /sbin to /bin to fit with ArchLinux.
- Tested bareos-webui works with arch package jansson, community doesn't seeem to be required.
I have successfully upgraded my database and machines from 16.2 to 17.2. Some manual work was required.
TODO:
-
Fix some namcap warnings.
-
Move some required dependencies to optional.
Pinned Comments