MyCatalog job fails

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

MyCatalog job fails

Brian Blater
After several successful Catalog backups I'm all of a sudden getting the following error in my backup:

JobId 137: BeforeJob: Can't find your catalog (MyCatalog) in director configuration

If I look in bacula-dir.conf I see the following:

# Generic catalog service
Catalog {
  Name = MyCatalog
  dbname = "bacula"; DB Address = "localhost"; dbuser = "bacula"; dbpassword = "*********"
}

So I'm not sure why this has stopped working. Any ideas for me to look for? All the other jobs complete successfully.

Thanks,
Brian

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: MyCatalog job fails

Davide Franco-2
Hi Brian,

Run the bacula-dir command with -t.
This should show you where configuration is not ok

Regards

Davide

On Thu, 22 Jun 2017 at 17:18, Brian Blater <[hidden email]> wrote:
After several successful Catalog backups I'm all of a sudden getting the following error in my backup:

JobId 137: BeforeJob: Can't find your catalog (MyCatalog) in director configuration

If I look in bacula-dir.conf I see the following:

# Generic catalog service
Catalog {
  Name = MyCatalog
  dbname = "bacula"; DB Address = "localhost"; dbuser = "bacula"; dbpassword = "*********"
}

So I'm not sure why this has stopped working. Any ideas for me to look for? All the other jobs complete successfully.

Thanks,
Brian
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: MyCatalog job fails

Charles
In reply to this post by Brian Blater
> From: Brian Blater <[hidden email]>
> To: [hidden email]
> Subject: [Bacula-users] MyCatalog job fails
> Message-ID:
> <CALUF7=f2ZrUSErD_1JchDc-fxZxkELq=4Gufgri6zxN=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> After several successful Catalog backups I'm all of a sudden getting the
> following error in my backup:
>
> JobId 137: BeforeJob: Can't find your catalog (MyCatalog) in director
> configuration
>
> If I look in bacula-dir.conf I see the following:
>
> # Generic catalog service
> Catalog {
>   Name = MyCatalog
>   dbname = "bacula"; DB Address = "localhost"; dbuser = "bacula";
> dbpassword = "*********"
> }
>
> So I'm not sure why this has stopped working. Any ideas for me to look for?
> All the other jobs complete successfully.
>
> Thanks,
> Brian

We have fixed this error by fixing ownerships and permissions on
/etc/bacula/*.conf files and our /etc/bacula/conf.d tree (we use a
non-standard modular configuration scheme).

Working ownerships and permissions on /etc/bacula/*.conf files:
root@backup2:/etc/bacula# ls -l *.conf
-rw-r----- 1 root bacula 2357 Aug  9  2016 bacula-dir.conf
-rw-r----- 1 root root    941 Aug  3  2016 bacula-fd.conf
-rw-r----- 1 root root   2414 Apr 18 11:35 bacula-sd.conf
-rw-r----- 1 root root    179 Jul 19  2016 bconsole.conf
-rw-r----- 1 root root    587 Jul 19  2016 tray-monitor.conf

For the tree we have fixed with:
find /etc/bacula/conf.d -exec chown root:bacula {} +
find /etc/bacula/conf.d -type d -exec chmod 755 {} +
find /etc/bacula/conf.d -type f -exec chmod 640 {} +

Charles

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users