I have problem when connecting to the Director
daemon.
the following is my configure:
{ CFLAGS="-g -Wall" ./configure \ --sbindir=/usr/local/bacula/bin \ --sysconfdir=/usr/local/bacula/bin \ --enable-smartalloc \ --with-sqlite=/usr/local/bacula/depkgs/sqlite \ --with-working-dir=/usr/local/bacula/working \ --with-pid-dir=/usr/local/bacula/bin/working \ --with-subsys-dir=/usr/local/bacula/bin/working \ --enable-conio } after make and make install bacula,I use default config. then " [EMAIL PROTECTED] bin]# ./bacula start Starting the Bacula Storage daemon Starting the Bacula File daemon Starting the Bacula Director daemon [EMAIL PROTECTED] bin]# ./bconsole Connecting to Director backup:9101 01-Jul 09:10 bconsole: Fatal error: bnet.c:775 Unable to connect to Director daemon on backup:9101. ERR=Connection refused [EMAIL PROTECTED] bin]# " Last I see the log:
"bconsole: Fatal error: bnet.c:775 Unable to connect to Director daemon on backup:9101. ERR=Connection refused Could not open pid file. /usr/local/bacula/bin/working/bacula-dir.9101.pid ERR=No such file or directory" This is my first time use bacula,and this problem have puzzled
me several days.
The current configuration with the
accessory.
Any comments/advice would be appreciated. thanks |
Director { # define myself Name = backup-dir DIRport = 9101 # where we listen for UA connections QueryFile = "/usr/local/bacula/bin/query.sql" WorkingDirectory = "/usr/local/bacula/working" PidDirectory = "/usr/local/bacula/bin/working" Maximum Concurrent Jobs = 1 Password = "mFyvmXcsDVLgMrdSFAL3+wW+fc0Kq0fq9Z3P03mwHe5a" # Console password Messages = Daemon }
JobDefs { Name = "DefaultJob" Type = Backup Level = Incremental Client = backup-fd FileSet = "Full Set" Schedule = "WeeklyCycle" Storage = File Messages = Standard Pool = Default Priority = 10 } Job { Name = "Client1" JobDefs = "DefaultJob" Write Bootstrap = "/usr/local/bacula/working/Client1.bsr" } Job { Name = "BackupCatalog" JobDefs = "DefaultJob" Level = Full FileSet="Catalog" Schedule = "WeeklyCycleAfterBackup" # This creates an ASCII copy of the catalog RunBeforeJob = "/usr/local/bacula/bin/make_catalog_backup bacula bacula" # This deletes the copy of the catalog RunAfterJob = "/usr/local/bacula/bin/delete_catalog_backup" Write Bootstrap = "/usr/local/bacula/working/BackupCatalog.bsr" Priority = 11 # run after main backup } Job { Name = "RestoreFiles" Type = Restore Client=backup-fd FileSet="Full Set" Storage = File Pool = Default Messages = Standard Where = /tmp/bacula-restores } FileSet { Name = "Full Set" Include { Options { signature = MD5 } File = /usr/local/bacula/bacula-1.36.3 } Exclude { File = /proc File = /tmp File = /.journal File = /.fsck } } Schedule { Name = "WeeklyCycle" Run = Full 1st sun at 1:05 Run = Differential 2nd-5th sun at 1:05 Run = Incremental mon-sat at 1:05 } Schedule { Name = "WeeklyCycleAfterBackup" Run = Full sun-sat at 1:10 } FileSet { Name = "Catalog" Include { Options { signature = MD5 } File = /usr/local/bacula/working/bacula.sql } } Client { Name = backup-fd Address = backup FDPort = 9102 Catalog = MyCatalog Password = "748b2oY3d4QIhV3yNq7ej8EogYWE2r1YmtKKHHIQUdNG" # password for FileDaemon File Retention = 30 days # 30 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files } Storage { Name = File Address = backup # N.B. Use a fully qualified name here SDPort = 9103 Password = "mV/pOkSTt5o0m4w+fWQOZ67UuyfBcy4nOl23uaJBK9mE" Device = FileStorage Media Type = File } Catalog { Name = MyCatalog dbname = bacula; user = bacula; password = "" } Messages { Name = Standard mailcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" % r" mail = [EMAIL PROTECTED] = all, !skipped operator = [EMAIL PROTECTED] = mount console = all, !skipped, !saved append = "/usr/local/bacula/working/log" = all, !skipped } operator = [EMAIL PROTECTED] = mount console = all, !skipped, !saved append = "/usr/local/bacula/working/log" = all, !skipped } Messages { Name = Daemon mailcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r" mail = [EMAIL PROTECTED] = all, !skipped console = all, !skipped, !saved append = "/usr/local/bacula/working/log" = all, !skipped } Pool { Name = Default Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Accept Any Volume = yes # write on any volume in the pool } Console { Name = backup-mon Password = "Z+iqxeha24q4daVy6cBgixvL9J/GqQKmWKaxi19pw3Me" CommandACL = status, .status }
Director { Name = backup-dir Password = "748b2oY3d4QIhV3yNq7ej8EogYWE2r1YmtKKHHIQUdNG" } Director { Name = backup-mon Password = "kg2JF+1UlO6eD+Mj4gUIRtYBpwNmex22KkF/9Vj42qB3" Monitor = yes } FileDaemon { # this is me Name = backup-fd FDport = 9102 # where we listen for the director WorkingDirectory = /usr/local/bacula/working Pid Directory = /usr/local/bacula/bin/working Maximum Concurrent Jobs = 20 } Messages { Name = Standard director = backup-dir = all, !skipped }
Storage { # definition of myself Name = backup-sd SDPort = 9103 # Director's port WorkingDirectory = "/usr/local/bacula/working" Pid Directory = "/usr/local/bacula/bin/working" Maximum Concurrent Jobs = 20 } Director { Name = backup-dir Password = "mV/pOkSTt5o0m4w+fWQOZ67UuyfBcy4nOl23uaJBK9mE" } Director { Name = backup-mon Password = "PRYfEbjvcBcFMr/7hiZFUvEBAwUcPcU6eCTfsOQKE7sK" Monitor = yes } Device { Name = FileStorage Media Type = File Archive Device = /tmp LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = no; AlwaysOpen = no; } Messages { Name = Standard director = backup-dir = all
Director { Name = backup-dir DIRport = 9101 address = backup Password = "mFyvmXcsDVLgMrdSFAL3+wW+fc0Kq0fq9Z3P03mwHe5a" }