Bacula-users

[Bacula-users] bacula director not starting ...help

2009-02-23 19:44:56
Subject: [Bacula-users] bacula director not starting ...help
From: "Jerry Lowry" <jlowry AT edt DOT com>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 23 Feb 2009 15:30:48 -0800

Hi,  We had the power go out for the entire building this morning.  Once power was restored my backup server started just fine.  There was nothing being backed up at the time and the system was idle.  I need to get this up and running before tonight.

 

The problem is when I try to start the bacula director service I am getting an error:

 

Can anyone tell me what this might be pointing to.  I did a google search but did not find anything directly related to this problem.

The event viewer gives this error:

Bacula-dir error: 1063 at ../libwin32/service.cpp:174, StartServiceCtrlDispatcher failed., The service process could not connect to the service controller

 

Google does not find anything when this is searched on.

 

If you need any additional info let me know and will post it. 

 

Thanks in advance.

 

jerry

 

Configuration:

 

MS Server 2003

Bacula 2.2.6

Mysql 5.0.51

 

 

#

# 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.

#

#  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 = Distress-dir

  DIRport = 9101                # where we listen for UA connections

  QueryFile = "C:\\Program Files\\Bacula\\bin\\query.sql"

  WorkingDirectory = "C:\\Documents and Settings\\All Users\\Application Data\\Bacula\\Work"

  PidDirectory = "C:\\Documents and Settings\\All Users\\Application Data\\Bacula\\Work"

  Maximum Concurrent Jobs = 1

  Password = "director"         # Console password

  Messages = Daemon

}

 

# =======================================================================

# Job definition for backup server

JobDefs {

  Name = "DistressJob"

  Type = Backup

  Level = Incremental

  Client = Distress-fd

  FileSet = "Full Set"

  Schedule = "DistressWeeklyCycle"

  Storage = Weekly

  Messages = Standard

  Pool = Default

  Priority = 10

}

 

# Job definition for the monthly backup

JobDefs {

  Name = "DistressMonthly"

  Type = Backup

  Level = full

  Client = Distress-fd

  FileSet = "Monthly Set"

  Schedule = "DistressMonthlyCycle"

  Storage = Monthly

  Messages = Standard

  Pool = Monthly

  Priority = 10

}

 

# ========================================================================

#

# Define the main nightly backup jobs

#

 

# Backup job for backup server 'distress'

Job {

  Name = "Distress"

  Client = Distress-fd

  JobDefs = "DistressJob"

  # This creates an ASCII copy of the catalog

  RunBeforeJob = "\"C:\\Program Files\\Bacula\\bin\\make_catalog_backup\" bacula bacula"

  # This deletes the copy of the catalog

  RunAfterJob  = "\"C:\\Program Files\\Bacula\\bin\\delete_catalog_backup\""

  Write Bootstrap = "C:\\Documents and Settings\\All Users\\Application Data\\Bacula\\Work\\BackupCatalog.bsr"

}

# Backup job for backup server 'distress' Monthly

Job {

  Name = "Distress-Monthly"

  Client = Distress-fd

  JobDefs = "DistressMonthly"

  # This creates an ASCII copy of the catalog

  RunBeforeJob = "\"C:\\Program Files\\Bacula\\bin\\make_catalog_backup\" bacula bacula"

  # This deletes the copy of the catalog

  RunAfterJob  = "\"C:\\Program Files\\Bacula\\bin\\delete_catalog_backup\""

  Write Bootstrap = "C:\\Documents and Settings\\All Users\\Application Data\\Bacula\\Work\\BackupCatalog.bsr"

}

 

# Backup the catalog database (after the nightly save)

Job {

  Name = "BackupCatalog"

  JobDefs = "DistressJob"

  Level = Full

  FileSet="Catalog"

  Schedule = "WeeklyCycleAfterBackup"

  # This creates an ASCII copy of the catalog

  RunBeforeJob = "\"C:\\Program Files\\Bacula\\bin\\make_catalog_backup\" bacula bacula"

  # This deletes the copy of the catalog

  RunAfterJob  = "\"C:\\Program Files\\Bacula\\bin\\delete_catalog_backup\""

  Write Bootstrap = "C:\\Documents and Settings\\All Users\\Application Data\\Bacula\\Work\\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 = Distress-fd                

  FileSet = "Full Set"                 

  Storage = File                     

  Pool = Default

  Messages = Standard

  Where = "G:/restores/bacula-restores"

}

 

 

# ========================================================================

# List of files to be backed up on Backup server distress

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.

#

    File = c:/

    File = e:/                 # current month backup

    File = f:/mysql

    File = g:/DBB

  }

 

#

