The bacula-dir.conf file is not present when installing Bacula

Bug #308903 reported by yann on 2008-12-17
Affects Status Importance Assigned to Milestone
bacula (Ubuntu)

Bug Description

Binary package hint: bacula-director-mysql

17-Dec 14:29 bacula-dir: ERROR TERMINATION at parse_conf.c:829
Config error: Cannot open config file "/etc/bacula/bacula-dir.conf": No such file or directory

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: bacula-director-mysql 2.4.2-1ubuntu6
SourcePackage: bacula
Title: package bacula-director-mysql 2.4.2-1ubuntu6 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-9-generic i686

Related branches

CVE References

yann (ylapeyre) wrote :
ACCA (ak195) wrote :

The problem actually in the /usr/share/bacula-director/postinst-common. Please see the attached patch:

ACCA (ak195) wrote :

Sorry, misplaced source and destination at 2am. :(

The correct version of the patch:

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bacula - 2.4.4-1ubuntu1

bacula (2.4.4-1ubuntu1) jaunty; urgency=low

  * Upload fixes LP #269251, LP: #308903 and LP: #293515
  * debian/rules:
    - added bat_icon.png and bat.desktop for bacula-console-qt (LP: #314746)
    - added bacula-tray-monitor.xpm icon, fix Exec path in .desktop
  * debian/bacula-traymonitor.install
    - remove bacula-tray-monitor.xpm, add bacula-tray-monitor.desktop
  * Merge from debian unstable, remaining changes:
    * Store sd|fd|director passwords in debconf (LP: #222558)
      - added debian/bacula-common.templates
      - modified debian/bacula-common.postinst:
        + generate random passwords and store them in debconf
      - modified debian/bacula-[sd|fd|director-mysql|director-pgsql].postinst
        + read and set passwords from debconf
    * Daemons listen on all interfaces (LP: #286643)
    * Start daemons on installation
    * Build with generic XXX_*_XXX username, password and database name
      and replace it with dbconfig's settings in postinstall scripts
    * Drop mt-st to suggests. So that bacula goes back to main. (LP: #286528)
    * debian/rules: Disable fortify source since it was causing
      bacula-director to segfault.
    * debian/control:
      - Added libdbi-perl and libdb-mysql-perl to depends for
        due to new postinst configuration.
      - Cleaned up bacula-director-pgsql dependenices and recommends.
      - Made mysql the default director to install bacula-director-{mysql|pgsql}
        added database handling to postinstall scripts and templates, modifiied
        postinstall script's sed expressions.
      - Removed libwgtk-2.6-dev as a build dependency; as a result
        bacula-console-wx isn't built anymore.
      - Install gawk if not installed. (LP: #207527)
    * debian/make_catalog_backup_awk.[mysql|pgsql|sqlite3|sqlite]:
      - New scripts for catalog backup. (CVE-2007-5626)
    * debian/bacula-console-wx:
      - Dropped since we are not building them anymore.
    * debian/bacula-director-common.bacula-director.init,
      debian/bacula-fd.init, debian/bacula-sd.init
      - Made more LSB specific.

 -- Ante Karamatic <email address hidden> Sat, 10 Jan 2009 04:57:41 +0000

Changed in bacula:
status: New → Fix Released
breezeight (nicolabrisotto) wrote :
Download full text (5.0 KiB)

I've just got this error on ubuntu server 9.04 alpha5:

Preconfiguring packages ...
Selecting previously deselected package bacula-common.
(Reading database ... 17778 files and directories currently installed.)
Unpacking bacula-common (from .../bacula-common_2.4.4-1ubuntu3_i386.deb) ...
Selecting previously deselected package bacula-console.
Unpacking bacula-console (from .../bacula-console_2.4.4-1ubuntu3_i386.deb) ...
Setting up bacula-common (2.4.4-1ubuntu3) ...

Selecting previously deselected package bacula-director-common.
(Reading database ... 17899 files and directories currently installed.)
Unpacking bacula-director-common (from .../bacula-director-common_2.4.4-1ubuntu3_i386.deb) ...
Selecting previously deselected package bacula-director-mysql.
Unpacking bacula-director-mysql (from .../bacula-director-mysql_2.4.4-1ubuntu3_i386.deb) ...
Selecting previously deselected package bacula-sd.
Unpacking bacula-sd (from .../bacula-sd_2.4.4-1ubuntu3_i386.deb) ...
Selecting previously deselected package bacula-sd-mysql.
Unpacking bacula-sd-mysql (from .../bacula-sd-mysql_2.4.4-1ubuntu3_i386.deb) ...
Selecting previously deselected package bacula-server.
Unpacking bacula-server (from .../bacula-server_2.4.4-1ubuntu3_all.deb) ...
Selecting previously deselected package bacula-fd.
Unpacking bacula-fd (from .../bacula-fd_2.4.4-1ubuntu3_i386.deb) ...
Selecting previously deselected package bacula-client.
Unpacking bacula-client (from .../bacula-client_2.4.4-1ubuntu3_all.deb) ...
Selecting previously deselected package bacula.
Unpacking bacula (from .../bacula_2.4.4-1ubuntu3_all.deb) ...
Setting up bacula-console (2.4.4-1ubuntu3) ...

Setting up bacula-director-common (2.4.4-1ubuntu3) ...
 * Starting Bacula Director...03-Mar 16:15 bacula-dir: ERROR TERMINATION at parse_conf.c:829
Config error: Cannot open config file "/etc/bacula/bacula-dir.conf": No such file or directory

invoke-rc.d: initscript bacula-director, action "start" failed.
dpkg: error processing bacula-director-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bacula-director-mysql:
 bacula-director-mysql depends on bacula-director-common (= 2.4.4-1ubuntu3); however:
  Package bacula-director-common is not configured yet.
dpkg: error processing bacula-director-mysql (--conf...


To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers