[Bacula-users] director don't start

2011-08-23 Thread Roberto Pereyra
Hi

 have a new bacula 5.0.3  install in Fedora 14 .

When I start the director daemon, it don't start.

If I run:



bacula-dir -d 10 -t -v  -c /etc/bacula/bacula-sd.conf
bacula-dir: dird.c:184-0 Debug level = 10
23-ago 09:08 bacula-dir: ERROR TERMINATION at parse_conf.c:971
Config error: Keyword WorkingDirectory not permitted in this resource.
Perhaps you left the trailing brace off of the previous resource.
    : line 16, col 19 of file /etc/bacula/bacula-sd.conf
  WorkingDirectory = /var/spool/bacula



This is my /etc/bacula/bacula-sd.conf:


---


cat /etc/bacula/bacula-sd.conf
#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 5.0.3 (04 August 2010) -- redhat
#
# You may need to change the name of your tape drive
#   on the Archive Device directive in the Device
#   resource.  If you change the Name and/or the
#   Media Type in the Device resource, please ensure
#   that dird.conf has corresponding changes.
#

Storage { # definition of myself
  Name = backup1.contenidosonline.com.ar-sd
  SDport = 9103
  WorkingDirectory = /var/spool/bacula
  Pid Directory = /var/run
  Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = backup1.contenidosonline.com.ar-dir
  Password = x
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = bacula-mon
  Password = x
  Monitor = yes
}

#
# Note, for a list of additional Device templates please
#  see the directory bacula-source/examples/devices
# Or follow the following link:
#  
http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devices/
#

#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
#  same Name and MediaType.
#

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;
}

#
# An autochanger device with two drives
#
#Autochanger {
#  Name = Autochanger
#  Device = Drive-1
#  Device = Drive-2
#  Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
#  Changer Device = /dev/sg0
#}

#Device {
#  Name = Drive-1  #
#  Drive Index = 0
#  Media Type = DLT-8000
#  Archive Device = /dev/nst0
#  AutomaticMount = yes;   # when device opened, read it
#  AlwaysOpen = yes;
#  RemovableMedia = yes;
#  RandomAccess = no;
#  AutoChanger = yes
#  #
#  # Enable the Alert command only if you have the mtx package loaded
#  # Note, apparently on some systems, tapeinfo resets the SCSI controller
#  #  thus if you turn this on, make sure it does not reset your SCSI
#  #  controller.  I have never had any problems, and smartctl does
#  #  not seem to cause such problems.
#  #
#  Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
#  If you have smartctl, enable this, it has more info than tapeinfo
#  Alert Command = sh -c 'smartctl -H -l error %c'
#}

#Device {
#  Name = Drive-2  #
#  Drive Index = 1
#  Media Type = DLT-8000
#  Archive Device = /dev/nst1
#  AutomaticMount = yes;   # when device opened, read it
#  AlwaysOpen = yes;
#  RemovableMedia = yes;
#  RandomAccess = no;
#  AutoChanger = yes
#  # Enable the Alert command only if you have the mtx package loaded
#  Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
#  If you have smartctl, enable this, it has more info than tapeinfo
#  Alert Command = sh -c 'smartctl -H -l error %c'
#}

#
# A Linux or Solaris LTO-2 tape drive
#
#Device {
#  Name = LTO-2
#  Media Type = LTO-2
#  Archive Device = /dev/nst0
#  AutomaticMount = yes;   # when device opened, read it
#  AlwaysOpen = yes;
#  RemovableMedia = yes;
#  RandomAccess = no;
#  Maximum File Size = 3GB
## Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
## Changer Device = /dev/sg0
## AutoChanger = yes
#  # Enable the Alert command only if you have the mtx package loaded
## Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
## If you have smartctl, enable this, it has more info than tapeinfo
## Alert Command = sh -c 'smartctl -H -l error %c'
#}

#
# A Linux or Solaris LTO-3 tape drive
#
#Device {
#  Name = LTO-3
#  Media Type = LTO-3
#  Archive Device = /dev/nst0
#  AutomaticMount = yes;   # when device opened, read it
#  AlwaysOpen = yes;
#  RemovableMedia = yes;
#  RandomAccess = no;
#  Maximum File Size = 4GB
## Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
## Changer Device = /dev/sg0
## AutoChanger = yes
#  # Enable the Alert command only if you have the mtx package loaded
## Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
## If you have smartctl, enable this, it has more 