# If you backup the root directory, the following two excluded

#   files can be useful

#

# Exclude {

#    File = c:/Windows

#  }

}

 

FileSet {

  Name = "Monthly 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.

#    Last month backup is copied to h:/ for storage onsite

#    then deleted from e:/ the current months backup

#

    File = e:/                 # current month backup

    File = f:/mysql

    File = g:/DBB

  }

 

#

# If you backup the root directory, the following two excluded

#   files can be useful

#

# Exclude {

#    File = c:/Windows

#  }

}

 

 

# ========================================================================

#

# 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 = "DistressWeeklyCycle"

  Run = Full 1st sun at 23:05

  Run = Differential 2nd-5th sun at 23:05

  Run = Incremental mon-sat at 23:05

}

Schedule {

  Name = "DistressMonthlyCycle"

  Run = Full Pool=Monthly 2rd tue 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 = "C:\\Documents and Settings\\All Users\\Application Data\\Bacula\\Work\\bacula.sql"

  }

}

 

# ========================================================================

# Client (File Services) to backup

Client {

  Name = Distress-fd

  Address = distress.ACCOUNTING.EDT.LOCAL

  FDPort = 9102

  Catalog = MyCatalog

  Password = "files"                        # password for FileDaemon

  File Retention = 30 days            # 30 days

  Job Retention = 1 months            # six months

  AutoPrune = yes                     # Prune expired Jobs/Files

}

 

 

# ==========================================================================

# Definition of file storage device

Storage {

  Name = File

# Do not use "localhost" here   

  Address = distress.ACCOUNTING.EDT.LOCAL   # N.B. Use a fully qualified name here

  SDPort = 9103

  Password = "storage"

  Device = FileStorage

  Media Type = File

}

 

# ==========================================================================

# Definition of DDS tape storage device

Storage {

  Name = Weekly

  Device = Quantum-DLT             # must be same as Device in Storage daemon

  Media Type = DLT-V4              # must be same as MediaType in Storage daemon

  Password = "storage"             # password for Storage daemon

                                                   #  Do not use "localhost" here

  Address = distress.ACCOUNTING.EDT.LOCAL   # N.B. Use a fully qualified name here

  SDPort = 9103

}

 

Storage {

  Name = Monthly

  Device = Quantum-DLT-1           # must be same as Device in Storage daemon

  Media Type = DLT-V4              # must be same as MediaType in Storage daemon

  Password = "storage"             # password for Storage daemon

                                                   #  Do not use "localhost" here

  Address = distress.ACCOUNTING.EDT.LOCAL   # N.B. Use a fully qualified name here

  SDPort = 9103

}

 

# Definition of DVD storage device

#Storage {

#  Name = "DVD"

#  Do not use "localhost" here

#  Address = distress.ACCOUNTING.EDT.LOCAL  # N.B. Use a fully qualified name here

#  SDPort = 9103

#  Password = "storage"

#  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.

#  What this does is, it sets the email address that emails would display

#  in the FROM field, which is by default the same email as they're being

#  sent to.  However, if you send email to more than one address, then

#  you'll have to set the FROM address manually, to a single address.

#  for example, a 'no-reply AT mydomain DOT com', is better since that tends to

#  tell (most) people that its coming from an automated source.

 

#

  mailcommand = "\"C:\\Program Files\\Bacula\\bin\\bsmtp\" -h mailhost.edt.com -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"

  operatorcommand = "\"C:\\Program Files\\Bacula\\bin\\bsmtp\" -h mailhost.edt.com -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"

  mail = jlowry AT edt DOT com = all, !skipped           

  operator = jlowry AT edt DOT com = 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 = "C:\\Documents and Settings\\All Users\\Application Data\\Bacula\\Work\\log" = all, !skipped

}

 

 

#

# Message delivery for daemon messages (no job).

Messages {

  Name = Daemon

  mailcommand = "\"C:\\Program Files\\Bacula\\bin\\bsmtp\" -h mailhost.edt.com -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"

  mail = jlowry AT edt DOT com = all, !skipped            

  console = all, !skipped, !saved

  append = "C:\\Documents and Settings\\All Users\\Application Data\\Bacula\\Work\\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 = 30 days          # one Months

}

 

   

# Monthly pool definition

Pool {

  Name = Monthly

  Pool Type = Backup

  Recycle = yes                       # Bacula can automatically recycle Volumes

  AutoPrune = yes                     # Prune expired volumes

  Volume Retention = 12 Months        # one year

}

#

# Restricted console used by tray-monitor to get the status of the director

#

Console {

  Name = distress-mon

  Password = "monitor"

  CommandACL = status, .status

}

 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>