I've had Bacula 2.0.3  running for a week on my Centos 4.4 server
backing up files on the server successfully.

Yesterday I decided to install Bacula on a Windows XP machine as a
client. I created a job on the server to backup a test folder on the
Windows machine and once I'd sorted the passwords and names out it
backed up the files.

So I added a job that should have run this morning, but that completed
with an error. Now wxconsole on the Windows client cannot connect to
the director on the Linux server and the director cannot talk to the
client.

I've double checked the passwords and they are still correct so what's
the likely problem(s)?

The Windows machine has been rebooted overnight.

The Bacula client icon in the taskbar states idle and the status
window lists the one successful job.

The wxconsole error is:

Welcome to bacula wx-console 2.0.3 (06 March 2007)!
Using this configuration file: C:\Documents and Settings\All
Users\Application Data\Bacula\wx-console.conf
Connecting...
Connected
Director authorization problem.
Most likely the passwords do not agree.
If you are using TLS, there may have been a certificate validation
error during the TLS handshake.
Please see
http://www.bacula.org/rel-manual/faq.html#AuthorizationErrors for
help.
ERR=1999 Authorization failed.


After the failed connection there is a new message in bconsole:

11-May 18:30 Server-dir: ERROR in authenticate.c:382 Unable to
authenticate console "*UserAgent*" at client:192.168.1.10:36131


The result is the same for both the Windows administrator (under which
I installed the software) and a "limited" user.

Config files with passwords replaced by *** except for first two chars
[passwords were cut and pasted to set the windows conf file up to
ensure no errors].

=================
Windows XP bacula-fd.conf:
=================

#
# Default  Bacula File Daemon Configuration file
#
#  For Bacula release 2.0.3 (03/07/07) -- Windows MVS
#
# There is not much to change here except perhaps the
# File daemon Name
#

#
# "Global" File daemon configuration specifications
#
FileDaemon {                            # this is me
  Name = office-fd
  FDport = 9102                # where we listen for the director
  WorkingDirectory = "C:\\Documents and Settings\\All
Users\\Application Data\\Bacula\\Work"
  Pid Directory = "C:\\Documents and Settings\\All Users\\Application
Data\\Bacula\\Work"
  Maximum Concurrent Jobs = 2
}

#
# List Directors who are permitted to contact this File daemon
#
Director {
  Name = Server-dir
  Password = "7s***"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the file daemon
#
Director {
  Name = office-mon
  Password = "JT***"
  Monitor = yes
}

# Send all messages except skipped files back to Director
Messages {
  Name = Standard
  director = Server-dir = all, !skipped, !restored
}



=================
Linux server bacula-dir.conf:
=================

#
# Default Bacula Director Configuration file
#
#  The only thing that MUST be changed is to add one or more
#   file or directory names in the Include directive of the
#   FileSet resource.
#
#  For Bacula release 1.38.11 (28 June 2006) -- redhat 
#
#  You might also want to change the default email address
#   from root to your address.  See the "mail" and "operator"
#   directives in the Messages resource.
#

Director {                            # define myself
  Name = Server-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/query.sql"
  WorkingDirectory = "/var/bacula"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 1
  Password = "Ziu***"         # Console password
  Messages = Daemon
}

JobDefs {
  Name = "Job-Server Home"
  Type = Backup
  Level = Incremental
  Client = Server-fd 
  FileSet = "Server Home Files"
  Schedule = "WeeklyCycle"
  Storage = DLT-7000
  Messages = Standard
  Pool = Backup
  Priority = 10
}


JobDefs {
  Name = "Job-User"
  Type = Backup
  Level = Incremental
  Client = Server-fd 
  FileSet = "User Files"
  Schedule = "WeeklyCycle"
  Storage = DLT-7000
  Messages = Standard
  Pool = Backup
  Priority = 10
}

JobDefs {
  Name = "Job-Office"
  Type = Backup
  Level = Incremental
  Client = office-fd 
  FileSet = "Office Files"
  Schedule = "WeeklyCycle"
  Storage = DLT-7000
  Messages = Standard
  Pool = Backup
  Priority = 10
}
#
# Define the backup jobs
Job {
  Name = "Server-Home"
  JobDefs = "Job-Server Home"
  Write Bootstrap = "/var/bacula/Client1.bsr"
}

Job {
  Name = "Server-User"
  JobDefs = "Job-User"
  Write Bootstrap = "/var/bacula/Client1.bsr"
}

Job {
  Name = "Office"
  JobDefs = "Job-Office"
  Write Bootstrap = "/var/bacula/Client1.bsr"
}



# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  JobDefs = "Job-Server Home"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/delete_catalog_backup"
  Write Bootstrap = "/var/bacula/BackupCatalog.bsr"
  Priority = 11                   # run after main backup
}

