Hi,
So I have Ubuntu server 11.04 with LAMP and Bacula 5.0.3. My problem is with bacula :/. At first the director was not working, the director process crashed after a while because he wasn't able to connect to the mysql server.
I found an error in the defaut director configuration file :
Code:
# vim /etc/bacula/bacula-dir.conf
# Generic catalog service
Catalog {
Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport =
dbname = "bacula;" DB Address = ""; dbuser = "bacula"; dbpassword = "myPassword"
}
After I change the
"bacula;" to
"bacula";, the server file deamon (myServer.myDomain-fd) wasn't starting anymore. But the director works now! The file deamon was working before I change that line, and Bacula's still not able to connect to the local mysql server...
The error :
Code:
# /etc/init.d/bacula-fd start
* Starting Bacula File daemon... 06-Apr 16:27 bacula-fd: ERROR TERMINATION at parse_conf.c:971
Config error: Keyword "FileDaemon" not permitted in this resource.
Perhaps you left the trailing brace off of the previous resource.
: line 31, col 11 of file /etc/bacula/bacula-fd.conf
FileDaemon { # this is me
[fail]
Here is the error in the bacula's log file :
Code:
# vim /var/log/bacula/log
06-Apr 15:21 bacula-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bacula".
06-Apr 15:21 bacula-dir JobId 0: Fatal error: 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.
06-Apr 15:21 bacula-dir ERROR TERMINATION
Please correct configuration file: /etc/bacula/bacula-dir.conf
I have test if the mysql server was running and it was...
Code:
# ps -ef | grep mysqld
mysql 666 1 0 Apr05 ? 00:00:22 /usr/sbin/mysqld
I have test the mysql password of the bacula user and it's okay...
Code:
# mysql -u bacula -p bacula
Enter password:
[...]
mysql>
So now, only the file deamon and the director's running :
Code:
# ps -ef | grep bacula
bacula 11512 1 0 15:20 ? 00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape
bacula 12948 1 0 16:10 ? 00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula
What should I do to make Bacula work properly?
Sorry, english's not my native language...
Thank you very much !