bacula-director-mysql tried to run dbconfig-common before mysql-server has finished installing

Bug #1173085 reported by Simon Green
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bacula (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

When installing bacula-director-mysql the package tried to configure it's username and DB in MySQL before mysql-server has finished setting itself up and started. Runs fine on second retry.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bacula-director-mysql 5.2.5-0ubuntu6.2
ProcVersionSignature: Ubuntu 3.2.0-38.61-generic 3.2.37
Uname: Linux 3.2.0-38-generic x86_64
NonfreeKernelModules: zfs zcommon znvpair zavl zunicode
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
Date: Fri Apr 26 09:48:39 2013
InstallationMedia: Ubuntu-Server 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.3)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: bacula
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Simon Green (qpayd-simon) wrote :
Revision history for this message
Yolanda Robla (yolanda.robla) wrote :

Thanks for reporting this
Please can you provide the logs for bacula-director-mysql where we can see more info about that?

Changed in bacula (Ubuntu):
status: New → Incomplete
Revision history for this message
Simon Green (qpayd-simon) wrote :
Download full text (14.2 KiB)

Here is the console log. I've stripped out the updating and downloading sections:

$ sudo apt-get update && sudo apt-get install bacula-director-mysql
[..............]
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-23-generic linux-headers-3.2.0-23 linux-headers-3.2.0-24 linux-headers-3.2.0-37 linux-headers-3.2.0-37-generic linux-headers-3.2.0-24-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  bacula-common bacula-common-mysql bacula-director-common dbconfig-common gawk heirloom-mailx libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 libnet-daemon-perl libplrpc-perl
  libsigsegv2 mysql-client mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
  bacula-doc libipc-sharedcache-perl libterm-readkey-perl tinyca mailx
The following NEW packages will be installed
  bacula-common bacula-common-mysql bacula-director-common bacula-director-mysql dbconfig-common gawk heirloom-mailx libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 libnet-daemon-perl
  libplrpc-perl libsigsegv2 mysql-client mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 21 newly installed, 0 to remove and 73 not upgraded.
Need to get 29.5 MB of archives.
After this operation, 104 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
[..............]
Fetched 29.5 MB in 1s (26.2 MB/s)
Preconfiguring packages ...
Selecting previously unselected package bacula-common.
(Reading database ... 158725 files and directories currently installed.)
Unpacking bacula-common (from .../bacula-common_5.2.5-0ubuntu6.2_amd64.deb) ...
Adding user 'bacula'... Ok.
Selecting previously unselected package mysql-common.
Unpacking mysql-common (from .../mysql-common_5.5.31-0ubuntu0.12.04.1_all.deb) ...
Selecting previously unselected package libmysqlclient18.
Unpacking libmysqlclient18 (from .../libmysqlclient18_5.5.31-0ubuntu0.12.04.1_amd64.deb) ...
Selecting previously unselected package bacula-common-mysql.
Unpacking bacula-common-mysql (from .../bacula-common-mysql_5.2.5-0ubuntu6.2_amd64.deb) ...
Selecting previously unselected package libsigsegv2.
Unpacking libsigsegv2 (from .../libsigsegv2_2.9-4ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Setting up libsigsegv2 (2.9-4ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously unselected package gawk.
(Reading database ... 158906 files and directories currently installed.)
Unpacking gawk (from .../gawk_1%3a3.1.8+dfsg-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package heirloom-mailx.
Unpacking heirloom-mailx (from .../heirloom-mailx_12.5-1build1_amd64.deb) ...
Processing triggers for man-db ...
Setting up bacula-common (5.2.5-0ubuntu6.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously unselected package bacula-director-common.
(Reading database ... 159004 files and directories currently installed.)
Unpacking bacula-...

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.