Details
-
Bug
-
Resolution: Fixed
-
High
-
None
-
31
-
Description
NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.
Summary
Backup created from Cloud instance cannot be restore if it contains audit logs
Step to replicate:
- Ensure that there are entries in the Audit log. If there is no entries in the audit logs, try to make some modication to the user to create a few entries.
- Create a backup from Cloud
- Restore the backup to the latest OD version 6.0.0-OD-2016.06.1-0009
Expected Result
The backup successfully restore.
Observed Result
The backup fail to restored with error similar to the following:
2016-02-10 11:29:16,745 ERROR [Long running task: Importing data] [confluence.importexport.actions.ImportLongRunningTask] runInternal Failure during import -- referer: http://localhost:8090/admin/restore-local-file.action | url: /longrunningtaskxml.action | traceId: a172a52c7cd939d9 | userName: admin | action: longrunningtaskxml com.atlassian.confluence.importexport.ImportExportException: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: For input string: "2016-02-08 19:54:35.123" at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:400)
The issue seem to be cause by entries from auditrecord table.
Workaround 1
Manually delete all the object related to com.atlassian.confluence.impl.audit package from the entities.xml in the backup
Workaround 2
Create a support ticket in support.atlassian.com to request our Cloud Support Engineer to create a backup without the data from the following table since they have references against each other:
- audit_affected_object
- audit_changed_value
- auditrecord
Attachments
Issue Links
- is related to
-
CONFCLOUD-40459 Restore a backup from Cloud fails with Illegal base64 character 2e
- Closed
-
CONFSERVER-40738 Restore from Cloud fails with com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: For input string:
- Closed