User Tools

Site Tools


bwx-console is not connecting

Quick check if all services are running

Open Services (i.e. run services.msc). Three services are added during the installation and all of them should run:

  • Bacula Director Service
  • Bacula File Service
  • Bacula Storage Service

If one of them is not running then the first thing is to look at that service and the configuration files of the related services.

Bacula Director Service is not running

This is the most critical part of the installation and with release 3.0.1 for Windows under Windows 2000 server this will not run when installed automatically with all defaults provided by the installer.

When you start the bmx-console you will see a message “Connection to the director lost. Quit Program?”. When you check the services you will find that the Director Service is not running. This is very likely a configuration issue.

There is lots of information added to the default installation that may affect the normal operation and a smaller version here is added to replace this to see this helps. First a reboot of the server may help as well when other services are not running.

Not all services needed may be running

One service that could require extra attention is “Removable Storage” service. This service may be disabled and not running. Programs like Windows Backup will not work when stopped. Because on every system boot this service is disabled it could mean that either Bacula or Yosemite is disabling it on system start. When manually set back to automatic and started, it will be disabled again on system reboot. Which of the programs that causes this is unknown at this moment.

The configuration file of the Director

When you edit the “Edit Director Configuration” (bacula-dir.conf) areas likely needed your attention (paswords are replaces with *) :

Default file storage:

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

Reboot test fails so it may be smart to comment out with “#” everything that may not be needed to find when the director does not start. Before doing that please read the section below “Your database may not exist”

Your database may not exist

SQL ports are not specified anywhere but if your server runs Microsoft SQL, Pervasive SQL, MySQL when the software is installed. It was not possible to find out if there are port conflicts with those packages. To go save the database default was chosen that may not interfer with those other services.

When digging into this deeper I discovered that the database did not exist! Default location of the database is “<drive>:\Documents and Settings\All Users\Application Data\Bacula\Work”, name of the database is “bacula.db”. The best way is to add this manually to be certain it works. Open a DOS box (run, cmd) and go to the installation directory, this is default <drive>:\Program Files\Bacula\bin. From there run these commands sequentially:

  1. create-database
  2. make-tables

Here is what you see and type in the DOS box:

“<drive>:\Program Files\Bacula\bin>create_database

seq name file

— ————— ———————————————————-

0 main E:\Documents and Settings\All Users\Application Data\Bacul

<drive>:\Program Files\Bacula\bin>make_tables

<drive>:\Program Files\Bacula\bin>_”

The odd part is that there is no visual feedback that the tables are really made.

The database is created in a seperate folder, to locate it try this: <drive>:\Documents and Settings\All Users\Application Data\Bacula\Work The file bacula.db is created in that folder.

You cannot start the directory service from the command line. To start it go to services (service.msc) and start the “Bacula Directrory Service” from there. You should see that it starts.

Bacula File Service is not running

The standard installation works properly but it is better to set the file location to a controlled area on a different drive. See notes under “Bacula Storage Service is not running” for more details.

Bacula Storage Service is not running

The standard installation works properly but no tape drives are configured. To assure this runs well it is better to configure this manually.

Open “Edit Storage Configuration” (bacula-sd.conf) and set under “Device” your intended location of where you would want to store the archive files:

Device {
Name = FileStorage
Media Type = File
Archive Device = "S:\\Archive-bacula"
LabelMedia = yes                   # lets Bacula label unlabeled media
Random Access = Yes
AutomaticMount = yes               # when device opened, read it
RemovableMedia = no
AlwaysOpen = yes

You may run tapes but the default installation also supports files and it is easier to test it with files before trying tapes. Why the “AlwaysOpen” is set to “no” is not clear when the drive is installed in the server. For hotplug devices it should be set to “no”. For a fixed drive mounted in the server it should be set to “yes”.

bacula_manual/dealing_with_win32_problems.txt · Last modified: 2009/05/04 09:43 (external edit)