On 03/11/2024 21:28, cpur via Devel wrote:
Hi all,
I upgraded to Debian Bookworm today and with this to cyrus 3.6.1
The upgrade went without error messages, but after upgrade, new mailboxes were created under mail/uuid/...

autocreateinbox: User XXX, INBOX was successfully created

of course, without any mail in it. I added

mailbox_legacy_dirs: yes
autocreate_quota: -1
autocreate_post: 0

and the autocreate of empty mailboxes stopped.

Now I get

cyrus/ imaps[1366]: IOERROR: opening index failed: mailbox=<user.XXX> error=<System I/O error> syserror=<No such file or directory> func=<mailbox_open_advanced>

It  looks like it migrated something but not the mails and mailbox dbs:

cyrus@mail:~$ /usr/lib/cyrus/bin/relocate_by_id -n -u XXX
XXX: user already relocated

Hi,

I suspect that maybe what happened here is that the mailboxes were auto created and then relocate_by_id failed as the mailboxes were auto created with the new storage system (sans emails obv). So it would seem that the Debian upgrade script isn't doing the "right thing"(tm). Whether that is due to bugs in the Debian packaging or Cyrus (for example an issue with ctl_cyrusdb) is not as clear.

The Cyrus documentation (relnotes-3-6-0-beta1-storage-changes) says that the mailboxes.db will be upgraded (for both styles) at startup or when "ctl_cyrusdb -r" is run manually. The single sentence in the release notes is short on details though as to how this happens.

Also, the "mailbox_legacy_dirs" option (according to the docs) only affects newly created mailboxes.

A quick question; did you have auto create turned on before you upgraded? I'm wondering if having auto create turned on while upgrading may have caused the problem; i.e. creating new empty mailboxes because it couldn't find the mailboxes because they were using the old style of storage. If so the Debian / cyrus upgrade script should probably detect this and abort the upgrade or turn off auto create while upgrading.

Matt

------------------------------------------
Cyrus: Devel
Permalink: 
https://cyrus.topicbox.com/groups/devel/Tc0e863bae9053445-M41373fa6d5ce8435d56697b5
Delivery options: https://cyrus.topicbox.com/groups/devel/subscription

Reply via email to