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!