Attachments inaccessible after importing XML backup
After importing data using the XML backup, accessing attachments returns a file not found error.
2010-05-26 19:30:04,981 INFO [Importing data task] [confluence.upgrade.upgradetask.DefaultSpaceContentUpgradeTask] doUpgrade Upgrade task complete. 2010-05-26 19:30:10,600 INFO [Importing data task] [confluence.importexport.actions.ImportLongRunningTask] runInternal Finished import. 2010-05-26 19:30:10,885 ERROR [Indexer: 10] [atlassian.confluence.pages.DefaultAttachmentManager] getAttachmentData Could not find data for attachment: Attachment: yourAttachment.doc v.1 (3538959) admin - java.io.FileNotFoundException: /var/opt/confluencehome/attachments/ver003/7/0/7/188/2/2938/3538959 (No such file or directory) -- referer: http://confluenceURL/setup/setup-restore-start.action | url: /setup/setup-restore.action | userName: anonymous | action: setup-restore
The following import-related error appears in the
2010-06-02 17:36:32,133 ERROR [Importing data task] [confluence.importexport.xmlimport.BackupImporter] restoreDirectory Couldn't restore directory from backup! src: /var/opt/confluencehome/temp/import_06022010_172924/attachments/3312722/3539065 dest: /var/opt/confluencehome/temp/import_06022010_172924/attachments-new/3312722/3539065 – referer: http://confluenceURL/admin/backup.action | url: /admin/restore-local-file.action | userName: admin | action: restore-local-file
Confluence does not have write permission to its
<confluence-home>/temp folder. It needs to unzip attachments from the old backup first before it can save them to the designated location.
- Make sure that Confluence has read and write access to its home directory.
Check the How to resolve missing attachments in Confluence utilities for physically lost attachments.