I've searched the mailing list archives, but found some things slightly
different than my trouble here.
First, let me start with the basics of what I'm running. OS is openSUSE 10.1,
Bacula release is 2.2.4 (but the problem also occurs on 2.2.3), Mysql is
5.0.18 There were no errors during configure or compilation - everything
looked pretty clean. Note that I am able to compile Bacula exactly the same,
except for use with SQLite, and it works fine. Here is a little background and
description of the trouble I'm experiencing:
After compiling Bacula and verifying that mysql is working under root, I ran
# grant_mysql_privileges -u root -p
# create_bacula_database -u bacula
# make_bacula_tables -u bacula
I can use the mysql CLI to log on as "bacula" user and I'm able to view and
select the tables in the "bacula" database. I have also tried this procedure
using root credentials.
I enter "./bacula start" and get:
Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
No errors at this point, but when I run "./bconsole", I get
Connecting to Director covnas:9101
01-Oct 16:27 bconsole: Fatal error: bsock.c:129 Unable to connect to Director
daemon on covnas:9101. ERR=Connection refused
After about 5 seconds of being thrown back to a shell prompt, I get:
covnas:/opt/bacula/bin # bacula-dir: dird.c:875 Could not open Catalog
"MyCatalog", database "bacula".
bacula-dir: dird.c:880 mysql.c:193 Unable to connect to MySQL server.
Database=bacula User=bacula
MySQL connect failed either server not running or your authorization is
incorrect.
01-Oct 16:28 bacula-dir ERROR TERMINATION
Please correct configuration file: /opt/bacula/bin/bacula-dir.conf
It's acting like it's having trouble connecting rather than authenticating.
I'm using default config files, except for the bacula-sd.conf which just has an
entry for my tape drive. The only thing pertaining to database and db
authentication in my bacula-dir.conf file is:
# Generic catalog service
Catalog {
Name = MyCatalog
dbname=bacula; user=bacula; password=""
}
Of course, when I try root user, I change the directives above accordingly.
I've recompiled Bacula several times with various options hoping something
would work. I really like Bacula, and hope that someone out there can help me
get it working in production use. Maybe we'll then be able to get rid of some
of this bloated and overpriced backup software. I'm willing to set some time
aside to get this program working with mysql.
Any help is greatly appreciated,
Brian H.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users