Anyone have any idea why the backup catalogs are failing? 

run job="BackupCatalog" fileset="Catalog" level="Full" client="bacula-fd"
pool="catalog" storage="catalog" priority="10" when="2018-02-19 08:20:38"
yes 
Job queued. JobId=898
.messages 
19-Feb 08:20 bacula-dir JobId 898: shell command: run BeforeJob
"/usr/local/libexec/bacula/make_catalog_backup.pl MyCatalog"
.messages 
19-Feb 08:20 bacula-dir JobId 898: BeforeJob: could not identify current
directory: Permission denied
19-Feb 08:20 bacula-dir JobId 898: BeforeJob: could not identify current
directory: Permission denied
19-Feb 08:20 bacula-dir JobId 898: BeforeJob: psql: could not find own
program executable
19-Feb 08:20 bacula-dir JobId 898: BeforeJob: root doesn't have access to
the catalog database
19-Feb 08:20 bacula-dir JobId 898: Error: Runscript: BeforeJob returned
non-zero status=1. ERR=Child exited with code 1
19-Feb 08:20 bacula-dir JobId 898: Error: Bacula bacula-dir 9.0.4 (06Sep17):
  Build OS:               x86_64-unknown-openbsd6.2 openbsd 6.2
  JobId:                  898
  Job:                    BackupCatalog.2018-02-19_08.20.42_51
  Backup Level:           Full
  Client:                 "bacula-fd" 9.0.4 (06Sep17)
x86_64-unknown-openbsd6.2,openbsd,6.2
  FileSet:                "Catalog" 2017-10-27 13:06:38
  Pool:                   "catalog" (From Command input)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "catalog" (From Command input)
  Scheduled time:         19-Feb-2018 08:20:38
  Start time:             19-Feb-2018 08:20:49
  End time:               19-Feb-2018 08:20:49
  Elapsed time:           1 sec
  Priority:               10
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0 (0 B)
  SD Bytes Written:       0 (0 B)
  Rate:                   0.0 KB/s
  Software Compression:   None
  Comm Line Compression:  None
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               no
  Volume name(s):         
  Volume Session Id:      0
  Volume Session Time:    0
  Last Volume Bytes:      0 (0 B)
  Non-fatal FD errors:    1
  SD Errors:              0
  FD termination status:  
  SD termination status:  
  Termination:            *** Backup Error ***

If I run /usr/local/libexec/bacula/make_catalog_backup.pl MyCatalog as root,
it successfully dumps a bacula.sql file in /var/bacula, but it won't if I
run the backup job from bat or bconsole. Any help would be much appreciated.

TIA


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to