Benoit Branciard
2017-Jan-25 14:13 UTC
2.2.26.0 : accessing "mdbox_deleted" content destroys indexes
Accessing or listing "mdbox_deleted" contents seems to destroy MDBOX indexes. Examples of commands which triggers this problem ($home being the home directory of $user, and mail_location being mdbox:~/mdbox): doveadm -o mail="mdbox_deleted:$home/mdbox" -f table mailbox status -u "$user" 'messages vsize' INBOX doveadm -v import -s -u "$user" "mdbox_deleted:$home/mdbox" restored-mail ALL The above "doveadm mailbox status" command outputs an error: doveadm(user): Error: Log synchronization error at seq=1,offset=104908 for (in-memory index): Append with UID 1, but next_uid = 5227 doveadm(user): Warning: fscking index file (in-memory index) Subsequent "doveadm mailbox status -u $user 'messages vsize'" on the active mailbox report empty folders (null messages and vsize), whereas folders actually aren't empty. Workaround: this problem is corrected by a "doveadm search -u $user all", which obviously forces indexes to be rebuilt. Vesion: 2.2.26.0 (23d1de6) (Debian jessie-backports package) We did *not* have this problem in 2.2.24 version (previous Debian jessie-backports package). We use following mail_location with explicit DIRNAME (don't know if that matters): mail_location = mdbox:~/mdbox:DIRNAME=_@@_dbox-Mails_@@_ I tested with and without appending ":DIRNAME=_@@_dbox-Mails_@@_" to mail="mdbox_deleted:$home/mdbox" with same results. -- Benoit BRANCIARD Service InfraStructures (SIS) Direction du Syst?me d'Information et des Usages Num?riques (DSIUN) Universit? Paris 1 Panth?on-Sorbonne Centre Pierre Mend?s France 90 rue de Tolbiac - 75634 Paris cedex 13 - France Bur. B406 - T?l +33 1 44 07 89 68 - Fax +33 1 44 07 89 66 Accueil: +33 1 44 07 89 65 - Assistance-DSIUN at univ-paris1.fr http://dsi.univ-paris1.fr
Benoit Branciard
2017-Jan-31 10:46 UTC
UPD: 2.2.27 : accessing "mdbox_deleted" content destroys indexes
Just to say this bug is still present in 2.2.27 (1:2.2.27-2~bpo8+1 jessie-backports Debian package). # dovecot --version 2.2.27 (c0f36b0) mail_location = mdbox:~/mdbox:DIRNAME=_@@_dbox-Mails_@@_ Please let me know if you want me to transmit our "doveconf -n" output. Regards, Le 25/01/2017 ? 15:13, Benoit Branciard a ?crit :> Accessing or listing "mdbox_deleted" contents seems to destroy MDBOX > indexes. > > Examples of commands which triggers this problem ($home being the home > directory of $user, and mail_location being mdbox:~/mdbox): > > doveadm -o mail="mdbox_deleted:$home/mdbox" -f table mailbox status -u > "$user" 'messages vsize' INBOX > > doveadm -v import -s -u "$user" "mdbox_deleted:$home/mdbox" > restored-mail ALL > > The above "doveadm mailbox status" command outputs an error: > > doveadm(user): Error: Log synchronization error at seq=1,offset=104908 > for (in-memory index): Append with UID 1, but next_uid = 5227 > doveadm(user): Warning: fscking index file (in-memory index) > > Subsequent "doveadm mailbox status -u $user 'messages vsize'" on the > active mailbox report empty folders (null messages and vsize), whereas > folders actually aren't empty. > > Workaround: this problem is corrected by a "doveadm search -u $user > all", which obviously forces indexes to be rebuilt. > > Vesion: 2.2.26.0 (23d1de6) (Debian jessie-backports package) > > We did *not* have this problem in 2.2.24 version (previous Debian > jessie-backports package). > > We use following mail_location with explicit DIRNAME (don't know if that > matters): > > mail_location = mdbox:~/mdbox:DIRNAME=_@@_dbox-Mails_@@_ > > I tested with and without appending ":DIRNAME=_@@_dbox-Mails_@@_" to > mail="mdbox_deleted:$home/mdbox" with same results. > >-- Benoit BRANCIARD Service InfraStructures (SIS) Direction du Syst?me d'Information et des Usages Num?riques (DSIUN) Universit? Paris 1 Panth?on-Sorbonne Centre Pierre Mend?s France 90 rue de Tolbiac - 75634 Paris cedex 13 - France Bur. B406 - T?l +33 1 44 07 89 68 - Fax +33 1 44 07 89 66 Accueil: +33 1 44 07 89 65 - Assistance-DSIUN at univ-paris1.fr http://dsi.univ-paris1.fr