[Dovecot] 2.1.1: doveadm backup errors
Hello Timo,
I'm experimenting with 'doveadm backup' on 2.1.1 (latest hg, full dovecot -n output attached) and haven't managed to get it working.
This is what I have done:
- Create the directory /tmp/backup which is empty
- Run doveadm -v backup -u testuser@ubuntu-test.localdomain mdbox:/tmp/backup/
Then I see the following errors:
doveadm -v backup -u testuser@ubuntu-test.localdomain mdbox:/tmp/backup/ dsync(testuser@ubuntu-test.localdomain): Error: Can't delete mailbox INBOX: INBOX can't be deleted. dsync(testuser@ubuntu-test.localdomain): Info: INBOX: only in dest (guid=9e4b88178b905f4f456e0000381555a6) dsync(testuser@ubuntu-test.localdomain): Info: INBOX: only in source (guid=bd05451f2fbb574d40600000ec8d17cd) dsync(testuser@ubuntu-test.localdomain): Error: Trying to open a non-listed mailbox with guid=9e4b88178b905f4f456e0000381555a6 dsync(testuser@ubuntu-test.localdomain): Error: msg iteration failed: Couldn't open mailbox 9e4b88178b905f4f456e0000381555a6 dsync(testuser@ubuntu-test.localdomain): Error: Trying to open a non-listed mailbox with guid=9e4b88178b905f4f456e0000381555a6 dsync(testuser@ubuntu-test.localdomain): Error: Mailbox INBOX changed its GUID (bd05451f2fbb574d40600000ec8d17cd -> 9e4b88178b905f4f456e0000381555a6) dsync(testuser@ubuntu-test.localdomain): Error: msg iteration failed: Couldn't open mailbox bd05451f2fbb574d40600000ec8d17cd dsync(testuser@ubuntu-test.localdomain): Error: Mailbox INBOX changed its GUID (bd05451f2fbb574d40600000ec8d17cd -> 9e4b88178b905f4f456e0000381555a6)
It somehow finds INBOX in destination however the backup directory is newly created and empty.
Thanks, e-frog
On 13.3.2012, at 20.42, e-frog wrote:
This is what I have done:
- Create the directory /tmp/backup which is empty
- Run doveadm -v backup -u testuser@ubuntu-test.localdomain mdbox:/tmp/backup/ .. Then I see the following errors:
doveadm -v backup -u testuser@ubuntu-test.localdomain mdbox:/tmp/backup/ dsync(testuser@ubuntu-test.localdomain): Error: Can't delete mailbox INBOX: INBOX can't be deleted.
Try without mailbox_list_index=yes
On 13.03.2012 20:16, wrote Timo Sirainen:
On 13.3.2012, at 20.42, e-frog wrote:
This is what I have done:
- Create the directory /tmp/backup which is empty
- Run doveadm -v backup -u testuser@ubuntu-test.localdomain mdbox:/tmp/backup/ .. Then I see the following errors:
doveadm -v backup -u testuser@ubuntu-test.localdomain mdbox:/tmp/backup/ dsync(testuser@ubuntu-test.localdomain): Error: Can't delete mailbox INBOX: INBOX can't be deleted.
Try without mailbox_list_index=yes
Yes, after disabling list indexes it works.
On Tue, 2012-03-13 at 21:19 +0100, e-frog wrote:
On 13.03.2012 20:16, wrote Timo Sirainen:
On 13.3.2012, at 20.42, e-frog wrote:
This is what I have done:
- Create the directory /tmp/backup which is empty
- Run doveadm -v backup -u testuser@ubuntu-test.localdomain mdbox:/tmp/backup/ .. Then I see the following errors:
doveadm -v backup -u testuser@ubuntu-test.localdomain mdbox:/tmp/backup/ dsync(testuser@ubuntu-test.localdomain): Error: Can't delete mailbox INBOX: INBOX can't be deleted.
Try without mailbox_list_index=yes
Yes, after disabling list indexes it works.
With latest hg version it should work.
On 14.03.2012 14:41, wrote Timo Sirainen:
On Tue, 2012-03-13 at 21:19 +0100, e-frog wrote:
On 13.03.2012 20:16, wrote Timo Sirainen:
On 13.3.2012, at 20.42, e-frog wrote:
This is what I have done:
- Create the directory /tmp/backup which is empty
- Run doveadm -v backup -u testuser@ubuntu-test.localdomain mdbox:/tmp/backup/ .. Then I see the following errors:
doveadm -v backup -u testuser@ubuntu-test.localdomain mdbox:/tmp/backup/ dsync(testuser@ubuntu-test.localdomain): Error: Can't delete mailbox INBOX: INBOX can't be deleted.
Try without mailbox_list_index=yes
Yes, after disabling list indexes it works.
With latest hg version it should work.
Hi Timo,
The "can't delete mailbox INBOX" error is gone now with changeset c077ca9bc306 and it's working successfully on the account from yesterday where it also worked with mailbox_list_index=no.
However using a different account (more mail and mailboxes) I'm seeing dbox corruption errors. I have tested with mailbox_list_index=yes and no and it's the same for both. So this might be unrelated to this setting. Attached are logs from doveadm backup runs. First to an empty directory and 2 consecutive runs.
Thanks, e-frog
On 14.03.2012 20:33, wrote e-frog:
On 14.03.2012 14:41, wrote Timo Sirainen:
With latest hg version it should work.
Hi Timo,
The "can't delete mailbox INBOX" error is gone now with changeset c077ca9bc306 and it's working successfully on the account from yesterday where it also worked with mailbox_list_index=no.
However using a different account (more mail and mailboxes) I'm seeing dbox corruption errors. I have tested with mailbox_list_index=yes and no and it's the same for both. So this might be unrelated to this setting. Attached are logs from doveadm backup runs. First to an empty directory and 2 consecutive runs.
Further testing (now with 2.1.2) shows it only seems to work for a single mailbox. e.g.
doveadm -v backup -u testuser@ubuntu-test.localdomain -m 'INBOX' mdbox:/tmp/backup dsync(testuser@ubuntu-test.localdomain): Info: INBOX: only in source (guid=c63f581c030b774b572a0000ec8d17cd)
-> no errors
This works for every single mailbox in this account. The errors only occur without -m 'mailbox'.
Using maildir as destination format however seems to work fine on the whole account.
doveadm -v backup -u testuser@ubuntu-test.localdomain maildir:/tmp/backup
-> no errors
Thanks, e-frog
participants (2)
-
e-frog
-
Timo Sirainen