[SRU] Database not upgraded while upgrading bacula
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bacula (Ubuntu) |
Fix Released
|
High
|
James Page | ||
Precise |
Fix Released
|
High
|
James Page | ||
Quantal |
Fix Released
|
High
|
James Page |
Bug Description
[Impact]
Users of bacula upgrading from either 10.04 or 11.10 to 12.04 end up with a non-functional bacula-director as the database is not upgraded as part of the package installation process. This causes bacula-director to fail on startup.
[Test Case]
(oneiric base server install)
sudo apt-get install mysql-server
sudo apt-get install bacula-server
sudo do-release-upgrade
...
sudo cat /var/log/bacula/log
14-Jun 16:45 bacula-dir JobId 0: Fatal error: Version error for database "bacula". Wanted 14, got 12
14-Jun 16:45 bacula-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bacula".
14-Jun 16:45 bacula-dir JobId 0: Fatal error: Version error for database "bacula". Wanted 14, got 12
14-Jun 16:45 bacula-dir ERROR TERMINATION
Please correct configuration file: /etc/bacula/
[Regression Potential]
The changes to the package as in the dbconfig-common upgrade handling for postgresql, sqllite and mysql database types. A new upgrade is defined for 5.2.5-0ubuntu6.1 to upgrade the schema from version 12->14. This same fix is applied in quantal which ensures it only get applied once as an upgrade passes 5.2.5-0ubuntu6.1
[Original Bug Report]
Upgrading a bacula server from Ubuntu oneiric to precise upgrades bacula from 5.0.3 to 5.5.1, but misses the necessary database upgrade:
12-Apr 21:19 bacula-dir JobId 0: Fatal error: Version error for database "bacula". Wanted 14, got 12
12-Apr 21:19 bacula-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bacula".
12-Apr 21:19 bacula-dir JobId 0: Fatal error: Version error for database "bacula". Wanted 14, got 12
12-Apr 21:19 bacula-dir ERROR TERMINATION
Please correct configuration file: /etc/bacula/
In tune bacula-director doesn't start any more. Instructions how to upgrade the database manualy are missing.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bacula-
ProcVersionSign
Uname: Linux 3.2.0-23-virtual x86_64
ApportVersion: 2.0.1-0ubuntu2
Architecture: amd64
Date: Thu Apr 12 21:22:21 2012
InstallationMedia: Ubuntu-Server 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
ProcEnviron:
TERM=screen-bce
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bacula
UpgradeStatus: Upgraded to precise on 2012-04-12 (0 days ago)
Changed in bacula: | |
status: | New → Invalid |
no longer affects: | bacula |
Changed in bacula (Ubuntu Quantal): | |
assignee: | nobody → James Page (james-page) |
Changed in bacula (Ubuntu Precise): | |
assignee: | nobody → James Page (james-page) |
Changed in bacula (Ubuntu Precise): | |
status: | Confirmed → In Progress |
Changed in bacula (Ubuntu Quantal): | |
status: | Confirmed → In Progress |
description: | updated |
description: | updated |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Since the script "update_ bacula_ tables" is missing from the install, normaly installed at /etc/bacula/scripts --- this is a showbreaker.
The script isn't found in the documentation as well.