mirror of
https://github.com/lucascbeyeler/zmbackup.git
synced 2026-04-25 07:05:55 +03:00
[GH-ISSUE #133] Issue while trying to restore mails #104
Labels
No labels
Bug Report
Enhancement
Enhancement
Feature Idea
Feature Idea
Not Implemented
Question
Question
Task
Wontfix
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zmbackup#104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dZZZr on GitHub (Jul 11, 2019).
Original GitHub issue: https://github.com/lucascbeyeler/zmbackup/issues/133
Originally assigned to: @lucascbeyeler on GitHub.
ISSUE TYPE
ENVIRONMENT VERSION
SUMMARY
STEPS TO REPRODUCE
zmbackup -f -d domain.pl
zmbackup -r -ldp full-20190711115424 info@domain.pl
zmbackup -r -m full-20190711115424 info@domain.pl
ACTUAL RESULTS
Restore mail process with session full-20190711115424 started at Thu Jul 11 12:32:22 CEST 2019Error during the restore process for account info@domain.pl. Error message below:info@domain.pl:
http: error: ConnectionError: ('Connection aborted.', timeout('The write operation timed out',)) while doing POST request to URL: https://192.168.1.215:7071/home/info@domain.pl/?fmt=tgz
Restore mail process with session full-20190711115424 completed at Thu Jul 11 12:32:54 CEST 2019
First, thanks for Your great work.
The issue occurs when restoring the mailbox. Zmbackup can restore some mails but at some point error occurs. It may be associated with polish national characters in mail title/file name.
I attached mailbox.log where You can find the error message:
2019-07-11 12:32:55,457 WARN [qtp1258084361-525:https:https://192.168.1.215:7071/home/info@domain.pl/?fmt=tgz] [name=zmbackup@somewhere.pl;mid=297;ip=192.168.1.215;port=48034;] misc - ArchiveFormatter addError:Early EOF: p
ath=Inbox/0000000468-Fwd_ rozliczenie pażdziernik.eml
com.zimbra.cs.service.formatter.FormatterServiceException: Early EOF
ExceptionId:qtp1258084361-525:https:https://192.168.1.215:7071/home/info@domain.pl/?fmt=tgz:1562841175457:aeaea4bb9b567bf4
When I'm using zmmailbox everything is OK.
zmmailbox -z -m info@domain.pl postRestURL "//?fmt=tgz&resolve=skip" /opt/zimbra/backup/full-20190711115424/info@domain.pl.tgz
Best regards,
mailbox.log
@ananiasfilho commented on GitHub (Jul 28, 2019):
The problem seems be python httpie timeout:
check this file:
if parallel (multiples restore)
github.com/Zmbackup/zmbackup@d83ab3efbc/project/lib/bash/ParallelAction.sh (L91)if single account
github.com/Zmbackup/zmbackup@d83ab3efbc/project/lib/bash/RestoreAction.sh (L24)both files have this line on restore funcion:
ERR=$((http --check-status --verify=no POST "$WEBPROTO://$MAILHOST:7071/home/$2/?fmt=tgz"\
try change it to
ERR=$((http --check-status --timeout 600 --verify=no POST "$WEBPROTO://$MAILHOST:7071/home/$2/?fmt=tgz"\
the option --timeout 600 (is to set timeout to 600s/10minute) if timeout continue, try a high value like 1800 (30 minutes) if backup size is big like 20-30 GB.
Please, give us a feedback about it!
@lucascbeyeler commented on GitHub (Dec 8, 2020):
Fixed - dropped httpie in favor of cURL