Hi,

we had the same problem. After upgrade was created only mailboxes, which had uniqueid in database. We can check it in dump: /usr/lib/cyrus/bin/cvt_cyrusdb /var/lib/cyrus/mailboxes.db twoskip /tmp/aaa.txt flat;
folder without uniqueid doesn't have "I" in dump /tmp/aaa.txt.

It can be repaired _before_ upgrade with:
/usr/lib/cyrus/bin/reconstruct -I
...
pokus.cz!test: update uniqueid from header (null) => 7f54216e52e02e7c
...

I hope, that this repaired mailboxes.db can be upgraded without problem and will check it in few days.

I copy mailboxes.db without "reconstruct -I" to test bookworm system and run "/usr/lib/cyrus/bin/ctl_cyrusdb -r". After that:
/usr/lib/cyrus/bin/ctl_mboxlist -d | wc -l
458
I run  "reconstruct -I" on test source system and copy to test bookworm system, and run "/usr/lib/cyrus/bin/ctl_cyrusdb -r". After that:
/usr/lib/cyrus/bin/ctl_mboxlist -d | wc -l
2280



And there is typo in postinst in cyrus-common package (you must test zero size and compare version in variable $2, not $1):
===
case "$1" in
    configure)
        # Refuse to update if previous version is lower than 3.2.6-2+deb11u2~         if [ -z "$1" ] || $(dpkg --compare-versions $1 lt '3.2.6-2+deb11u2~'); then             echo "You must update cyrus-imapd to at least version 3.2.6-2+deb11u2~" >&2             echo "before updating it to version 3.6.x and run it, else your mailboxes" >&2
            echo "may be corrupted" >&2
            exit 1
        fi
===

Regards,
Petr Jurasek


On Sat, 5 Aug 2023 21:55:30 +0200 Paul van der Vlis <p...@vandervlis.nl> wrote:
> Hello Yadd,
>
> Thanks for all your work on Cyrus-imapd in Debian!
>
> On Wed, 19 Jul 2023 06:38:48 +0400 Yadd <y...@debian.org> wrote:
> > the patch needed to update to 3.6 is included in version
> > 3.2.6-2+deb11u2. So the doc should be updated to explain that "we should > > have upgraded from Cyrus 3.2.6-2 to 3.2.6-2+deb11u2 before going to 3.6.x"
>
> I have heard about problems, even when upgrading from 3.2.6-2+deb11u2.
>
> Ellie writes: "From the amount of failures reported by people who have
> let apt upgrade Cyrus for them, I guess there's a step missing in
> whatever apt does". Is there something missing so far you know?
> https://cyrus.topicbox.com/groups/info/Ta01e6935b46972c7-Mbb5e079f8d91464da502f947/upgrade-cyrus-on-debian-11-to-12
>
> Is it a good idea to upgrade first to the backported version in Debian
> 11, and then later to Debian 12? (In this way, I can concentrate on
> Cyrus first.)
>
> I have many mailboxes on my server, some of them are over 20 years old,
> and some of them contain much data.
>
> With regards,
> Paul van der Vlis
>
> --
> Paul van der Vlis Linux systeembeheer Groningen
> https://vandervlis.nl/
>
>

--
S pozdravem
Petr Jurášek
RYANT s.r.o.

Reply via email to