bacula-director-mysql fails configuration because mysql-server is not running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bacula (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: bacula
Was installing bacula using synaptic. Error of crash was reported during the install. This system is in a virtual machine just for testing of the new Ubuntu system, and as such is relatively virgin without much installed on it..... (Just wanted to see.....)
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: bacula-
ProcVersionSign
Uname: Linux 2.6.32-23-generic x86_64
Architecture: amd64
Date: Wed Sep 8 23:24:27 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
SourcePackage: bacula
Title: package bacula-
Hi John, thanks for taking the time to file this bug report and help make Ubuntu better!
It would appear that this happens because the mysql server is stopped some time before configuration (maybe preinst?) and then not started again. I think this may be because bacula- director- mysql only *recommends* mysql-server, it does not (and should not) depend on mysql-server.
I'm not sure how we can guarantee that mysql has been installed, configured fully, and started before bacula is configured.
To recreate the problem:
I spun up a Lucid VM and just ran:
sudo apt-get install bacula- director- mysql
And experienced the same sequence as your DpkgTerminalLog.txt shows.
To work around the problem, after the process, ignore the error after dbconfig, then run:
sudo dpkg-reconfigure bacula- director- mysql
After everything finishes being configured. The alternative is to install mysql-server *first*, then install bacula- mysql-director.
Marking as Triaged, as I think there is enough information to begin working on a fix.
Setting importance to Medium, as this will most likely affect anybody who tries to install bacula- director- mysql without pre-configuring their mysql-server.