[Bacula-users] director don't start

2011-08-23 Thread Roberto Pereyra
Hi

 have a new bacula 5.0.3  install in Fedora 14 .

When I start the director daemon, it don't start.

If I run:



bacula-dir -d 10 -t -v  -c /etc/bacula/bacula-sd.conf
bacula-dir: dird.c:184-0 Debug level = 10
23-ago 09:08 bacula-dir: ERROR TERMINATION at parse_conf.c:971
Config error: Keyword WorkingDirectory not permitted in this resource.
Perhaps you left the trailing brace off of the previous resource.
    : line 16, col 19 of file /etc/bacula/bacula-sd.conf
  WorkingDirectory = /var/spool/bacula



This is my /etc/bacula/bacula-sd.conf:


---


cat /etc/bacula/bacula-sd.conf
#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 5.0.3 (04 August 2010) -- redhat
#
# You may need to change the name of your tape drive
#   on the Archive Device directive in the Device
#   resource.  If you change the Name and/or the
#   Media Type in the Device resource, please ensure
#   that dird.conf has corresponding changes.
#

Storage { # definition of myself
  Name = backup1.contenidosonline.com.ar-sd
  SDport = 9103
  WorkingDirectory =
 /var/spool/bacula
  Pid Directory = /var/run
  Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = backup1.contenidosonline.com.ar-dir
  Password = x
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = bacula-mon
  Password = x
  Monitor = yes
}

#
# Note, for a list of additional Device templates please
#  see the directory bacula-source/examples/devices
# Or follow the following link:
#  
http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devices/
#

#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
#  same Name and MediaType.
#

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;
}

#
# An autochanger device with two drives
#
#Autochanger {
#  Name = Autochanger
#  Device = Drive-1
#  Device = Drive-2
#  Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
#  Changer Device = /dev/sg0
#}

#Device {
#  Name = Drive-1  #
#  Drive Index =
 0
#  Media Type = DLT-8000
#  Archive Device = /dev/nst0
#  AutomaticMount = yes;   # when device opened, read it
#  AlwaysOpen = yes;
#  RemovableMedia = yes;
#  RandomAccess = no;
#  AutoChanger = yes
#  #
#  # Enable the Alert command only if you have the mtx package loaded
#  # Note, apparently on some systems, tapeinfo resets the SCSI controller
#  #  thus if you turn this on, make sure it does not reset your SCSI
#  #  controller.  I have never had any problems, and smartctl does
#  #  not seem to cause such problems.
#  #
#  Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
#  If you have smartctl, enable this, it has more info than tapeinfo
#  Alert Command = sh -c 'smartctl -H -l error
 %c'
#}

#Device {
#  Name = Drive-2  #
#  Drive Index = 1
#  Media Type = DLT-8000
#  Archive Device = /dev/nst1
#  AutomaticMount = yes;   # when device opened, read it
#  AlwaysOpen = yes;
#  RemovableMedia = yes;
#  RandomAccess = no;
#  AutoChanger = yes
#  # Enable the Alert command only if you have the mtx package loaded
#  Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
#  If you have smartctl, enable this, it has more info than tapeinfo
#  Alert Command = sh -c 'smartctl -H -l error %c'
#}

#
# A Linux or Solaris LTO-2 tape drive
#
#Device {
#  Name = LTO-2
#  Media Type =
 LTO-2
#  Archive Device = /dev/nst0
#  AutomaticMount = yes;   # when device opened, read it
#  AlwaysOpen = yes;
#  RemovableMedia = yes;
#  RandomAccess = no;
#  Maximum File Size = 3GB
## Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
## Changer Device = /dev/sg0
## AutoChanger = yes
#  # Enable the Alert command only if you have the mtx package loaded
## Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
## If you have smartctl, enable this, it has more info than tapeinfo
## Alert Command = sh -c 'smartctl -H -l error %c'
#}

