On Mon, 2006-03-27 at 02:47 +0100, Dominic Marks wrote:
> Craig White wrote:
> > Sorry - meant to reply to the list too.
> 
> Can we see your bacula-dir.conf and bconsole.conf files?
---
sure...

I attached them as file attachments since they range a bit long for an
email. I hope this is acceptable (maybe even preferred)

Craig
> 
> Cheers,
> Dominic
> 
> > Sorry - should have given more info...
> > 
> > iptables turned off at this point. No delays (i.e. dns)
> > 
> > # ./bconsole
> > Connecting to Director srv1:9101
> > 1000 OK: srv1-dir Version: 1.38.5 (18 January 2006)
> > Enter a period to cancel a command.
> > *status client
> > Using default Catalog name=MyCatalog DB=bacula
> > Automatically selected Client: srv1-fd
> > Connecting to Client srv1-fd at srv1:9102
> > Failed to connect to Client srv1-fd.
> > ====
> > You have messages.
> > *
> > 26-Mar 16:40 srv1-dir: *Console*.2006-03-26_16.36.37 Fatal error: Unable
> > to authenticate with File daemon. Possible causes:
> > Passwords or names not the same or
> > Maximum Concurrent Jobs exceeded on the FD or
> > FD networking messed up (restart daemon).
> > Please see http://www.bacula.org/rel-manual/faq.html#AuthorizationErrors
> > for help.
> > 
> > as for syslog and dmesg... I've cleaned up the issue of /var/bacula
> > where 'group' bacula wasn't given write permissions, which kept
> > bacula-dir from starting up and I have this message in dmesg which I
> > think might be harmless...
> > 
> > st0: MTSETDRVBUFFER only allowed for root.
> > 
> > since the btape tests passed.
> > 
> > Craig
> > 
> > On Mon, 2006-03-27 at 01:16 +0100, Nicole King wrote:
> >> Hi Craig,
> >>
> >> In what way does "it not connect"? Is there a long delay, followed by an
> >> error message? If there's an error message, what is it? Any messages in the
> >> log (dmesg)? Is there any filtering of IP (eg. Iptables)?
> >>
> >> Nicole (aka CatsMuvva)
> >>
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] On Behalf Of Craig White
> >> Sent: 27 March 2006 00:17
> >> To: bacula-users@lists.sourceforge.net
> >> Subject: [Bacula-users] struggling getting started
> >>
> >>
> >> newbie alert...
> >>
> >> installed 1.38-5 (built rpm from src rpm on CentOS-4)
> >>
> >> NOTE: /var/bacula wasn't created as writable by group bacula which had
> >> to be fixed before I could get bacula-dir to start.
> >>
> >> Working through the 'getting started' instructions...
> >>
> >> Anyway, I am trying to connect with bconsole and it can't connect.
> >>
> >> I edited the passwords within bacula-dir.conf bacula-sd.conf
> >> bconsole.conf so they are the same and restarted all of the bacula
> >> daemons.
> >>
> >> Still the same issue.
> >>
> >> So I changed the bacula-dir.conf and bconsole.conf to use the fqdn for
> >> their 'Address' even though I get reverse dns lookup for either short
> >> name or fqdn, restarted all the bacula daemons and still bconsole can't
> >> authenticate to the Director.
> >>
> >> I know that the director is running...as I stated above, I fixed that.
> >>
> >> I think I have exhausted my understanding of the documentation
> >> 'AuthenticationErrors' FAQ
> >>
> >> anybody have suggestions?
> >>
> >> Thanks
> >>
> >> Craig
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> >> that extends applications into web and mobile media. Attend the live 
> >> webcast
> >> and join the prime developer group breaking into this new coding territory!
> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> >> _______________________________________________
> >> Bacula-users mailing list
> >> Bacula-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/bacula-users
> >>
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast
> > and join the prime developer group breaking into this new coding territory!
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > _______________________________________________
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
#
# 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.5 (18 January 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 = srv1-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 = "XcVenEzTFkimro6b4KwTwGVQsVlEgMI0LEXXIH1mVrwb"         # Console 
password
  Messages = Daemon
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = srv1-fd 
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = Standard
  Pool = Default
  Priority = 10
}


#
# Define the main nightly save backup job
#   By default, this job will back up to disk in /tmp
Job {
  Name = "Client1"
  JobDefs = "DefaultJob"
  Write Bootstrap = "/var/bacula/Client1.bsr"
}

#Job {
#  Name = "Client2"
#  Client = srv12-fd
#  JobDefs = "DefaultJob"
#  Write Bootstrap = "/var/bacula/Client2.bsr"
#}

# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  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=srv1-fd                 
  FileSet="Full Set"                  
  Storage = File                      
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}


# List of files to be backed up
FileSet {
  Name = "Full Set"
  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 = /usr/src/redhat/BUILD/bacula-1.38.5
  }

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

#
# When to do the backups, full backup on first sunday of the month,
#  differential (i.e. incremental since full) every other sunday,
#  and incremental backups other days
Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st sun at 23:05
  Run = Differential 2nd-5th sun at 23:05
  Run = Incremental mon-sat at 23:05
}

# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 23: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 = srv1-fd
  Address = srv1
  FDPort = 9102
  Catalog = MyCatalog
  Password = "Lcg5X8IvW+R8mT3b7+Pjiyh4FTXVhKqnNWyCWk6PwyQV"          # password 
for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

#
# Second Client (File Services) to backup
#  You should change Name, Address, and Password before using
#
#Client {
#  Name = srv12-fd                
#  Address = srv12
#  FDPort = 9102
#  Catalog = MyCatalog
#  Password = "Lcg5X8IvW+R8mT3b7+Pjiyh4FTXVhKqnNWyCWk6PwyQV2"         # 
password for FileDaemon 2
#  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 = srv1                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "hvuumy+yOaw8HUhJ3fwYb98+gB4Lz/6bQnONi4FpOwsp"
  Device = FileStorage
  Media Type = File
}



# Definition of DDS tape storage device
Storage {
  Name = DDS-4    
#  Do not use "localhost" here
  Address = srv1     # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "XcVenEzTFkimro6b4KwTwGVQsVlEgMI0LEXXIH1mVrwb" # password for 
Storage daemon
  Device = DDS-4                      # must be same as Device in Storage daemon
  Media Type = DDS-4                  # must be same as MediaType in Storage 
daemon
#  Autochanger = yes                   # enable for autochanger device
}

# Definition of 8mm tape storage device
#Storage {
#  Name = "8mmDrive"
#  Do not use "localhost" here
#  Address = srv1                # N.B. Use a fully qualified name here
#  SDPort = 9103
#  Password = "hvuumy+yOaw8HUhJ3fwYb98+gB4Lz/6bQnONi4FpOwsp"
#  Device = "Exabyte 8mm"
#  MediaType = "8mm"
#}

# Definition of DVD storage device
#Storage {
#  Name = "DVD"
#  Do not use "localhost" here
#  Address = srv1                # N.B. Use a fully qualified name here
#  SDPort = 9103
#  Password = "hvuumy+yOaw8HUhJ3fwYb98+gB4Lz/6bQnONi4FpOwsp"
#  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 = 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
}

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = srv1-mon
  Password = "4PzgPyzETg5L6Wq89GHEaNmW++ntLCMCcIFDXk3BVwTJ"
  CommandACL = status, .status
}
#
# Bacula User Agent (or Console) Configuration File
#

Director {
  Name = srv1-dir
  DIRport = 9101
  address = srv1
  Password = "XcVenEzTFkimro6b4KwTwGVQsVlEgMI0LEXXIH1mVrwb"
}

Reply via email to