> On 06/05/2021 14:22 Florian Lohoff <f at zz.de> wrote: > > > On Thu, May 06, 2021 at 02:11:16PM +0300, Aki Tuomi wrote: > > > doveadm(inbox at wasteland.rfc822.org): Warning: Transaction log file /var/vmail/wasteland.rfc822.org/inbox/mdbox/storage/dovecot.map.index.log was locked for 15023 seconds (rotating while syncing) > > > doveadm(inbox at wasteland.rfc822.org): Error: Corrupted transaction log file /var/vmail/wasteland.rfc822.org/inbox/mdbox/dovecot.list.index.log seq 4: indexid changed: 1620283336 -> 1620289271 (sync_offset=0) > > > doveadm(inbox at wasteland.rfc822.org): Warning: fscking index file /var/vmail/wasteland.rfc822.org/inbox/mdbox/storage/dovecot.map.index > > > > > > I have no clue if this is a: > > > > > > "I have repaired everything - be happy" > > > > > > or > > > > > > "Unfixable broken - Better use your backup" > > > > > > > > > So i guess i remove all dovecot.map.index* files now and restart over. > > > > I would suggest trying to fix it by adding nologin attribute to the account to avoid concurrent access before doing those things. > > That does help me interpret the force-resync output?!?! > > I stopped new delivery yesterday noon already by putting all mails on > hold in postfix (100K+ now already). > > I made imap login now impossible by changing the password. > > FloSorry, I ment that it really looks like, based on the logs, that something else was hoarding your indexes for 15023 seconds, and I can't really think anything else than some imap process being there. Or you are running it twice. Aki
On Thu, May 06, 2021 at 02:24:36PM +0300, Aki Tuomi wrote:> Sorry, I ment that it really looks like, based on the logs, that > something else was hoarding your indexes for 15023 seconds, and I > can't really think anything else than some imap process being there. > Or you are running it twice.So i am pretty shure nothing else is accessing this mailbox - This morning i opened the screen session and i am here: doveadm(inbox at wasteland): Debug: Mailbox gd3kaen2nv: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Debug: Mailbox qx0q0x4aaxb6tdct58dsuqo7hcyutc: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Debug: Mailbox wzc4wfslhane: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Debug: Mailbox 6ldnyxu: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Debug: Mailbox buttrubbin19june1995: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Debug: Mailbox cizl858lstverlhyt6wcuma: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Debug: Mailbox ou7puqd2a: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Debug: Mailbox o1tbffmh2legdry91sgdjykoa9: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Debug: Mailbox miy6ugauaz: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Debug: Mailbox rk3wmrgcgi4rugiwf7y3uec4ate: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Debug: Mailbox ixazuy553fhrt5zgow0: Mailbox opened because: mdbox rebuild doveadm(inbox at wasteland): Warning: Transaction log file /var/vmail/wasteland/inbox/mdbox/storage/dovecot.map.index.log was locked for 18705 seconds (mdbox storage rebuild) doveadm(inbox at wasteland): Warning: fscking index file /var/vmail/wasteland/inbox/mdbox/storage/dovecot.map.index doveadm(inbox at wasteland): Debug: Mailbox cizl858lstverlhyt6wcuma: Mailbox opened because: force-resync doveadm(inbox at wasteland): Warning: fscking index file /var/vmail/wasteland/inbox/mdbox/storage/dovecot.map.index doveadm(inbox at wasteland): Warning: mdbox /var/vmail/wasteland/inbox/mdbox/storage: rebuilding indexes 15 Hours and still going. I'll give it another round and then i'll restore from backup. Seems it wont end. Restore from borg took 9 Minutes in November just as a comparison. This machine is capable of reading/writing this whole mailbox in a few minutes but doveadm force-resync seems to have a hard time repairing. In strace i can see that the process of force-resync starts with reading all storage files and then statting all folders and then rewriting all folders. And it seems it does this in a loop over and over again and i fail to see reasons or problems even when running with debug ... Flo -- Florian Lohoff f at zz.de Any sufficiently advanced technology is indistinguishable from magic. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://dovecot.org/pipermail/dovecot/attachments/20210507/5f11f8a0/attachment.sig>