#
# A Linux or Solaris LTO-3 tape drive
#
#Device {
#  Name = LTO-3
#  Media Type = LTO-3
#  Archive Device = /dev/nst0
#  AutomaticMount =
 yes;   # when device opened, read it
#  AlwaysOpen = yes;
#  RemovableMedia = yes;
#  RandomAccess = no;
#  Maximum File Size = 4GB
## Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
## Changer Device = /dev/sg0
## AutoChanger = yes
#  # Enable the Alert command only if you have the mtx package loaded
## Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
## If you have smartctl, enable this, it has 

Re: [Bacula-users] director don't start

2011-08-23 Thread Konstantin Khomoutov
On Tue, 23 Aug 2011 07:26:16 -0700 (PDT)
Roberto Pereyra contenidos2000-bac...@yahoo.com.ar wrote:

 When I start the director daemon, it don't start.
 
 If I run:
 bacula-dir -d 10 -t -v  -c /etc/bacula/bacula-sd.conf
 bacula-dir: dird.c:184-0 Debug level = 10
 23-ago 09:08 bacula-dir: ERROR TERMINATION at parse_conf.c:971
 Config error: Keyword WorkingDirectory not permitted in this
 resource. Perhaps you left the trailing brace off of the previous
 resource. : line 16, col 19 of file /etc/bacula/bacula-sd.conf
   WorkingDirectory = /var/spool/bacula
 
 This is my /etc/bacula/bacula-sd.conf:
[...]
I find it strange to try running bacula director with the config file
from bacula storage daemon.

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] director don't start

2011-08-23 Thread Mehma Sarja

On 8/23/11 7:50 AM, Roberto Pereyra wrote:


This is my /etc/bacula/bacula-sd.conf:

  WorkingDirectory = /var/spool/bacula
  Pid Directory = /var/run


sd.conf's working directory value should have quotes around it...perhaps.

Mehma
--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] director don't start

2011-08-23 Thread Jeremy Maes

Op 23/08/2011 16:26, Roberto Pereyra schreef:

Hi

 have a new bacula 5.0.3  install in Fedora 14 .

When I start the director daemon, it don't start.

If I run:



bacula-dir -d 10 -t -v  -c /etc/bacula/bacula-sd.conf
Perhaps I'm imagining things but are you trying to start the director 
(bacula-dir) with the config for the storage daemon (bacula-sd)?
I'd try the same with bacula-dir -d 10 -t -v  -c 
/etc/bacula/bacula-*dir*.conf and see what that does.


P.S.: because of this the error it spits out it completely logical as a 
Storage entry in the director config cannot have a WorkingDirectory 
definition ...



bacula-dir: dird.c:184-0 Debug level = 10
23-ago 09:08 bacula-dir: ERROR TERMINATION at parse_conf.c:971
Config error: Keyword WorkingDirectory not permitted in this resource.
Perhaps you left the trailing brace off of the previous resource.
: line 16, col 19 of file /etc/bacula/bacula-sd.conf
  WorkingDirectory = /var/spool/bacula


Kind regards,
Jeremy

 DISCLAIMER 
http://www.schaubroeck.be/maildisclaimer.htm
--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] director don't start

2011-08-23 Thread Pietro Bertera
You are starting director daemon using storage daemon configuration file..

Pietro


