Hey guys,
I've had to rebuild my bacula server recently. And everything seemed to go okay with the install, but for some reason the bconsole can't conect to the director. This is all I see when I try: [root@bacula1:~] #bconsole Connecting to Director bacula1.example.com:9101 I tried running my bacula-director in debug mode to get an idea of what the problem is, however it isn't providing any clues: [root@bacula1:~] #bacula-dir: jcr.c:128-0 read_last_jobs seek to 192 bacula-dir: jcr.c:135-0 Read num_items=0 bacula-dir: dir_plugins.c:148-0 Load dir plugins bacula-dir: dir_plugins.c:150-0 No dir plugin dir! bacula-dir: mysql.c:697-0 db_init_database first time bacula-dir: mysql.c:165-0 mysql_init done bacula-dir: mysql.c:190-0 mysql_real_connect done bacula-dir: mysql.c:192-0 db_user=admin db_name=bacula db_password=secret bacula-dir: mysql.c:215-0 opendb ref=1 connected=1 db=1126330 bacula-dir: mysql.c:237-0 closedb ref=0 connected=1 db=1126330 bacula-dir: mysql.c:244-0 close db=1126330 bacula1.example.com: bnet_server.c:87-0 Addresses 0.0.0.0:9101 bacula1.example.com: job.c:1528-0 wstorage=File bacula1.example.com: job.c:1537-0 wstore=File where=Job resource bacula1.example.com: job.c:1211-0 JobId=0 created Job=*JobMonitor*.2015-11-08_03.51.15_01 I made sure the bacula director definition matched the bconsole config. >From bacula-dir.conf: Director { # define myself Name = bacula1.example.com DIRport = 9101 # where we listen for UA connections QueryFile = "/etc/bacula/query.sql" WorkingDirectory = "/var/spool/bacula" PidDirectory = "/var/run" Maximum Concurrent Jobs = 1 Password = "secret" # Console password Messages = Daemon TLS Certificate = /etc/pki/tls/certs/bacula1.example.com.crt TLS Key = /etc/pki/tls/private/bacula1.example.com.key TLS CA Certificate File = /etc/pki/CA/certs/ca.crt TLS Enable = yes TLS Require = yes } >From bconsole.conf Director { Name = bacula1.example.com DIRport = 9101 address = bacula1.example.com Password = "secret" TLS Certificate = /etc/pki/tls/certs/bacula1.example.com.crt TLS Key = /etc/pki/tls/private/bacula1.example.com.key TLS CA Certificate File = /etc/pki/CA/certs/ca.crt TLS Enable = yes TL } I also made sure that the Storage definition in bacula-dir.conf matched the config in bacula-sd.conf >From bacula-dir.conf: Storage { Name = File # Do not use "localhost" here Address = bacula1.example.com # N.B. Use a fully qualified name here SDPort = 9103 Password = "secret" Device = FileStorage Media Type = File TLS Certificate = /etc/pki/tls/certs/bacula1.example.com.crt TLS Key = /etc/pki/tls/private/bacula1.example.com.key TLS CA Certificate File = /etc/pki/CA/certs/ca.crt TLS Enable = yes TLS Require = yes } And from the bacula-sd.conf: Storage { # definition of myself Name = bacula1.example.com SDPort = 9103 # Director's port WorkingDirectory = "/var/spool/bacula" Pid Directory = "/var/run" Maximum Concurrent Jobs = 20 TLS Certificate = /etc/pki/tls/certs/bacula1.example.com.crt TLS Key = /etc/pki/tls/private/bacula1.example.com.key TLS CA Certificate File = /etc/pki/CA/certs/ca.crt TLS Enable = yes TLS Require = yes } Director { Name = bacula1.example.com Password = "secret" TLS Certificate = /etc/pki/tls/certs/bacula1.example.com.crt TLS Key = /etc/pki/tls/private/bacula1.example.com.key TLS CA Certificate File = /etc/pki/CA/certs/ca.crt TLS Enable = yes TLS Require = yes #Monitor = yes } And from the client section of bacula-dir.conf to the director in bacula-fd.conf: # Client (File Services) to backup Client { Name = bacula1.example.com Address = bacula1.example.com FDPort = 9102 Catalog = exampleCatalog Password = "secret" # password for File Retention = 14d # 14 days Job Retention = 14d # 14 days AutoPrune = yes # Prune expired Jobs/Files TLS Certificate = /etc/pki/tls/certs/bacula1.example.com.crt TLS Key = /etc/pki/tls/private/bacula1.example.com.key TLS CA Certificate File = /etc/pki/CA/certs/ca.crt TLS Enable = yes TLS Require = yes } Director { Name = bacula1.example.com Password = secret TLS Certificate = /etc/pki/tls/certs/bacula1.example.com.crt TLS Key = /etc/pki/tls/private/bacula1.example.com.key TLS CA Certificate File = /etc/pki/CA/certs/ca.crt TLS Enable = yes TLS Require = yes } # # "Global" File daemon configuration specifications # FileDaemon { # this is me Name = bacula1.example.com FDport = 9102 # where we listen for the director WorkingDirectory = /var/bacula Pid Directory = /var/run Maximum Concurrent Jobs = 20 TLS Certificate = /etc/pki/tls/certs/bacula1.example.com.crt TLS Key = /etc/pki/tls/private/bacula1.example.com.key TLS CA Certificate File = /etc/pki/CA/certs/ca.crt TLS Enable = yes TLS Require = yes } # Send all messages except skipped files back to Director Messages { Name = Standard director = cloud-dir = all, !skipped, !restored } I was hoping I could get some help in troubleshooting this and getting it working! Thanks, Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
------------------------------------------------------------------------------
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users