Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-10 Thread Ondřej Surý
On Fri, Jun 10, 2011 at 05:03, Ross Boylan r...@biostat.ucsf.edu wrote:
 Anyway the script is for squeeze-wheezy and it will work there.
 Unfortunately it's too late to fix the squeeze.
 I added lenny to sources.list and was able to retrieve db4.2-util (I
 didn't get libdb4.2 since I just noticed it).

 Isn't there likely to be a similar issue in wheezy, in which the old
 version (4.7) will only be available in squeeze?  If so, I think it
 needs a release note warning people to install the package before they
 upgrade.

Nope, the wheezy will have db4.7-util, db4.8-util (both obsoleted) and
db5.1-util (default version of Berkeley DB). wheezy+1 will have
dbold-util (depending on db5.1-util) and db-util (depending on default
version for wheezy+1).

 And/or the cyrus package could recommend libdb4.7-util.

Already done.

 It looks to me as if there are still problems.  Here's what mail.info
 shows when I started cyrus after running the upgrade script:
 mail.info
 Jun  9 19:29:21 vm-migrate07 cyrus/master[16572]: process started
 Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: DBERROR db4: 
 /var/lib/cyrus/db: No such file or directory

Looks like you have deleted /var/lib/cyrus/db?

 Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: recovering cyrus 
 databases

This should help, but if not, send me output of:

find /var/lib/cyrus

It seems like you have delete /var/lib/cyrus/db, but not the berkeley
db databases.

 Some of that may be normal for recreating deleted working databases, but is 
 all of it?

It should be.

 Well, it's not, you can just backup whole /var/lib/cyrus/ directory
 Maybe it would be simpler if the script didn't use the old bdb?

It's the upstream recommended procedure, but it probably could be
rewritten to cope with missing old db utils and just backup
everything).

  5. I'm not sure, based on a quick read, if the script backs up the
  entire mail spool.  If it does, it would be good to make this optional
  since it can take a lot of time and space, and the admin may have
  already made backups.

 No, it doesn't. That would be crazy :))).
 Well, so would touching all my files in the spool for every minor
 upgrade, causing my backup system to backup the whole spool. And that
 happens :(  (I know: there are good safety reasons for it).

I think we already dropped that (at least I think it's not in squeeze).

  7. It might be useful to note the script should be run as root.  I
  wondered if it should be run as cyrus until I saw the code has su cyrus
  at strategic points.

 I'll try to improve the code, so it could be run as cyrus user as
 well. Anyway normally it would be executed from postinst, so it's not
 a high priority stuff...   but I'll fix that if I find the time (and
 of course patches are welcome).
 How about, near the top of the file
 # Run this script as root.  Ordinarily it will be run automatically in
 post-install.

Sound sane, applied.

O.
-- 
Ondřej Surý ond...@sury.org



___
Pkg-Cyrus-imapd-Debian-devel mailing list
Pkg-Cyrus-imapd-Debian-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-cyrus-imapd-debian-devel

Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-10 Thread Ross Boylan
On Fri, 2011-06-10 at 10:31 +0200, Ondřej Surý wrote:
 On Fri, Jun 10, 2011 at 05:03, Ross Boylan r...@biostat.ucsf.edu wrote:

 
  It looks to me as if there are still problems.  Here's what mail.info
  shows when I started cyrus after running the upgrade script:
  mail.info
  Jun  9 19:29:21 vm-migrate07 cyrus/master[16572]: process started
  Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: DBERROR db4: 
  /var/lib/cyrus/db: No such file or directory
 
 Looks like you have deleted /var/lib/cyrus/db?
It's not there, though I never tried to delete it.  imap is definitely
non-functional.
Ross
 
  Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: recovering cyrus 
  databases
 
 This should help, but if not, send me output of:
 
 find /var/lib/cyrus
 
 It seems like you have delete /var/lib/cyrus/db, but not the berkeley
 db databases.
 
  Some of that may be normal for recreating deleted working databases, but is 
  all of it?
 
 It should be.





___
Pkg-Cyrus-imapd-Debian-devel mailing list
Pkg-Cyrus-imapd-Debian-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-cyrus-imapd-debian-devel

Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-09 Thread Ross Boylan
On Wed, 2011-06-08 at 10:13 +0200, Ondřej Surý wrote:
 On Wed, Jun 8, 2011 at 10:02, Ross Boylan r...@biostat.ucsf.edu wrote:
  On Wed, 2011-06-08 at 08:54 +0200, Ondřej Surý wrote:
  Slight correction, better use always the latest version of the script:
 
  http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db
 
  (i.e. without the hash)
 
  O.
  Do you think that script will be effective for lenny - squeeze?
 
 Yes, it should be version agnostic and works only on top of cyrus-db-types.txt
 
  And what, if anything, do I need to do to make the transition?
 
 Yes, you do.
 
  Update
  the berkeley* databases listed in cyrus-db-types.active (except I can
  delete TLS)?
 
 Well, you can also delete the duplicate.db it doesn't contain any
 important information.
 
 Also you need to delete /var/lib/cyrus/db/ (backup it first).
 
 But the script should work.
 
 O.
The main problem is that the convert script says to install db4.2-util,
but it is not available in squeeze.  I assume it's in Lenny, but don't
know if the version there will work on a squeeze system.

Some other issues, in chronological order:

1. I had some trouble retrieving the file; 
wget 
http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db

got me a web page. lynx on the same URL got me the general repository,
not cyrus-upgrade-db.  I ended up navigating to  it through the tree
link.

Maybe the right way to do this would be obvious if I knew git.

2. When I ran the script it said
/bin/bash: db4.2-util not installed
/bin/bash: please do: [sudo] apt-get install db4.2-util package
/bin/bash: and rerun the upgrade again
/bin/bash: db4.7-util not installed
/bin/bash: please do: [sudo] apt-get install db4.7-util package
/bin/bash: and rerun the upgrade again

I did
apt-get install db4.2-util db4.7-util
but I think someone might copy the instructions literally and type
apt-get install db4.2-util package.
I suggest removing package from the message (unless this is some
syntax I'm unaware of).

As indicated above, db4.2-util is unavailable.

3. Is db4.2-util actually necessary to upgrade?  Looking at the  code,
it appears this is used to checkpoint the database before the main
operations.  Is that necessary if cyrus is already shutdown normally, as
I thought it had to be before the upgrade?

4. The script works with berkeley-nosync as well as berkeley, right?

5. I'm not sure, based on a quick read, if the script backs up the
entire mail spool.  If it does, it would be good to make this optional
since it can take a lot of time and space, and the admin may have
already made backups.

6. I've seen some suggestions (not Debian-specific, and possibly old)
that there were files that needed to be upgraded on a per user, or maybe
even per folder, basis.  The code doesn't appear to do that.  Any
problems there?

7. It might be useful to note the script should be run as root.  I
wondered if it should be run as cyrus until I saw the code has su cyrus
at strategic points.

Ross




___
Pkg-Cyrus-imapd-Debian-devel mailing list
Pkg-Cyrus-imapd-Debian-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-cyrus-imapd-debian-devel

Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-09 Thread Ondřej Surý
On Thu, Jun 9, 2011 at 09:10, Ross Boylan r...@biostat.ucsf.edu wrote:
 On Wed, 2011-06-08 at 10:13 +0200, Ondřej Surý wrote:
 On Wed, Jun 8, 2011 at 10:02, Ross Boylan r...@biostat.ucsf.edu wrote:
  On Wed, 2011-06-08 at 08:54 +0200, Ondřej Surý wrote:
  Slight correction, better use always the latest version of the script:
 
  http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db
 
  (i.e. without the hash)
 
  O.
  Do you think that script will be effective for lenny - squeeze?

 Yes, it should be version agnostic and works only on top of 
 cyrus-db-types.txt

  And what, if anything, do I need to do to make the transition?

 Yes, you do.

  Update
  the berkeley* databases listed in cyrus-db-types.active (except I can
  delete TLS)?

 Well, you can also delete the duplicate.db it doesn't contain any
 important information.

 Also you need to delete /var/lib/cyrus/db/ (backup it first).

 But the script should work.

 O.
 The main problem is that the convert script says to install db4.2-util,
 but it is not available in squeeze.  I assume it's in Lenny, but don't
 know if the version there will work on a squeeze system.

It should work, just get libdb4.2 and db4.2-util.

Anyway the script is for squeeze-wheezy and it will work there.
Unfortunately it's too late to fix the squeeze.

 Some other issues, in chronological order:

 1. I had some trouble retrieving the file;
 wget 
 http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db

 got me a web page. lynx on the same URL got me the general repository,
 not cyrus-upgrade-db.  I ended up navigating to  it through the tree
 link.

 Maybe the right way to do this would be obvious if I knew git.

Just clicking on 'cyrus-upgrade-db' would do the trick. Here's the
wgetable link:

http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob_plain;f=debian/cyrus-upgrade-db

 2. When I ran the script it said
 /bin/bash: db4.2-util not installed
 /bin/bash: please do: [sudo] apt-get install db4.2-util package
 /bin/bash: and rerun the upgrade again
 /bin/bash: db4.7-util not installed
 /bin/bash: please do: [sudo] apt-get install db4.7-util package
 /bin/bash: and rerun the upgrade again

 I did
 apt-get install db4.2-util db4.7-util
 but I think someone might copy the instructions literally and type
 apt-get install db4.2-util package.
 I suggest removing package from the message (unless this is some
 syntax I'm unaware of).

Done, thanks for the hint.

 As indicated above, db4.2-util is unavailable.

 3. Is db4.2-util actually necessary to upgrade?  Looking at the  code,
 it appears this is used to checkpoint the database before the main
 operations.  Is that necessary if cyrus is already shutdown normally, as
 I thought it had to be before the upgrade?

Well, it's not, you can just backup whole /var/lib/cyrus/ directory

 4. The script works with berkeley-nosync as well as berkeley, right?

Yes.

 5. I'm not sure, based on a quick read, if the script backs up the
 entire mail spool.  If it does, it would be good to make this optional
 since it can take a lot of time and space, and the admin may have
 already made backups.

No, it doesn't. That would be crazy :))).

 6. I've seen some suggestions (not Debian-specific, and possibly old)
 that there were files that needed to be upgraded on a per user, or maybe
 even per folder, basis.  The code doesn't appear to do that.  Any
 problems there?

None I am aware of.

 7. It might be useful to note the script should be run as root.  I
 wondered if it should be run as cyrus until I saw the code has su cyrus
 at strategic points.

I'll try to improve the code, so it could be run as cyrus user as
well. Anyway normally it would be executed from postinst, so it's not
a high priority stuff...   but I'll fix that if I find the time (and
of course patches are welcome).

O.
-- 
Ondřej Surý ond...@sury.org



___
Pkg-Cyrus-imapd-Debian-devel mailing list
Pkg-Cyrus-imapd-Debian-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-cyrus-imapd-debian-devel

Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-09 Thread Ross Boylan
On Thu, 2011-06-09 at 10:01 +0200, Ondřej Surý wrote:
 On Thu, Jun 9, 2011 at 09:10, Ross Boylan r...@biostat.ucsf.edu wrote:
  On Wed, 2011-06-08 at 10:13 +0200, Ondřej Surý wrote:
,
[Ross wrote]
  The main problem is that the convert script says to install db4.2-util,
  but it is not available in squeeze.  I assume it's in Lenny, but don't
  know if the version there will work on a squeeze system.
 
 It should work, just get libdb4.2 and db4.2-util.
 
 Anyway the script is for squeeze-wheezy and it will work there.
 Unfortunately it's too late to fix the squeeze.
I added lenny to sources.list and was able to retrieve db4.2-util (I
didn't get libdb4.2 since I just noticed it).

Isn't there likely to be a similar issue in wheezy, in which the old
version (4.7) will only be available in squeeze?  If so, I think it
needs a release note warning people to install the package before they
upgrade.  And/or the cyrus package could recommend libdb4.7-util.

It looks to me as if there are still problems.  Here's what mail.info
shows when I started cyrus after running the upgrade script:
mail.info
Jun  9 19:29:21 vm-migrate07 cyrus/master[16572]: process started
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: DBERROR db4: 
/var/lib/cyrus/db: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: DBERROR db4: 
/var/lib/cyrus/db/__db.001: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: DBERROR db4: 
/var/lib/cyrus/db: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: DBERROR db4: 
/var/lib/cyrus/db/__db.001: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: DBERROR: dbenv-open 
'/var/lib/cyrus/db' failed: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: DBERROR: init() on 
berkeley
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: DBERROR: writing 
/var/lib/cyrus/db/skipstamp: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: DBERROR: init() on 
skiplist
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: recovering cyrus 
databases
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: skiplist: recovered 
/var/lib/cyrus/mailboxes.db (3 records, 568 bytes) in 0 seconds
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: skiplist: recovered 
/var/lib/cyrus/annotations.db (0 records, 144 bytes) in 0 seconds
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16574]: done recovering cyrus 
databases
Jun  9 19:29:21 vm-migrate07 cyrus/cyr_expire[16575]: DBERROR db4: 
/var/lib/cyrus/db/__db.001: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/cyr_expire[16575]: DBERROR: dbenv-open 
'/var/lib/cyrus/db' failed: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/cyr_expire[16575]: DBERROR: init() on 
berkeley
Jun  9 19:29:21 vm-migrate07 cyrus/cyr_expire[16575]: DBERROR: reading 
/var/lib/cyrus/db/skipstamp, assuming the worst: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/cyr_expire[16575]: skiplist: recovered 
/var/lib/cyrus/annotations.db (0 records, 144 bytes) in 0 seconds
Jun  9 19:29:21 vm-migrate07 cyrus/cyr_expire[16575]: skiplist: recovered 
/var/lib/cyrus/mailboxes.db (3 records, 568 bytes) in 0 seconds
Jun  9 19:29:21 vm-migrate07 cyrus/cyr_expire[16575]: DBERROR db4: 
DB_AUTO_COMMIT may not be specified in non-transactional environment
Jun  9 19:29:21 vm-migrate07 cyrus/cyr_expire[16575]: DBERROR: opening 
/var/lib/cyrus/deliver.db: Invalid argument
Jun  9 19:29:21 vm-migrate07 cyrus/cyr_expire[16575]: DBERROR: opening 
/var/lib/cyrus/deliver.db: cyrusdb error
Jun  9 19:29:21 vm-migrate07 cyrus/master[16572]: process 16575 exited, status 1
Jun  9 19:29:21 vm-migrate07 cyrus/tls_prune[16576]: DBERROR db4: 
/var/lib/cyrus/db/__db.001: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/tls_prune[16576]: DBERROR: dbenv-open 
'/var/lib/cyrus/db' failed: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/tls_prune[16576]: DBERROR: init() on berkeley
Jun  9 19:29:21 vm-migrate07 cyrus/tls_prune[16576]: DBERROR: reading 
/var/lib/cyrus/db/skipstamp, assuming the worst: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/tls_prune[16576]: DBERROR db4: 
DB_AUTO_COMMIT may not be specified in non-transactional environment
Jun  9 19:29:21 vm-migrate07 cyrus/tls_prune[16576]: DBERROR: opening 
/var/lib/cyrus/tls_sessions.db: Invalid argument
Jun  9 19:29:21 vm-migrate07 cyrus/tls_prune[16576]: DBERROR: opening 
/var/lib/cyrus/tls_sessions.db: cyrusdb error
Jun  9 19:29:21 vm-migrate07 cyrus/master[16572]: process 16576 exited, status 1
Jun  9 19:29:21 vm-migrate07 cyrus/master[16572]: ready for work
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16577]: DBERROR db4: 
/var/lib/cyrus/db/__db.001: No such file or directory
Jun  9 19:29:21 vm-migrate07 cyrus/ctl_cyrusdb[16577]: DBERROR: dbenv-open 
'/var/lib/cyrus/db' failed: No such file or directory
Jun  9 19:29:21 

Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-09 Thread Ross Boylan
On the minor matter of getting the update script:

On Thu, 2011-06-09 at 10:01 +0200, Ondřej Surý wrote:
  1. I had some trouble retrieving the file;
  wget
 http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db
 
  got me a web page. lynx on the same URL got me the general
 repository,
  not cyrus-upgrade-db.  I ended up navigating to  it through the tree
  link.
 
  Maybe the right way to do this would be obvious if I knew git.
 
 Just clicking on 'cyrus-upgrade-db' would do the trick. 
I didn't see the link; I got a page of the commit history of the project
apparently.  I think it was some kind of shell quoting problem; when I
said
lynx http://anonscm.; it worked.

 Here's the
 wgetable link:
 
 http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob_plain;f=debian/cyrus-upgrade-db

BTW, that still is getting me a file that starts like this:
quote
?xml version=1.0 encoding=utf-8?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en-US lang=en-US
!-- git web interface version 1.7.2.5, (C) 2005-2006, Kay Sievers 
kay.siev...@vrfy.org, Christian Gierke --
!-- git core binaries version 1.7.2.5 --
head
meta http-equiv=content-type content=text/html; charset=utf-8/
meta name=generator content=gitweb/1.7.2.5 git/1.7.2.5/
/quote






___
Pkg-Cyrus-imapd-Debian-devel mailing list
Pkg-Cyrus-imapd-Debian-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-cyrus-imapd-debian-devel

Re: Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-08 Thread Ondřej Surý
Hi Ross,

unfortunately it won't be fixed in lenny/squeeze, but I already wrote
an upgrade script for squeeze-wheezy.

You can find it here:

http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db;h=c7d8d55b99982b5df97e5a875d3809a9d593228c;hb=HEAD

I'll keep this bug open until wheezy is out, so everybody can find it.

We'll also welcome any patches to documentation for wheezy version,
since with the upgrade script some of the README.Debian might have
become obsolete.

O.

On Tue, Jun 7, 2011 at 22:58, Ross Boylan r...@biostat.ucsf.edu wrote:
 Package: cyrus-common-2.2
 Version: 2.2.13-19
 Severity: normal

 During upgrade from lenny to squeeze debconf said
  Configuring cyrus-common-2.2 Modified database backends
  Comparison between /usr/lib/cyrus/cyrus-db-types.txt and
  /usr/lib/cyrus/cyrus-db-types.active shows that database
  backends for Cyrus IMAPd have been changed. This means that
  those databases for which the database backends changed might
  need to be converted manually to the new format, using the
  cvt_cyrusdb(8) utility.  Please refer to
  /usr/share/doc/cyrus-common-2.2/README.Debian.database for more
  information.  Do not start cyrmaster until you have converted
  the databases to the new format.

 README.Debian.database says, in part
 2. Find out which databases to convert:
   diff -u /usr/lib/cyrus/cyrus-db-types.active \
           /usr/lib/cyrus/cyrus-db-types.txt

   The databases are these in the default install:
   DUPLICATE            /var/lib/cyrus/deliver.db
   MBOX                 /var/lib/cyrus/mailboxes.db
   TLS                  /var/lib/cyrus/tls_sessions.db

   Don't bother upgrading the TLS database, just delete it: the information
   there is not reused when you stop Cyrus.

   If the BerkeleyDB version is what was changed, you need to use the
   Berkeley DB upgrade utility in all db* databases.  See the manpages for
   db*_upgrade. Note that you need to use the db*_upgrade utility with the

 But when I do the diff I get
 @@ -1,5 +1,5 @@
  ANNOTATION skiplist
 -DBENGINE BerkeleyDB4.2
 +DBENGINE BerkeleyDB4.7
  DUPLICATE berkeley-nosync
  MBOX skiplist
  PTS berkeley


 There are several issues:
 1. I did a default install in Lenny, but I don't see what the notes say I 
 should see.
 2. Despite the debconf note, it looks as if I need db*_upgrade rather than 
 cvt_cyrusdb.
 3. I'm a little confused about whether I should use the db4.7_upgrade or 
 db4.2.
   Though I think it has to be 4.7, and a few lines after the excerpted part of
   README.Debian.database db4.7_upgrade appears explicitly, though only
   as a for example.
 4. And I'm not sure which databases to upgrade.  Also, I though the default, 
 even in Lenny,
   was skiplist.

 Here's my full cyrus-db-types.active:
 NNOTATION skiplist
 DBENGINE BerkeleyDB4.2
 DUPLICATE berkeley-nosync
 MBOX skiplist
 PTS berkeley
 QUOTA quotalegacy
 SEEN skiplist
 SUBS flat
 TLS berkeley-nosync


 -- System Information:
 Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
 Architecture: amd64 (x86_64)

 Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash

 Versions of packages cyrus-common-2.2 depends on:
 ii  adduser    3.112+nmu2                    add and remove users and groups
 ii  debconf [d 1.5.36.1                      Debian configuration management 
 sy
 ii  dpkg       1.15.8.10                     Debian package management system
 ii  exim4-daem 4.72-6                        lightweight Exim MTA (v4) daemon
 ii  gawk       1:3.1.7.dfsg-5                GNU awk, a pattern scanning and 
 pr
 ii  libasn1-8- 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - ASN.1 library
 ii  libc6      2.11.2-10                     Embedded GNU C Library: Shared 
 lib
 ii  libcomerr2 1.41.12-2                     common error description library
 ii  libdb4.7   4.7.25-9                      Berkeley v4.7 Database Libraries 
 [
 ii  libgssapi2 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - GSSAPI support
 ii  libkrb5-26 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - libraries
 ii  libroken18 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - roken support 
 l
 ii  libsasl2-2 2.1.23.dfsg1-7                Cyrus SASL - authentication 
 abstra
 ii  libsnmp15  5.4.3~dfsg-2                  SNMP (Simple Network Management 
 Pr
 ii  libssl0.9. 0.9.8o-4squeeze1              SSL shared libraries
 ii  libwrap0   7.6.q-19                      Wietse Venema's TCP wrappers 
 libra
 ii  libzephyr4 3.0-1                         Project Athena's notification 
 serv
 ii  netbase    4.45                          Basic TCP/IP networking system
 ii  perl       5.10.1-17                     Larry Wall's Practical Extraction

 Versions of packages cyrus-common-2.2 recommends:
 ii  cyrus-admin-2.2               2.2.13-19  Cyrus mail system - 
 administration
 ii  cyrus-imapd-2.2               

Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-08 Thread Ondřej Surý
Slight correction, better use always the latest version of the script:

http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db

(i.e. without the hash)

O.

On Wed, Jun 8, 2011 at 08:47, Ondřej Surý ond...@sury.org wrote:
 Hi Ross,

 unfortunately it won't be fixed in lenny/squeeze, but I already wrote
 an upgrade script for squeeze-wheezy.

 You can find it here:

 http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db;h=c7d8d55b99982b5df97e5a875d3809a9d593228c;hb=HEAD

 I'll keep this bug open until wheezy is out, so everybody can find it.

 We'll also welcome any patches to documentation for wheezy version,
 since with the upgrade script some of the README.Debian might have
 become obsolete.

 O.

 On Tue, Jun 7, 2011 at 22:58, Ross Boylan r...@biostat.ucsf.edu wrote:
 Package: cyrus-common-2.2
 Version: 2.2.13-19
 Severity: normal

 During upgrade from lenny to squeeze debconf said
  Configuring cyrus-common-2.2 Modified database backends
  Comparison between /usr/lib/cyrus/cyrus-db-types.txt and
  /usr/lib/cyrus/cyrus-db-types.active shows that database
  backends for Cyrus IMAPd have been changed. This means that
  those databases for which the database backends changed might
  need to be converted manually to the new format, using the
  cvt_cyrusdb(8) utility.  Please refer to
  /usr/share/doc/cyrus-common-2.2/README.Debian.database for more
  information.  Do not start cyrmaster until you have converted
  the databases to the new format.

 README.Debian.database says, in part
 2. Find out which databases to convert:
   diff -u /usr/lib/cyrus/cyrus-db-types.active \
           /usr/lib/cyrus/cyrus-db-types.txt

   The databases are these in the default install:
   DUPLICATE            /var/lib/cyrus/deliver.db
   MBOX                 /var/lib/cyrus/mailboxes.db
   TLS                  /var/lib/cyrus/tls_sessions.db

   Don't bother upgrading the TLS database, just delete it: the information
   there is not reused when you stop Cyrus.

   If the BerkeleyDB version is what was changed, you need to use the
   Berkeley DB upgrade utility in all db* databases.  See the manpages for
   db*_upgrade. Note that you need to use the db*_upgrade utility with the

 But when I do the diff I get
 @@ -1,5 +1,5 @@
  ANNOTATION skiplist
 -DBENGINE BerkeleyDB4.2
 +DBENGINE BerkeleyDB4.7
  DUPLICATE berkeley-nosync
  MBOX skiplist
  PTS berkeley


 There are several issues:
 1. I did a default install in Lenny, but I don't see what the notes say I 
 should see.
 2. Despite the debconf note, it looks as if I need db*_upgrade rather than 
 cvt_cyrusdb.
 3. I'm a little confused about whether I should use the db4.7_upgrade or 
 db4.2.
   Though I think it has to be 4.7, and a few lines after the excerpted part 
 of
   README.Debian.database db4.7_upgrade appears explicitly, though only
   as a for example.
 4. And I'm not sure which databases to upgrade.  Also, I though the default, 
 even in Lenny,
   was skiplist.

 Here's my full cyrus-db-types.active:
 NNOTATION skiplist
 DBENGINE BerkeleyDB4.2
 DUPLICATE berkeley-nosync
 MBOX skiplist
 PTS berkeley
 QUOTA quotalegacy
 SEEN skiplist
 SUBS flat
 TLS berkeley-nosync


 -- System Information:
 Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
 Architecture: amd64 (x86_64)

 Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash

 Versions of packages cyrus-common-2.2 depends on:
 ii  adduser    3.112+nmu2                    add and remove users and groups
 ii  debconf [d 1.5.36.1                      Debian configuration management 
 sy
 ii  dpkg       1.15.8.10                     Debian package management system
 ii  exim4-daem 4.72-6                        lightweight Exim MTA (v4) daemon
 ii  gawk       1:3.1.7.dfsg-5                GNU awk, a pattern scanning and 
 pr
 ii  libasn1-8- 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - ASN.1 library
 ii  libc6      2.11.2-10                     Embedded GNU C Library: Shared 
 lib
 ii  libcomerr2 1.41.12-2                     common error description library
 ii  libdb4.7   4.7.25-9                      Berkeley v4.7 Database 
 Libraries [
 ii  libgssapi2 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - GSSAPI 
 support
 ii  libkrb5-26 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - libraries
 ii  libroken18 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - roken 
 support l
 ii  libsasl2-2 2.1.23.dfsg1-7                Cyrus SASL - authentication 
 abstra
 ii  libsnmp15  5.4.3~dfsg-2                  SNMP (Simple Network Management 
 Pr
 ii  libssl0.9. 0.9.8o-4squeeze1              SSL shared libraries
 ii  libwrap0   7.6.q-19                      Wietse Venema's TCP wrappers 
 libra
 ii  libzephyr4 3.0-1                         Project Athena's notification 
 serv
 ii  netbase    4.45                     

Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-08 Thread Ondřej Surý
On Wed, Jun 8, 2011 at 10:02, Ross Boylan r...@biostat.ucsf.edu wrote:
 On Wed, 2011-06-08 at 08:54 +0200, Ondřej Surý wrote:
 Slight correction, better use always the latest version of the script:

 http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db

 (i.e. without the hash)

 O.
 Do you think that script will be effective for lenny - squeeze?

Yes, it should be version agnostic and works only on top of cyrus-db-types.txt

 And what, if anything, do I need to do to make the transition?

Yes, you do.

 Update
 the berkeley* databases listed in cyrus-db-types.active (except I can
 delete TLS)?

Well, you can also delete the duplicate.db it doesn't contain any
important information.

Also you need to delete /var/lib/cyrus/db/ (backup it first).

But the script should work.

O.
-- 
Ondřej Surý ond...@sury.org



___
Pkg-Cyrus-imapd-Debian-devel mailing list
Pkg-Cyrus-imapd-Debian-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-cyrus-imapd-debian-devel

Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-08 Thread Ross Boylan
On Wed, 2011-06-08 at 08:54 +0200, Ondřej Surý wrote:
 Slight correction, better use always the latest version of the script:
 
 http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db
 
 (i.e. without the hash)
 
 O.
Do you think that script will be effective for lenny - squeeze?

And what, if anything, do I need to do to make the transition?  Update
the berkeley* databases listed in cyrus-db-types.active (except I can
delete TLS)?
Ross
 
 On Wed, Jun 8, 2011 at 08:47, Ondřej Surý ond...@sury.org wrote:
  Hi Ross,
 
  unfortunately it won't be fixed in lenny/squeeze, but I already wrote
  an upgrade script for squeeze-wheezy.
 
  You can find it here:
 
  http://anonscm.debian.org/gitweb/?p=pkg-cyrus-imapd/cyrus-imapd-2.4.git;a=blob;f=debian/cyrus-upgrade-db;h=c7d8d55b99982b5df97e5a875d3809a9d593228c;hb=HEAD
 
  I'll keep this bug open until wheezy is out, so everybody can find it.
 
  We'll also welcome any patches to documentation for wheezy version,
  since with the upgrade script some of the README.Debian might have
  become obsolete.
 
  O.
 
  On Tue, Jun 7, 2011 at 22:58, Ross Boylan r...@biostat.ucsf.edu wrote:
  Package: cyrus-common-2.2
  Version: 2.2.13-19
  Severity: normal
 
  During upgrade from lenny to squeeze debconf said
   Configuring cyrus-common-2.2 Modified database backends
   Comparison between /usr/lib/cyrus/cyrus-db-types.txt and
   /usr/lib/cyrus/cyrus-db-types.active shows that database
   backends for Cyrus IMAPd have been changed. This means that
   those databases for which the database backends changed might
   need to be converted manually to the new format, using the
   cvt_cyrusdb(8) utility.  Please refer to
   /usr/share/doc/cyrus-common-2.2/README.Debian.database for more
   information.  Do not start cyrmaster until you have converted
   the databases to the new format.
 
  README.Debian.database says, in part
  2. Find out which databases to convert:
diff -u /usr/lib/cyrus/cyrus-db-types.active \
/usr/lib/cyrus/cyrus-db-types.txt
 
The databases are these in the default install:
DUPLICATE/var/lib/cyrus/deliver.db
MBOX /var/lib/cyrus/mailboxes.db
TLS  /var/lib/cyrus/tls_sessions.db
 
Don't bother upgrading the TLS database, just delete it: the information
there is not reused when you stop Cyrus.
 
If the BerkeleyDB version is what was changed, you need to use the
Berkeley DB upgrade utility in all db* databases.  See the manpages for
db*_upgrade. Note that you need to use the db*_upgrade utility with the
 
  But when I do the diff I get
  @@ -1,5 +1,5 @@
   ANNOTATION skiplist
  -DBENGINE BerkeleyDB4.2
  +DBENGINE BerkeleyDB4.7
   DUPLICATE berkeley-nosync
   MBOX skiplist
   PTS berkeley
 
 
  There are several issues:
  1. I did a default install in Lenny, but I don't see what the notes say I 
  should see.
  2. Despite the debconf note, it looks as if I need db*_upgrade rather than 
  cvt_cyrusdb.
  3. I'm a little confused about whether I should use the db4.7_upgrade or 
  db4.2.
Though I think it has to be 4.7, and a few lines after the excerpted 
  part of
README.Debian.database db4.7_upgrade appears explicitly, though only
as a for example.
  4. And I'm not sure which databases to upgrade.  Also, I though the 
  default, even in Lenny,
was skiplist.
 
  Here's my full cyrus-db-types.active:
  NNOTATION skiplist
  DBENGINE BerkeleyDB4.2
  DUPLICATE berkeley-nosync
  MBOX skiplist
  PTS berkeley
  QUOTA quotalegacy
  SEEN skiplist
  SUBS flat
  TLS berkeley-nosync
 
 
  -- System Information:
  Debian Release: 6.0.1
   APT prefers stable
   APT policy: (500, 'stable')
  Architecture: amd64 (x86_64)
 
  Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
  Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
  Shell: /bin/sh linked to /bin/dash
 
  Versions of packages cyrus-common-2.2 depends on:
  ii  adduser3.112+nmu2add and remove users and 
  groups
  ii  debconf [d 1.5.36.1  Debian configuration 
  management sy
  ii  dpkg   1.15.8.10 Debian package management 
  system
  ii  exim4-daem 4.72-6lightweight Exim MTA (v4) 
  daemon
  ii  gawk   1:3.1.7.dfsg-5GNU awk, a pattern scanning 
  and pr
  ii  libasn1-8- 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - ASN.1 
  library
  ii  libc6  2.11.2-10 Embedded GNU C Library: 
  Shared lib
  ii  libcomerr2 1.41.12-2 common error description 
  library
  ii  libdb4.7   4.7.25-9  Berkeley v4.7 Database 
  Libraries [
  ii  libgssapi2 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - GSSAPI 
  support
  ii  libkrb5-26 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - libraries
  ii  libroken18 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - roken 
  support l
  ii  libsasl2-2 

Bug#629592: cyrus-common-2.2: confusing/contradictory information on lenny-squeeze upgrade

2011-06-07 Thread Ross Boylan
Package: cyrus-common-2.2
Version: 2.2.13-19
Severity: normal

During upgrade from lenny to squeeze debconf said
  Configuring cyrus-common-2.2 Modified database backends
  Comparison between /usr/lib/cyrus/cyrus-db-types.txt and
  /usr/lib/cyrus/cyrus-db-types.active shows that database
  backends for Cyrus IMAPd have been changed. This means that
  those databases for which the database backends changed might
  need to be converted manually to the new format, using the
  cvt_cyrusdb(8) utility.  Please refer to
  /usr/share/doc/cyrus-common-2.2/README.Debian.database for more
  information.  Do not start cyrmaster until you have converted
  the databases to the new format.

README.Debian.database says, in part
2. Find out which databases to convert:
   diff -u /usr/lib/cyrus/cyrus-db-types.active \
   /usr/lib/cyrus/cyrus-db-types.txt

   The databases are these in the default install:
   DUPLICATE/var/lib/cyrus/deliver.db
   MBOX /var/lib/cyrus/mailboxes.db
   TLS  /var/lib/cyrus/tls_sessions.db

   Don't bother upgrading the TLS database, just delete it: the information
   there is not reused when you stop Cyrus.

   If the BerkeleyDB version is what was changed, you need to use the
   Berkeley DB upgrade utility in all db* databases.  See the manpages for
   db*_upgrade. Note that you need to use the db*_upgrade utility with the

But when I do the diff I get
@@ -1,5 +1,5 @@
 ANNOTATION skiplist
-DBENGINE BerkeleyDB4.2
+DBENGINE BerkeleyDB4.7
 DUPLICATE berkeley-nosync
 MBOX skiplist
 PTS berkeley


There are several issues:
1. I did a default install in Lenny, but I don't see what the notes say I 
should see.
2. Despite the debconf note, it looks as if I need db*_upgrade rather than 
cvt_cyrusdb.
3. I'm a little confused about whether I should use the db4.7_upgrade or db4.2.
   Though I think it has to be 4.7, and a few lines after the excerpted part of
   README.Debian.database db4.7_upgrade appears explicitly, though only
   as a for example.
4. And I'm not sure which databases to upgrade.  Also, I though the default, 
even in Lenny,
   was skiplist.

Here's my full cyrus-db-types.active:
NNOTATION skiplist
DBENGINE BerkeleyDB4.2
DUPLICATE berkeley-nosync
MBOX skiplist
PTS berkeley
QUOTA quotalegacy
SEEN skiplist
SUBS flat
TLS berkeley-nosync


-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cyrus-common-2.2 depends on:
ii  adduser3.112+nmu2add and remove users and groups
ii  debconf [d 1.5.36.1  Debian configuration management sy
ii  dpkg   1.15.8.10 Debian package management system
ii  exim4-daem 4.72-6lightweight Exim MTA (v4) daemon
ii  gawk   1:3.1.7.dfsg-5GNU awk, a pattern scanning and pr
ii  libasn1-8- 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - ASN.1 library
ii  libc6  2.11.2-10 Embedded GNU C Library: Shared lib
ii  libcomerr2 1.41.12-2 common error description library
ii  libdb4.7   4.7.25-9  Berkeley v4.7 Database Libraries [
ii  libgssapi2 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - GSSAPI support 
ii  libkrb5-26 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - libraries
ii  libroken18 1.4.0~git20100726.dfsg.1-1+b1 Heimdal Kerberos - roken support l
ii  libsasl2-2 2.1.23.dfsg1-7Cyrus SASL - authentication abstra
ii  libsnmp15  5.4.3~dfsg-2  SNMP (Simple Network Management Pr
ii  libssl0.9. 0.9.8o-4squeeze1  SSL shared libraries
ii  libwrap0   7.6.q-19  Wietse Venema's TCP wrappers libra
ii  libzephyr4 3.0-1 Project Athena's notification serv
ii  netbase4.45  Basic TCP/IP networking system
ii  perl   5.10.1-17 Larry Wall's Practical Extraction 

Versions of packages cyrus-common-2.2 recommends:
ii  cyrus-admin-2.2   2.2.13-19  Cyrus mail system - administration
ii  cyrus-imapd-2.2   2.2.13-19  Cyrus mail system - IMAP support

Versions of packages cyrus-common-2.2 suggests:
ii  apt-listchanges   2.85.7 package change history notificatio
ii  cyrus-admin-2.2   2.2.13-19  Cyrus mail system - administration
ii  cyrus-clients-2.2 2.2.13-19  Cyrus mail system (test clients)
pn  cyrus-doc-2.2 none (no description available)
ii  cyrus-imapd-2.2   2.2.13-19  Cyrus mail system - IMAP support
pn  cyrus-murder-2.2  none (no description available)
pn  cyrus-nntpd-2.2   none (no description available)
pn  cyrus-pop3d-2.2   none (no description