Bacula-users

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

2008-08-14 12:13:11
Subject: Re: [Bacula-users] Director doesn't start: Could not find config Resource MySQL
From: "Lukasz Szybalski" <szybalski AT gmail DOT com>
To: "Dan Langille" <dan AT langille DOT org>
Date: Thu, 14 Aug 2008 11:13:04 -0500
See this:
http://lucasmanual.com/mywiki/Bacula#head-c66a196217c06128aab102b2c7a0f3734fe18400

The section about bacula dbname,user,pass needs to be correct.
You also need to have a db installed. Check with mysql-admin to see if
all of it is place.

Lucas


On Thu, Aug 14, 2008 at 10:13 AM, Dan Langille <dan AT langille DOT org> wrote:
> 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
>



-- 
Where was my car manufactured?
http://cars.lucasmanual.com/vin
TurboGears Manual-Howto
http://lucasmanual.com/pdf/TurboGears-Manual-Howto.pdf

-------------------------------------------------------------------------
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

<Prev in Thread] Current Thread [Next in Thread>