Hi everyone,
I'm new to bacula and have been trying to run it whole day today. I have
installed the version 2.4.4 (after facing the same problems as listed below
with 3.0.0). The configure, make and make install went fine. The configure
command used was:
CFLAGS="-g -Wall" ./configure \
--sbindir=$HOME/bacula/bin \
--sysconfdir=$HOME/bacula/bin \
--with-pid-dir=$HOME/bacula/bin/working \
--with-subsys-dir=$HOME/bacula/bin/working \
--with-mysql \
--with-working-dir=$HOME/bacula/bin/working \
--with-dump-email=$USER \
--enable-bat
After this, trying to run ./bacula start actually created 3 processes - one
each for storage daemon, file daemon and the director daemon:
[r...@newglfs01 bin]# ./bacula start
Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
[r...@newglfs01 bin]# ps aux | grep bacula
root 24180 0.0 0.0 96092 860 ? Ssl 02:07 0:00
/root/bacula/bin/bacula-sd -v -c /root/bacula/bin/bacula-sd.conf
root 24190 0.0 0.0 85684 656 ? Ssl 02:07 0:00
/root/bacula/bin/bacula-fd -v -c /root/bacula/bin/bacula-fd.conf
root 24199 0.0 0.0 109396 1320 ? Ss 02:07 0:00
/root/bacula/bin/bacula-dir -v -c /root/bacula/bin/bacula-dir.conf
root 24201 0.0 0.0 61168 720 pts/1 S+ 02:07 0:00 grep bacula
However, when I try starting the bcosole program, it exits with the
following error message:
[r...@newglfs01 bin]# ./bconsole
Connecting to Director newglfs01:9101
15-Apr 02:07 bconsole JobId 0: Fatal error: bsock.c:129 Unable to connect to
Director daemon on newglfs01:9101. ERR=Connection refused
Strangely, the bacula-dir daemon vanishes after this point. So, I checked
the configuration using the following command:
[r...@newglfs01 bin]# ./bacula-dir -t -c bacula-dir.conf
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.
15-Apr 02:04 bacula-dir ERROR TERMINATION
Please correct configuration file: bacula-dir.conf
However, I'm perfectly able to connect to the mysql server and the bacula
database using the username "bacula". Following is the output of the show
grants on the mysql client:
mysql> show grants for 'bacula';
+-------------------------------------------------------------------------------------------------------+
| Grants for bac...@%
|
+-------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'bacula'@'%' IDENTIFIED BY PASSWORD
'*498F6E0FC18D37B6288117511CF2B12BCC8E1A3F' |
| GRANT ALL PRIVILEGES ON `bacula`.* TO 'bacula'@'%'
|
+-------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)
mysql> show grants for 'bacula'@'localhost';
+---------------------------------------------------------------------------------------------------------------+
| Grants for bac...@localhost
|
+---------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'bacula'@'localhost' IDENTIFIED BY PASSWORD
'*498F6E0FC18D37B6288117511CF2B12BCC8E1A3F' |
| GRANT ALL PRIVILEGES ON `bacula`.* TO 'bacula'@'localhost'
|
+---------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)
The only change I made was to insert the password 'bacula' in the
bacula-dir.conf file in the CATALOG section. And this was after it didn't
work without passwords. The relevant section of the bacula-dir.conf file is:
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula"
}
Any help is greatly appreciated.
Thanks and regards
Chandranshu
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users