Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-9068

Confluence problem during import - export referenced attachment file it could not find in subsequent import immediately after export. using massive

    XMLWordPrintable

Details

    • Bug
    • Resolution: Support Request
    • Low
    • None
    • 2.5.4
    • None
    • Confluence 2.5.4 massive running on 2 nodes, Java 1.5

    Description

      Seems strange that during import it would be trying to get an attachment and fail for something we just exported. From atlassian_confluence.log:

      2007-08-01 12:34:24,808 WARN [Importing data task] [confluence.importexport.impl.DeferredOperations] reportOutstandingOperations uncompleted deferred operations waiting for:[class = com.atlassian.confluence.labels.Label, id = 1474561]
      2007-08-01 12:34:24,808 WARN [Importing data task] [confluence.importexport.impl.DeferredOperations] reportOutstandingOperations write the object of class com.atlassian.confluence.labels.Labelling with id 1507329
      2007-08-01 12:34:24,809 WARN [Importing data task] [confluence.importexport.impl.DeferredOperations] reportOutstandingOperations uncompleted deferred operations waiting for:[class = com.atlassian.confluence.labels.Labelling, id = 1507329]
      2007-08-01 12:34:24,809 WARN [Importing data task] [confluence.importexport.impl.DeferredOperations] reportOutstandingOperations add the object class = com.atlassian.confluence.labels.Labelling, id = 1507329 to the collection named labellings of class = com.atlassian.confluence.spaces.SpaceDescription, id = 851969
      2007-08-01 12:34:25,373 INFO [Importing data task] [atlassian.confluence.upgrade.HiLoIdRepairUpgradeTask] doUpgrade Beginning upgrade: HiLoIdRepairUpgradeTask
      2007-08-01 12:34:25,705 INFO [Importing data task] [atlassian.confluence.upgrade.HiLoIdRepairUpgradeTask] doUpgrade Setting new next_hi to 80
      2007-08-01 12:34:25,714 INFO [Importing data task] [atlassian.confluence.upgrade.HiLoIdRepairUpgradeTask] doUpgrade Completed database update: HiLoIdRepairUpgradeTask
      2007-08-01 12:34:25,833 ERROR [Importing data task] [persistence.dao.hibernate.AbstractHibernateAttachmentDao$IntraHibernateAttachmentCopier] copy There was a problem retrieving attachment 'Attachment: bobcat.jpeg v.1 (2588673)' from the data store. Skipping.
      – url: /admin/restore.action | userName: gsw8 | action: restore
      com.atlassian.confluence.pages.AttachmentDataNotFoundException: Problem while getting attachment stream (Attachment: bobcat.jpeg v.1 (2588673)) from file system
      at com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.getDataForAttachment(FileSystemAttachmentDataDao.java:75)
      at com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao$IntraHibernateAttachmentCopier.copy(AbstractHibernateAttachmentDao.java:452)
      at com.atlassian.confluence.importexport.impl.FileBackupImporter.importAttachments(FileBackupImporter.java:320)
      at com.atlassian.confluence.importexport.impl.FileBackupImporter.importEverything(FileBackupImporter.java:103)
      at com.atlassian.confluence.importexport.impl.BackupImporter.doImport(BackupImporter.java:92)
      at com.atlassian.confluence.importexport.impl.FileBackupImporter.doImport(FileBackupImporter.java:41)
      at com.atlassian.confluence.importexport.DefaultImportExportManager.importAs(DefaultImportExportManager.java:74)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
      at $Proxy49.importAs(Unknown Source)
      at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:42)
      at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.io.FileNotFoundException: /var/confluence/temp/import_08012007_123424/attachments-new/1966092/2588673 (No such file or directory)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:106)
      at com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.getDataForAttachment(FileSystemAttachmentDataDao.java:71)
      ... 20 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            6e54f9dce0da Gary Weaver
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: