[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-07-31 Thread Fabian Köster
Sorry, I did not notice that the package is not yet in precise-updates.
I did not enable precise-proposed.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-07-31 Thread m1fcj
Hi Fabian,
I thought they were released by the maintainer to the wild. Apt-cache shows the 
5.2.5-0ubuntu6.1 for the bacula-server version. 

James Page's log shows 
(http://bazaar.launchpad.net/~james-page/ubuntu/precise/bacula/fix-db-upgrade/revision/87#debian/rules)
 that it is missing the upgrade script which looks like it is not running the 
following:
/usr/share/dbconfig-common/data/bacula-director-mysql/upgrade/mysql/5.2.5-0ubuntu6.1

If you can check the file exists, you should be able to run it by hand
as a worst-case fallback.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-07-28 Thread Fabian Köster
Is this bug really fixed in precise? I just upgraded from oneiric using
'do-release-upgrade' and director is not starting:

28-Jul 19:20 bacula-dir JobId 0: Fatal error: Version error for database 
bacula. Wanted 14, got 12
28-Jul 19:20 bacula-dir JobId 0: Fatal error: Could not open Catalog 
MyCatalog, database bacula.
28-Jul 19:20 bacula-dir JobId 0: Fatal error: Version error for database 
bacula. Wanted 14, got 12
28-Jul 19:20 bacula-dir ERROR TERMINATION

Database is MySQL.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-07-28 Thread m1fcj
The packages in the proposed worked for me at least like a treat:

Upgrade: bacula-sd-mysql:amd64 (5.2.5-0ubuntu6, 5.2.5-0ubuntu6.1), 
bacula-client:amd64 (5.2.5-0ubuntu6, 5.2.5-0ubuntu6.1), 
bacula-director-mysql:amd64 (5.2.5-0ubuntu6, 5.2.5-0ubuntu6.1), 
bacula-common:amd64 (5.2.5-0ubuntu6, 5.2.5-0ubuntu6.1), bacula:amd64 
(5.2.5-0ubuntu6, 5.2.5-0ubuntu6.1), bacula-console:amd64 (5.2.5-0ubuntu6, 
5.2.5-0ubuntu6.1), bacula-fd:amd64 (5.2.5-0ubuntu6, 5.2.5-0ubuntu6.1), 
bacula-sd:amd64 (5.2.5-0ubuntu6, 5.2.5-0ubuntu6.1), bacula-server:amd64 
(5.2.5-0ubuntu6, 5.2.5-0ubuntu6.1), bacula-common-mysql:amd64 (5.2.5-0ubuntu6, 
5.2.5-0ubuntu6.1), bacula-director-common:amd64 (5.2.5-0ubuntu6, 
5.2.5-0ubuntu6.1), bacula-console-qt:amd64 (5.2.5-0ubuntu6, 5.2.5-0ubuntu6.1)
End-Date: 2012-06-19  12:27:20

and my director started fine after that.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-26 Thread Launchpad Bug Tracker
This bug was fixed in the package bacula - 5.2.5-0ubuntu6.1

---
bacula (5.2.5-0ubuntu6.1) precise-proposed; urgency=low

  * Ensure bacula database is upgraded from 12-14 as part of
upgrade to 5.2.x (LP: #980189):
- d/rules: Add dbconfig-common upgrade step for 5.2.5-0ubuntu6.1 for
  all database types.
 -- James Page james.p...@ubuntu.com   Thu, 14 Jun 2012 15:52:27 +0100

** Changed in: bacula (Ubuntu Precise)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-19 Thread m1fcj
Verified as fixed via aptitude upgrade. I didn't have to do anything
manually, can read previous and generate new backups so far.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-19 Thread Scott Kitterman
** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-18 Thread Scott Kitterman
Hello Thomas, or anyone else affected,

Accepted bacula into precise-proposed. The package will build now and be
available in a few hours. Please help us by testing this new package.
See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.  If this package fixes the bug for you
please change the bug tag from verification-needed to verification-done.
If it does not, change the tag to verification-failed.  In either case
details of your testing will help us make a better decision.  Further
information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance!

** Changed in: bacula (Ubuntu Precise)
   Status: In Progress = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-18 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/precise-proposed/bacula

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-15 Thread James Page
Uploaded to precise-proposed for SRU team review.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-14 Thread James Page
Had to work around a misconfiguration in the director config for mysql
on a fresh install but confirmed:

Please correct configuration file: /etc/bacula/bacula-dir.conf
14-Jun 12:58 bacula-dir JobId 0: Fatal error: Version error for database 
bacula. Wanted 14, got 12
14-Jun 12:58 bacula-dir JobId 0: Fatal error: Could not open Catalog 
MyCatalog, database bacula.
14-Jun 12:58 bacula-dir JobId 0: Fatal error: Version error for database 
bacula. Wanted 14, got 12
14-Jun 12:58 bacula-dir ERROR TERMINATION
Please correct configuration file: /etc/bacula/bacula-dir.conf

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-14 Thread James Page
** Also affects: bacula
   Importance: Undecided
   Status: New

** Changed in: bacula
   Status: New = Invalid

** No longer affects: bacula

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-14 Thread James Page
** Changed in: bacula (Ubuntu Quantal)
 Assignee: (unassigned) = James Page (james-page)

** Changed in: bacula (Ubuntu Precise)
 Assignee: (unassigned) = James Page (james-page)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-14 Thread Launchpad Bug Tracker
** Branch linked: lp:~james-page/ubuntu/precise/bacula/fix-db-upgrade

** Branch linked: lp:~james-page/ubuntu/quantal/bacula/db-upgrade-fix

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-14 Thread James Page
** Changed in: bacula (Ubuntu Precise)
   Status: Confirmed = In Progress

** Changed in: bacula (Ubuntu Quantal)
   Status: Confirmed = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-14 Thread James Page
** Description changed:

- 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:
+ [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
+ (check /var/log/bacula/log for error messages - may)
+ sudo do-release-upgrade
+ ...
+ sudo cat /var/log/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 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/bacula-dir.conf
+ 
+ [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/bacula-dir.conf
  
  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-director-pgsql 5.2.5-0ubuntu6
  ProcVersionSignature: Ubuntu 3.2.0-23.36-virtual 3.2.14
  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
+  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)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-14 Thread Launchpad Bug Tracker
This bug was fixed in the package bacula - 5.2.5-0ubuntu7

---
bacula (5.2.5-0ubuntu7) quantal; urgency=low

  * Ensure bacula database is upgraded from 12-14 as part of
upgrade to 5.2.x (LP: #980189):
- d/rules: Add dbconfig-common upgrade step for 5.2.5-0ubuntu6.1 for
  all database types.
 -- James Page james.p...@ubuntu.com   Thu, 14 Jun 2012 16:09:41 +0100

** Changed in: bacula (Ubuntu Quantal)
   Status: In Progress = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-14 Thread James Page
** Description changed:

  [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) 
+ (oneiric base server install)
  sudo apt-get install mysql-server
  sudo apt-get install bacula-server
  (check /var/log/bacula/log for error messages - may)
  sudo do-release-upgrade
  ...
- sudo cat /var/log/bacula
+ 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/bacula-dir.conf
  
  [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/bacula-dir.conf
  
  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-director-pgsql 5.2.5-0ubuntu6
  ProcVersionSignature: Ubuntu 3.2.0-23.36-virtual 3.2.14
  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)

** Description changed:

  [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
- (check /var/log/bacula/log for error messages - may)
  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/bacula-dir.conf
  
  [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/bacula-dir.conf
  
  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-director-pgsql 5.2.5-0ubuntu6
  ProcVersionSignature: Ubuntu 3.2.0-23.36-virtual 3.2.14
  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
   

[Bug 980189] Re: [SRU] Database not upgraded while upgrading bacula

2012-06-14 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/bacula

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/980189

Title:
  [SRU] Database not upgraded while upgrading bacula

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/980189/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs