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

Confluence Cloud export into Server fails due to com.atlassian.confluence.api.model.people

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • None
    • 6.15.2
    • Site - Backup / Import
    • None

      Issue Summary

      Unable to restore Confluence Cloud Site Export to Confluence 6.15.2 due to this error: 

      Unable to complete import: Error while importing backup: com.atlassian.confluence.api.model.people.MigratedUser
      

      This is currently happening for all site exports.

      Environment

      Migrating from Confluence Cloud to Confluence Server

      Steps to Reproduce

      1. Create a site export from Confluence Cloud
      2. Import into Confluence Server

      Expected Results

      Restore completes

      Actual Results

      1. This seems to be occurring for any site export after April 24th, 2019

      The below exception is thrown in the atlassian-confluence.log file:

      2019-04-25 14:50:41,968 ERROR [Long running task: Importing data] [confluence.importexport.xmlimport.BackupImporter] importEntities Cannot import the entities: 
       -- url: /longrunningtaskxml.action | referer: http://localhost:8090/admin/restore.action?synchronous=false | traceId: d5700bb61e35e48b | userName: admin | action: longrunningtaskxml
      com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: com.atlassian.confluence.api.model.people.MigratedUser
      	at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImportInternal(DefaultXmlImporter.java:71)
      

      Workaround #1

      • Migrate through Space exports
        • This will not bring over your users from Cloud

      Workaround #2

      • This workaround should include your Cloud users
      • Remove all complete com.atlassian.confluence.api.model.people entries in the entities.xml file, zip the file back up including the exportDescriptor.properties, plugin-data, and attachments, then restore the backup.
        • Example entry:
          <object class="MigratedUser" package="com.atlassian.confluence.api.model.people">
          <id name="key"><![CDATA[8a7f80896a51628a016a55006f3a0059]]></id>
          <property name="username"><![CDATA[557057:05e42c55-b9a0-4f6a-a239-cac4f500a761]]></property>
          <property name="hashedUsername"><![CDATA[b259be919cf4d62ff34e82eefd735e61]]></property>
          <property name="accountId"><![CDATA[557057:05e42c55-b9a0-4f6a-a239-cac4f500a761]]></property>
          </object>
          

              stengali Sandeep Tengali
              dponzio Daniel Ponzio
              Votes:
              5 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: