Bacula-users

Re: [Bacula-users] Director doesn't start: Could not find config Resource MySQL

2008-08-14 11:13:50
Subject: Re: [Bacula-users] Director doesn't start: Could not find config Resource MySQL
From: Dan Langille <dan AT langille DOT org>
To: Robert Svensson <Robert.Svensson AT mideye DOT com>
Date: Thu, 14 Aug 2008 11:13:35 -0400
Dan Langille wrote:
> Robert Svensson wrote:
>> Hi.
>> I'm a first time bacula user and I can seem to get this show on the road.
>>
>> I'm using ububtu 8.04 and bacula 2.2.8
>>
>> When I try to start the director ( /etc/init.d/bacula-dir start ) I get:
>>  * Starting Bacula Director:  14-Aug 14:03 bacula-dir: ERROR TERMINATION 
>> at parse_conf.c:483
>> Config error: Could not find config Resource MySQL referenced on line 31 
>> :   Catalog = MySQL
>> : line 31, col 18 of file /etc/bacula/bacula-dir.conf Catalog = MySQ [fail]
>>
>> The problem is that i don't understand what I should put in the Catalog 
>> field.
>>
>> My /etc/bacula/bacula-dir.conf:
>>
>> Director {                            # define myself
>>   Name = backupserver-dir
>>   DIRport = 9101                # where we listen for UA connections
>>   QueryFile = "/etc/bacula/scripts/query.sql"
>>   WorkingDirectory = "/var/lib/bacula"
>>   PidDirectory = "/var/run/bacula"
>>   Maximum Concurrent Jobs = 1
>>   Password = "*L"         # Console password
>>   #Messages = Daemon
>>   DirAddress = 127.0.0.1
>> }
>>
>>
>>
>> # Definition of "Tape Drive" storage device
>> Storage {
>>   Name = HP
>>   # Do not use "localhost" here   
>>   Address = backupserver               # N.B. Use a fully qualified name 
>> here
>>   SDPort = 9103
>>   Password = "*"
>>   Device = HP
>>   Media Type = tape
>> }
>>
>>
>> Client {
>>   Name = backupserver-fd
>>   Address = backupserver
>>   FDPort = 9102
>>   Catalog = MySQL

Oh, and given the Catalog resource below, the line above should be:

  Catalog = MyCatalog

A given configuration can have more than one Catalog.  This line tells 
Bacula which Catalog to use for this Client.

>>   Password = "*"          # password for FileDaemon
>>   File Retention = 30 days            # 30 days
>>   Job Retention = 6 months            # six months
>>   AutoPrune = yes                     # Prune expired Jobs/Files
>> }
>>
>> I'm using MySQL as the backend database.
>> My tape drive is working fine.
> 
> You also need a Catalog resource in there.  Something like this:
> 
> Catalog {
>    Name = MyCatalog
>    dbname = bacula; dbaddress = localhost; user = bacula; password = ""
> }

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users