Bug#803976: closed by Ondřej Surý <ondrej at debian.org> (Bug#803976: fixed in cyrus-imapd-2.4 2.4.18-1)
Ondřej Surý
ondrej at debian.org
Wed Dec 23 14:12:41 UTC 2015
Hmm, I see. It basically means I have to trigger the BDB update if the
environment is found or I'll use the solution you have suggested :)
Cheers,
Ondrej
On Wed, Dec 23, 2015, at 13:32, Agustín Eijo wrote:
> Hi Ondrej,
>
> This patch does not work. The script ends with the following error (in
> both cases: wheezy
> -> jessie and wheezy -> sid ) :
>
> db5.3_checkpoint: BDB1538 Program version 5.3 doesn't match environment
> version 5.1
> db5.3_checkpoint: DB_ENV->open: BDB0091 DB_VERSION_MISMATCH: Database
> environment version
> mismatch
>
> I attach the output script with set -x ( debug-upgrade-db.txt )
>
> Agu
>
>
> El 23/12/2015 a las 04:59 a.m., Ondřej Surý escribió:
> > Hi Augustín,
> >
> > are you able to retry the upgrade with following patch?
> >
> > diff --git a/debian/cyrus-upgrade-db b/debian/cyrus-upgrade-db
> > index 82a9d8e..2077a1f 100755
> > --- a/debian/cyrus-upgrade-db
> > +++ b/debian/cyrus-upgrade-db
> > @@ -182,13 +182,8 @@ upgradealldb() {
> >
> > # Create Berkeley DB checkpoint and remove old logs
> > if [ -n "${DO_UPGRADE_BDB}" -a -d $CONFIG_DIR/db ]; then
> > - if [ -f /usr/lib/cyrus/berkeley-db-found.txt ]; then
> > - # Create new checkpoint
> > - checkpointbdb $NEW_DBVERSION
> > - else
> > - # Remove empty environment
> > - rm -rf $CONFIG_DIR/db
> > - fi
> > + # Create new checkpoint
> > + checkpointbdb $NEW_DBVERSION
> > fi
> >
> > [ -f /usr/lib/cyrus/berkeley-db-found.txt ] && \
> >
> > (aka never remove the BerkeleyDB environment, just checkpoint it every
> > time)
> >
> > Cheers,
> > Ondrej
> >
> > On Tue, Dec 22, 2015, at 22:30, Agustín Eijo wrote:
> >> Hello,
> >>
> >> I tried to make the upgrade from wheezy to sid, but I have the same
> >> problem with 2.4.18-1.
> >>
> >> The script /usr/lib/cyrus/bin/upgrade-db delete /var/lib/cyrus/db
> >> directory
> >>
> >> I tried changing:
> >>
> >> 190c190
> >> < rm -rf $CONFIG_DIR/db
> >> ---
> >> > rm -rf $CONFIG_DIR/db/*
> >>
> >> And the upgrade works well...
> >>
> >> Agustín.
> >>
> >>
> >> El 21/12/2015 a las 09:24 a.m., Debian Bug Tracking System escribió:
> >>> This is an automatic notification regarding your Bug report
> >>> which was filed against the cyrus-common package:
> >>>
> >>> #803976: cyrus-common: /usr/lib/cyrus/bin/upgrade-db delete /var/lib/cyrus/db on upgrade from wheezy to jessie
> >>>
> >>> It has been closed by Ondřej Surý <ondrej at debian.org>.
> >>>
> >>> Their explanation is attached below along with your original report.
> >>> If this explanation is unsatisfactory and you have not received a
> >>> better one in a separate message then please contact Ondřej Surý <ondrej at debian.org> by
> >>> replying to this email.
> >>>
> >>>
> >
>
> Email had 1 attachment:
> + debug-upgrade-db.txt
> 6k (text/plain)
--
Ondřej Surý <ondrej at sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server
More information about the Pkg-Cyrus-imapd-Debian-devel
mailing list