Not able to take complete backup: Difference between revisions
(Created page with "===<h1>Not able to take complete backup</h1>=== <hr> <br> <h2>Problem:</h2> Not able to take complete backup. Error in logs - <pre> com.zimbra.common.service.ServiceExcepti...") |
No edit summary |
||
Line 5: | Line 5: | ||
<h2>Problem:</h2> | <h2>Problem:</h2> | ||
Not able to take complete backup. | Not able to take complete backup and getting following exception in mailbox.log file. | ||
com.zimbra.common.service.ServiceException: system failure: unable to read metadata for account ff0cf615-6749-4e94-aa53-548cd8dba365 backup full-20161005.025406.465 | |||
ExceptionId:qtp509886383-791257:https://127.0.0.1:7071/service/admin/soap/BackupRequest:1475690422338:c777d25a962adbb8 | |||
com.zimbra.common.service.ServiceException: system failure: unable to read metadata for account ff0cf615- | Code:service.FAILURE | ||
ExceptionId:qtp509886383-791257:https://127.0.0.1:7071/service/admin/soap/BackupRequest:1475690422338:c777d25a962adbb8 | at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:260) | ||
Code:service.FAILURE | at com.zimbra.cs.service.backup.Backup.handleNetworkRequest(Backup.java:160) | ||
< | at com.zimbra.cs.service.NetworkDocumentHandler.handle(NetworkDocumentHandler.java:23) | ||
at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:581) | |||
at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:435) | |||
at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:266) | |||
... 52 more | |||
Caused by: com.zimbra.common.service.ServiceException: system failure: Unable to parse XML file /backup/sessions/full-20161005.025406.465/accounts/ff0/cf6/ff0cf615-6749-4e94-aa53-548cd8dba365/meta.xml | |||
ExceptionId:qtp509886383-791257:https://127.0.0.1:7071/service/admin/soap/BackupRequest:1475690422338:c777d25a962adbb8 | |||
Code:service.FAILURE | |||
at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:260) | |||
at com.zimbra.cs.backup.XmlMeta.readAccountBackup(XmlMeta.java:409) | |||
at com.zimbra.cs.backup.FileBackupTarget$RestoreAcctSession.<init>(FileBackupTarget.java:2020) | |||
... 56 more | |||
<h2>Solution</h2> | <h2>Solution</h2> | ||
1. Go to | '''1).''' Go to configured backup path (default is - /opt/zimbra/backup) | ||
2. Open accounts.xml in your text editor, and remember the two lines related to that account. For example, if the original entry is like so : | '''2).''' Open ''accounts.xml'' in your text editor, and remember the two lines related to that account.<br> | ||
For example, if the original entry is like so : | |||
<account zimbraId="0e98d0df-0c92-48d2-bd01-a01027504d8a" email="user@example.com" latestFullBackupLabel="full-20130919.102126.721"> | <account zimbraId="0e98d0df-0c92-48d2-bd01-a01027504d8a" email="user@example.com" latestFullBackupLabel="full-20130919.102126.721"> | ||
</account> | </account> | ||
<account zimbraId=" | <code style="color: red"><account zimbraId="ff0cf615-6749-4e94-aa53-548cd8dba365" email="issue@example.com" latestFullBackupLabel="full-20130919.102126.721"></code> | ||
</account> | <code style="color: red"></account></code> | ||
<account zimbraId="c0263897-e300-4836-9da3-4356dbe2498e" email="user2@example.com latestFullBackupLabel="full-20130919.102126.721"> | <account zimbraId="c0263897-e300-4836-9da3-4356dbe2498e" email="user2@example.com latestFullBackupLabel="full-20130919.102126.721"> | ||
</account | </account> | ||
3. Then re-run backup | Remove the lines pertaining to that account. In our example, it'll be 'issue@example.com'. So we remove both, the <account -info- > and </account> lines and remaining entries will looks like following: | ||
<account zimbraId="0e98d0df-0c92-48d2-bd01-a01027504d8a" email="user@example.com" latestFullBackupLabel="full-20130919.102126.721"> | |||
</account> | |||
<account zimbraId="c0263897-e300-4836-9da3-4356dbe2498e" email="user2@example.com latestFullBackupLabel="full-20130919.102126.721"> | |||
</account> | |||
'''3).''' Then re-run backup | |||
zmbackup -f -a -all | zmbackup -f -a -all | ||
Line 43: | Line 53: | ||
Submitted by: Sourabh Bhushan | |||
Revision as of 14:08, 20 August 2017
Not able to take complete backup
Problem:
Not able to take complete backup and getting following exception in mailbox.log file.
com.zimbra.common.service.ServiceException: system failure: unable to read metadata for account ff0cf615-6749-4e94-aa53-548cd8dba365 backup full-20161005.025406.465 ExceptionId:qtp509886383-791257:https://127.0.0.1:7071/service/admin/soap/BackupRequest:1475690422338:c777d25a962adbb8 Code:service.FAILURE at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:260) at com.zimbra.cs.service.backup.Backup.handleNetworkRequest(Backup.java:160) at com.zimbra.cs.service.NetworkDocumentHandler.handle(NetworkDocumentHandler.java:23) at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:581) at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:435) at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:266) ... 52 more Caused by: com.zimbra.common.service.ServiceException: system failure: Unable to parse XML file /backup/sessions/full-20161005.025406.465/accounts/ff0/cf6/ff0cf615-6749-4e94-aa53-548cd8dba365/meta.xml ExceptionId:qtp509886383-791257:https://127.0.0.1:7071/service/admin/soap/BackupRequest:1475690422338:c777d25a962adbb8 Code:service.FAILURE at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:260) at com.zimbra.cs.backup.XmlMeta.readAccountBackup(XmlMeta.java:409) at com.zimbra.cs.backup.FileBackupTarget$RestoreAcctSession.<init>(FileBackupTarget.java:2020) ... 56 more
Solution
1). Go to configured backup path (default is - /opt/zimbra/backup)
2). Open accounts.xml in your text editor, and remember the two lines related to that account.
For example, if the original entry is like so :
<account zimbraId="0e98d0df-0c92-48d2-bd01-a01027504d8a" email="user@example.com" latestFullBackupLabel="full-20130919.102126.721"> </account><account zimbraId="ff0cf615-6749-4e94-aa53-548cd8dba365" email="issue@example.com" latestFullBackupLabel="full-20130919.102126.721">
</account>
<account zimbraId="c0263897-e300-4836-9da3-4356dbe2498e" email="user2@example.com latestFullBackupLabel="full-20130919.102126.721"> </account>
Remove the lines pertaining to that account. In our example, it'll be 'issue@example.com'. So we remove both, the <account -info- > and </account> lines and remaining entries will looks like following:
<account zimbraId="0e98d0df-0c92-48d2-bd01-a01027504d8a" email="user@example.com" latestFullBackupLabel="full-20130919.102126.721"> </account> <account zimbraId="c0263897-e300-4836-9da3-4356dbe2498e" email="user2@example.com latestFullBackupLabel="full-20130919.102126.721"> </account>
3). Then re-run backup
zmbackup -f -a -all
Submitted by: Sourabh Bhushan