2011/8/23 Roberto Pereyra contenidos2000-bac...@yahoo.com.ar:
 Hi
  have a new bacula 5.0.3  install in Fedora 14 .
 When I start the director daemon, it don't start.
 If I run:


 bacula-dir -d 10 -t -v  -c /etc/bacula/bacula-sd.conf
 bacula-dir: dird.c:184-0 Debug level = 10
 23-ago 09:08 bacula-dir: ERROR TERMINATION at parse_conf.c:971
 Config error: Keyword WorkingDirectory not permitted in this resource.
 Perhaps you left the trailing brace off of the previous resource.
     : line 16, col 19 of file /etc/bacula/bacula-sd.conf
   WorkingDirectory = /var/spool/bacula


 This is my /etc/bacula/bacula-sd.conf:

 ---

 cat /etc/bacula/bacula-sd.conf
 #
 # Default Bacula Storage Daemon Configuration file
 #
 #  For Bacula release 5.0.3 (04 August 2010) -- redhat
 #
 # You may need to change the name of your tape drive
 #   on the Archive Device directive in the Device
 #   resource.  If you change the Name and/or the
 #   Media Type in the Device resource, please ensure
 #   that dird.conf has corresponding changes.
 #

 Storage { # definition of myself
   Name = backup1.contenidosonline.com.ar-sd
   SDport = 9103
   WorkingDirectory = /var/spool/bacula
   Pid Directory = /var/run
   Maximum Concurrent Jobs = 20
 }

 #
 # List Directors who are permitted to contact Storage daemon
 #
 Director {
   Name = backup1.contenidosonline.com.ar-dir
   Password = x
 }

 #
 # Restricted Director, used by tray-monitor to get the
 #   status of the storage daemon
 #
 Director {
   Name = bacula-mon
   Password = x
   Monitor = yes
 }

 #
 # Note, for a list of additional Device templates please
 #  see the directory bacula-source/examples/devices
 # Or follow the following link:
 #
 http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devices/
 #

 #
 # Devices supported by this Storage daemon
 # To connect, the Director's bacula-dir.conf must have the
 #  same Name and MediaType.
 #

 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;
 }

 #
 # An autochanger device with two drives
 #
 #Autochanger {
 #  Name = Autochanger
 #  Device = Drive-1
 #  Device = Drive-2
 #  Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
 #  Changer Device = /dev/sg0
 #}

 #Device {
 #  Name = Drive-1  #
 #  Drive Index = 0
 #  Media Type = DLT-8000
 #  Archive Device = /dev/nst0
 #  AutomaticMount = yes;   # when device opened, read it
 #  AlwaysOpen = yes;
 #  RemovableMedia = yes;
 #  RandomAccess = no;
 #  AutoChanger = yes
 #  #
 #  # Enable the Alert command only if you have the mtx package loaded
 #  # Note, apparently on some systems, tapeinfo resets the SCSI controller
 #  #  thus if you turn this on, make sure it does not reset your SCSI
 #  #  controller.  I have never had any problems, and smartctl does
 #  #  not seem to cause such problems.
 #  #
 #  Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
 #  If you have smartctl, enable this, it has more info than tapeinfo
 #  Alert Command = sh -c 'smartctl -H -l error %c'
 #}

 #Device {
 #  Name = Drive-2  #
 #  Drive Index = 1
 #  Media Type = DLT-8000
 #  Archive Device = /dev/nst1
 #  AutomaticMount = yes;   # when device opened, read it
 #  AlwaysOpen = yes;
 #  RemovableMedia = yes;
 #  RandomAccess = no;
 #  AutoChanger = yes
 #  # Enable the Alert command only if you have the mtx package loaded
 #  Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
 #  If you have smartctl, enable this, it has more info than tapeinfo
 #  Alert Command = sh -c 'smartctl -H -l error %c'
 #}

 #
 # A Linux or Solaris LTO-2 tape drive
 #
 #Device {
 #  Name = LTO-2
 #  Media Type = LTO-2
 #  Archive Device = /dev/nst0
 #  AutomaticMount = yes;   # when device opened, read it
 #  AlwaysOpen = yes;
 #  RemovableMedia = yes;
 #  RandomAccess = no;
 #  Maximum File Size = 3GB
 ## Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
 ## Changer Device = /dev/sg0
 ## AutoChanger = yes
 #  # Enable the Alert command only if you have the mtx package loaded
 ## Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
 ## If you have smartctl, enable this, it has more info than tapeinfo
 ## Alert Command = sh -c 'smartctl -H -l error %c'
 #}

 #
 # A Linux or Solaris LTO-3 tape drive
 #
 #Device {
 #  Name = LTO-3
 #  Media Type = LTO-3
 #  Archive Device = /dev/nst0
 #  AutomaticMount = yes;   # when device opened, read it
 #  AlwaysOpen = yes;
 #  RemovableMedia = yes;
 #  RandomAccess = no;
 #  Maximum File Size = 4GB
 ## Changer