#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=Server-fd                 
  FileSet="Server Home Files"                  
  Storage = File                      
  Pool = Backup
  Messages = Standard
  Where = /tmp/bacula-restores
}


# List of files to be backed up
FileSet {
  Name = "Server Home Files"
  Include {
    Options {
      signature = MD5
    }
#    
#  Put your list of files here, preceded by 'File =', one per line
#    or include an external list with:
#
#    File = <file-name
#
#  Note: / backs up everything on the root partition.
#    if you have other partitons such as /usr or /home
#    you will probably want to add them too.
#
#  By default this is defined to point to the Bacula build
#    directory to give a reasonable FileSet to backup to
#    disk storage during initial testing.
#
    File = /home
  }

#
# If you backup the root directory, the following two excluded
#   files can be useful
#
  Exclude {
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
  }
}

FileSet {
  Name = "User Files"
  Include {
    Options {
      signature = MD5
    }

    File = /mnt/md0/shares/user
    File = /mnt/md0/shares/photography_business
    File = /mnt/md0/shares/digiguide
    File = /mnt/md0/shares/internet
    File = /mnt/md0/shares/intranet
    File = /mnt/md0/shares/videos
  }

#
# If you backup the root directory, the following two excluded
#   files can be useful
#
  Exclude {

  }
}

FileSet {
  Name = "Office Files"
  Include {
    Options {
      signature = MD5
    }

    File = C:/bin

  }

#
# If you backup the root directory, the following two excluded
#   files can be useful
#
  Exclude {

  }
}

#
# When to do the backups
Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st mon at 09:00
  Run = Differential 2nd-5th mon at 09:00
  Run = Incremental mon-sun at 11:00
}

# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full mon-sun at 11:10
}

# This is the backup of the catalog
FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /var/bacula/bacula.sql
  }
}

# Client (File Services) to backup
Client {
  Name = Server-fd
  Address = server
  FDPort = 9102
  Catalog = MyCatalog
  Password = "7s****"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

# Client (File Services) to backup
Client {
  Name = office-fd
  Address = office
  FDPort = 9102
  Catalog = MyCatalog
  Password = "7s****"      # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}


# Definition of file storage device
Storage {
  Name = File
# Do not use "localhost" here    
  Address = server                # N.B. Use a fully qualified name
here
  SDPort = 9103
  Password = "QM***"
  Device = FileStorage
  Media Type = File
}



# Definition of DLT-7000 tape storage device
Storage {
  Name = DLT-7000
# Do not use "localhost" here
  Address = server
  SDPort = 9103
  Password = QM***
  Device = DLT-7000
  MediaType = DLT
  Media Type = DLT
}



# Definition of DVD storage device
#Storage {
#  Name = "DVD"
#  Do not use "localhost" here
#  Address = buildcentos4                # N.B. Use a fully qualified
name here
#  SDPort = 9103
#  Password = "QM***"
#  Device = "DVD Writer"
#  MediaType = "DVD"
#}


# Generic catalog service
Catalog {
  Name = MyCatalog
  dbname = bacula; user = bacula; password = ""
}

# Reasonable message delivery -- send most everything to email address
#  and to the console
Messages {
  Name = Standard
#
# NOTE! If you send to two email or more email addresses, you will
need
#  to replace the %r in the from field (-f part) with a single valid
#  email address in both the mailcommand and the operatorcommand.
#
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s
\"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/sbin/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
#
# WARNING! the following will create a file that you must cycle from
#          time to time as it will grow indefinitely. However, it will
#          also keep all your messages if they scroll off the console.
#
  append = "/var/bacula/log" = all, !skipped
}


#
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s
\"Bacula daemon message\" %r"
  mail = [EMAIL PROTECTED] = all, !skipped            
  console = all, !skipped, !saved
  append = "/var/bacula/log" = all, !skipped
}



    
# Default pool definition
Pool {
  Name = Backup                       # For daily-monthly backups
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically
recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
}

#
# Restricted console used by tray-monitor to get the status of the
director
#
Console {
  Name = buildcentos4-mon
  Password = "3i***"
  CommandACL = status, .status
}
--

Peter Crighton

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to