Bacula-users

Re: [Bacula-users] director won't start

2015-03-27 12:36:06
Subject: Re: [Bacula-users] director won't start
From: Josip Deanovic <djosip+news AT linuxpages DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 27 Mar 2015 17:34:18 +0100
Quoting message written on Friday 2015-03-27 12:08:27:
> Ok, I've verified that director is down, only storage and file daemons
> are running:
> 
> [root@ops:~] #ps -ef | grep bacula | grep -v grep
> root     12915     1  0 Mar26 ?        00:00:00 bacula-fd -c
> /etc/bacula/bacula-fd.conf -u root -g root
> bacula   26664     1  0 00:21 ?        00:00:00 bacula-sd -c
> /etc/bacula/bacula-sd.conf -u bacula -g disk
> 
> And this is what I get when I run that command:
> 
> [root@ops:~] #bacula-dir -c /etc/bacula/bacula-dir.conf -d 200 -f
> bacula-dir: dird.c:194-0 Debug level = 200
> bacula-dir: address_conf.c:264-0 Initaddr 0.0.0.0:9101
> bacula-dir: runscript.c:284-0 runscript: debug
> bacula-dir: runscript.c:285-0  --> RunScript
> bacula-dir: runscript.c:286-0   --> Command=/etc/bacula/
> make_catalog_backup.pl JokefireCatalog
> bacula-dir: runscript.c:287-0   --> Target=
> bacula-dir: runscript.c:288-0   --> RunOnSuccess=1
> bacula-dir: runscript.c:289-0   --> RunOnFailure=0
> bacula-dir: runscript.c:290-0   --> FailJobOnError=1
> bacula-dir: runscript.c:291-0   --> RunWhen=2
> bacula-dir: runscript.c:284-0 runscript: debug
> bacula-dir: runscript.c:285-0  --> RunScript
> bacula-dir: runscript.c:286-0   -->
> Command=/etc/bacula/delete_catalog_backup
> bacula-dir: runscript.c:287-0   --> Target=
> bacula-dir: runscript.c:288-0   --> RunOnSuccess=1
> bacula-dir: runscript.c:289-0   --> RunOnFailure=0
> bacula-dir: runscript.c:290-0   --> FailJobOnError=1
> bacula-dir: runscript.c:291-0   --> RunWhen=1
> bacula-dir: jcr.c:128-0 read_last_jobs seek to 192
> bacula-dir: jcr.c:135-0 Read num_items=10
> bacula-dir: dir_plugins.c:148-0 Load dir plugins
> bacula-dir: dir_plugins.c:150-0 No dir plugin dir!
> bacula-dir: dird.c:972-0 Could not open Catalog "JokefireCatalog",
> database "bacula".
> bacula-dir: dird.c:977-0 Query failed: SELECT VersionId FROM Version:
> ERR=no such table: Version
> 27-Mar 12:04 bacula-dir ERROR TERMINATION
> Please correct configuration file: /etc/bacula/bacula-dir.conf
> 
> It looks like it can't find a catalog by the name "JokefireCatalog". But
> it used to be there before some data got deleted.
> 
> So is this a physical file on the file system that it's not finding?  Or
> is this an entry in the database that it's not finding? Any ideas how
> to correct this?

JokefireCatalog is just the name of the database definition (Catalog
resource) in your bacula director configuration. It is not stored
on disk nor in the database. There is nothing magic or special about
it.

Output says that bacula failed to open the Catalog JokefireCatalog
which actually means that it couldn't connect to the database thus
failed executing SQL queries.

>>From the output you have sent I would say that you are missing libraries
or support needed to connect to your mysql server.

I am pretty much sure that after the two lines that contain
"dir_plugins.c", you should see several lines mentioning "mysql.c"

Are you sure that your bacula-dir has been compiled with mysql support?
You could probably check that with the command such as:
 ldd /path/to/your/bacula-dir | grep mysql


I thinkg this is it.


-- 
Josip Deanovic

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users