How to skip errors on doveadm backup for migration ?

Timo Sirainen tss at iki.fi
Sun Jan 24 18:25:24 UTC 2016


On 10 Jan 2016, at 20:25, Christoph Adomeit <Christoph.Adomeit at gatworks.de> wrote:
> 
> Hi Timo,
> 
> thanks for the patch.
> 
> I applied it, compiled doveadm and tried the new binary but it still baily out with this message:
> 
> 
> dsync(user at domain.de): Error: Exporting mailbox INBOX.Sent failed: Can't lookup saved-date for UID=515: Internal error occurred. Refer to server log for more information. [2016-01-10 17:02:08]
> 
> Do you have any idea how I can skip these errors ?

Here's a working patch: https://github.com/dovecot/core/commit/2ddc5efd47452644be369fa86e978cc05a508217.patch

> Thanks
>  Christoph
> 
> On Fri, Jan 08, 2016 at 05:39:51PM +0200, Timo Sirainen wrote:
>> On 08 Jan 2016, at 12:50, Christoph Adomeit <Christoph.Adomeit at gatworks.de> wrote:
>>> 
>>> Hi there,
>>> 
>>> I have to migrate data out of a very old (debian 4) and buggy cyrus mailserver.
>>> About 40 Users with 200000 Messages each.
>>> 
>>> Doveadm backup works quite well and gives me most of the mails. About every 100.000 Mail
>>> cannot be exported by cyrus. I do not want to bother about these errors.
>>> Maybe it is filesystem, maybe it is memory leak, or cyrus bug or whatever.
>>> 
>>> My problem is that doveadm backup exits with an error if it cannot read a mail.
>> 
>> What does Cyrus reply? Is it a NO reply to FETCH command?
>> 
>>> Is there some way or option to make doveadm backup just skip the errors and continue with the next message ?
>> 
>> Not currently. You could try if the attached patch helps. It should write the mail as empty.
>> 
> 
> 
>> 
>> 



More information about the dovecot mailing list