Unable to backup catalog in FreeBSD

12 views
Skip to first unread message

Marcelo J. Ruiz

unread,
Feb 20, 2020, 2:02:55 AM2/20/20
to bareos-users
Hi,
I am getting an error trying to backup the catalog on a FreeBSD Server.
When I run the backup job, I get the following error:

20-Feb 01:41 freenas-bareos-dir JobId 211: shell command: run BeforeJob "/usr/local/lib/bareos/scripts/make_catalog_backup.pl mycatalog"
20-Feb 01:41 freenas-bareos-dir JobId 211: BeforeJob: sh: pg_dump: not found
20-Feb 01:41 freenas-bareos-dir JobId 211: Error: Runscript: BeforeJob returned non-zero status=127. ERR=Child exited with code 127
20-Feb 01:41 freenas-bareos-dir JobId 211: Error: Bareos freenas-bareos-dir 19.2.6 (11Feb20):


The install created the bareos user and group as follow:

root@bareos:/var/db/bareos # pw user show bareos
bareos:*:997:997::0:0:Bareos Daemon:/var/db/bareos:/usr/sbin/nologin


root@bareos:/var/db/bareos # pw group show bareos
bareos:*:997:



The daemons run in the server with the default user and group.
I tried adding the bareos user to the operators group, but the error still exists.
Since I can run the scripts with a user that can login, I tried settings the daemons to run as that user and groupvia the proper flags in /etc/rc.conf:

bareos_dir_enable="YES"
bareos_dir_flags=" -u marcelo -g marcelo"
bareos_sd_enable="YES"
bareos_sd_flags=" -u marcelo -g marcelo"
bareos_fd_enable="YES"
bareos_fd_flags=" -u marcelo -g marcelo"


But that didn't change anything.
Can anyone tell me what I need to modify to make this work?
Thanks!

Philipp Storz

unread,
Feb 20, 2020, 3:37:14 AM2/20/20
to bareos...@googlegroups.com
Hello Marcelo,

Am 20.02.20 um 08:02 schrieb Marcelo J. Ruiz:
> sh: pg_dump: not found

the script cannot find the pg_dump binary.
So you have to make sure pg_dump is installed, it is available in your PATH and you are allowed to
execute it.

Philipp

--
Mit freundlichen Grüßen

Philipp Storz philip...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 63 06 93-92
http://www.bareos.com Fax: +49 221 63 06 93-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Geschäftsführer: Stephan Dühr, M. Außendorf,
J. Steffens, P. Storz
Reply all
Reply to author
Forward
0 new messages