So, been trying to setup two-tier bacula. Stuck on cannot connect to client.
To grab more clues, run this line on bacula-fd machine:
sudo /usr/sbin/bacula-fd -f -d100 -c /etc/bacula/bacula-fd.conf
Then do bconsole dance on bacula-dir machine. Use “status” command to test connection to client. I you see cram-md5 authentication failed in bacula-fd output then you have the same problem as I did. Otherwise, check your connection between bacula-dir and nacula-fd
Here’s the solution:
in bacula-fd.conf:
Director {
Name = bacula-director
Password = "remote-fd-passwd"
}
“Name” should be your bacula-dir Name. You can found this in bacula-dir.conf. See below:
Director { # define myself
Name = bacula-director
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 = "blahblahblah" # Console password
Messages = Daemon
DirAddress = 127.0.0.1
}
Then the password part on bacula-fd.conf should be the same with your client definition in bacula-dir.conf. eg:
Client {
Name = remote-fd
Address = remote.fd.ip
FDPort = 9102
Catalog = MyCatalog
Password = "remote-fd-passwd" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Don’t forget to restart bacula-dir and bacula-fd after modifying conf files. Good luck!