Bacula-users

Re: [Bacula-users] BeforeJob: Can't find your catalog (MyCatalog) in director configuration

2013-03-04 15:28:47
Subject: Re: [Bacula-users] BeforeJob: Can't find your catalog (MyCatalog) in director configuration
From: Carlos Perez <carlos.r.perez AT gmail DOT com>
To: Humphrey Bryant <hbryant AT fogadaley DOT com>
Date: Mon, 4 Mar 2013 12:25:57 -0800
Thanks for your input, I followed instructions and the only thing different is that I don't see this file:

chgrp bacula /etc/bacula/bacula-dir.conf /etc/bacula/query.sql



 chgrp bacula /etc/bacula/bacula-dir.conf /etc/bacula/query.sql
chgrp: cannot access `/etc/bacula/query.sql': No such file or directory

Whats puzzuling to me is that everything else is working except catalog hhhhh.mmmm 




On Mon, Mar 4, 2013 at 12:08 PM, Humphrey Bryant <hbryant AT fogadaley DOT com> wrote:
Seems to be a permission issue, i experienced a similar problem last week after upgrading Bacula.
The following response from Simone corrected the errors i had backing up my catalog.
See below (hope that helps, also check mailing list to see full thread)


On 02/25/2013 03:30 AM, Simone Caronni wrote:
On 25 February 2013 09:14, Simone Caronni <negativo17 AT gmail DOT com> wrote:
Restore /etc/bacula to the default permissions + bacula group:

chown -R root:root /etc/bacula
chgrp bacula /etc/bacula \
        /etc/bacula/bacula-dir.conf
        /etc/bacula/query.sql

Well, this should be better; same result but a bit more restrictive.
Fixes also the console permissions to be more restrictive while preventing the bacula daemon to poke with other files in case of being compromised:

chown -R root:root /etc/bacula
chmod 755 /etc/bacula
chmod 640 /etc/bacula/*
chgrp bacula /etc/bacula/bacula-dir.conf /etc/bacula/query.sql

On 03/04/2013 01:46 PM, Carlos Perez wrote:
Anyone, who can lead me in the right direction?  I have been tasked with testing bacula so we can hopefully moved from our commercial solutions since it doesn't meet our requirements at this time.  Bacula, seems to be the perfect solution but I have to do a lots of testing.  Almost, everything runs with the exception of catalog I i'm attaching the error code, any help will be highly appreciated:

2013-03-03 23:10:02   baculaserver-dir JobId 133: shell command: run BeforeJob "/usr/lib64/bacula/make_catalog_backup.pl MyCatalog"

2013-03-03 23:10:02   baculaserver-dir JobId 133: BeforeJob: sh: /usr/sbin/dbcheck.mysql: No such file or directory
2013-03-03 23:10:02   baculaserver-dir JobId 133: BeforeJob: Can't find your catalog (MyCatalog) in director configuration

2013-03-03 23:10:02 baculaserver-dir JobId 133: Error: Runscript: BeforeJob returned non-zero status=1. ERR=Child exited with code 1
2013-03-03 23:10:02 baculaserver-dir JobId 133: Error: Bacula baculaserver-dir 5.2.12 (12Sep12): Build OS: x86_64-suse-linux-gnu suse 11 JobId: 133 Job: MyCatalog.2013-03-03_23.10.00_23 Backup Level: Full Client: "baculaserver-fd" 5.2.12 (12Sep12) x86_64-suse-linux-gnu,suse,11


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb


_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>