Bacula-users

Re: [Bacula-users] new user, first attempt

2010-07-22 09:59:39
Subject: Re: [Bacula-users] new user, first attempt
From: John Drescher <drescherjm AT gmail DOT com>
To: stanleytberry AT gmail DOT com
Date: Thu, 22 Jul 2010 09:57:22 -0400
2010/7/22 Stan <stanleytberry AT gmail DOT com>:
> Trying to start bacula-dir:
>
> ==================================================================================
>
> backupServer:/# bacula-dir -d 100 -c /etc/bacula/bacula-dir.conf
>
> bacula-dir: dird.c:157-0 Debug level = 100
>
> bacula-dir: jcr.c:135-0 read_last_jobs seek to 188
>
> bacula-dir: jcr.c:142-0 Read num_items=0
>
> bacula-dir: mysql.c:101-0 db_open first time
>
> bacula-dir: mysql.c:129-0 initdb ref=1 connected=0 db=0
>
> bacula-dir: mysql.c:165-0 mysql_init done
>
> backupServer:/#
>
>             .
>
>             .           time passes
>
>             .
>
> bacula-dir: mysql.c:186-0 mysql_real_connect done
>
> bacula-dir: mysql.c:188-0 db_user=bacula db_name=bacula db_password=
>
> bacula-dir: dird.c:878 Could not open Catalog "MyCatalog", database
> "bacula".
>
> bacula-dir: dird.c:883 mysql.c:194 Unable to connect to MySQL server.
>
> Database=bacula User=bacula
>
> MySQL connect failed either server not running or your authorization is
> incorrect.
>
> bacula-dir: mysql.c:227-0 closedb ref=0 connected=0 db=0
>
> 22-Jul 07:44 bacula-dir ERROR TERMINATION
>
> Please correct configuration file: /etc/bacula/bacula-dir.conf
>
> ==================================================================================
>
> from /etc/bacula/bacula-dir.conf ...
>
> ----------------------------------------------------------------------------------
>
> # Backup the catalog database (after the nightly save)
>
> Job {
>
>   Name = "BackupCatalog"
>
>   JobDefs = "DefaultJob"
>
>   Level = Full
>
>   FileSet="Catalog"
>
>   Schedule = "WeeklyCycleAfterBackup"
>
>   # This creates an ASCII copy of the catalog
>
>   # WARNING!!! Passing the password via the command line is insecure.
>
>   # see comments in make_catalog_backup for details.
>
>   # Arguments to make_catalog_backup are:
>
>   #  make_catalog_backup <database-name> <user-name> <password> <host>
>
>   RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula bacula
> CrackerJack 192.168.48.3"
>
>   # This deletes the copy of the catalog
>
>   RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
>
>   Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
>
>   Priority = 11                   # run after main backup
>
> }
>
> -----------------------------------------------------------------------------------
>
> I know it's not secure ... I'll worry about that after I see it work.
>
> ===================================================================================
>
> Using MySQL Administrator ... screenshot "in-MySQL_Administrator root.png"
> attached.
>
> ===================================================================================
>
> Using MySQL Browser ... screenshot "in_MySQL_Browser.png" attached.
>
> For this test, root and bacula have the same password and that password is
> as specified in bacula-dir.conf.
>
> ===================================================================================
>
> What did I miss, please?
>

The problem is database related. Did you create the database? Can the
bacula user access the database? Is mysql running?

John

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users