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

Restore a backup from Cloud fails with Illegal base64 character 2e

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Summary

      Customer generates a backup from Cloud and tries to import into an OD release, but it fails.

      Steps to Reproduce:

      • Import a backup from Cloud to a Confluence 6.0.0-OD (Cog Icon > General Configuration > Backup and Restore), it doesn't matter if it's in a brand new instance or the current one.

      Expected Results:

      • Import is successful

      Actual Results:

      • Import fails with the following stack-trace relating to a certain jobRunnerKey:
      2016-01-14 14:51:51,767 ERROR [Long running task: Importing data] [confluence.importexport.xmlimport.DefaultImportProcessor] persist Error while saving object: Imported[com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJob] [Id[id]=26181634, Property[jobId]=com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerManager.5308417, Property[nextRunTime]=2016-01-13 17:40:53.202, Property[version]=236, Property[jobRunnerKey]=com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerManager, Property[rawParameters]=java.io.BufferedInputStream@15d47d4, Property[schedType]=I, Property[cronExpression]=, Property[cronTimeZone]=, Property[intervalFirstRunTime]=2016-01-04 01:33:48.884, Property[intervalMillis]=3600000]
       -- referer: http://localhost:8600/confluence/admin/restore-local-file.action | url: /confluence/longrunningtaskxml.action | traceId: 7055808d4953e33d | userName: admin | action: longrunningtaskxml 
      

      Root Cause

      There's a cronjob that's causing the issue here:

      <object class="SchedulerClusteredJob" package="com.atlassian.confluence.impl.schedule.caesium">
      <id name="id">26181634</id>
      <property name="jobId"><![CDATA[com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerManager.5308417]]></property>
      <property name="nextRunTime">2016-01-13 17:40:53.202</property>
      <property name="version">236</property>
      <property name="jobRunnerKey"><![CDATA[com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerManager]]></property>
      <property name="rawParameters">java.io.BufferedInputStream@15d47d4</property>
      <property name="schedType">I</property>
      <property name="cronExpression"/><property name="cronTimeZone"/><property name="intervalFirstRunTime">2016-01-04 01:33:48.884</property>
      <property name="intervalMillis">3600000</property>
      </object>
      

      Workaround

      Remove the problematic cronjob(s) from entities.xml:

      1. Extract the files from the backup archive, and open entities.xml
      2. Search entities.xml for objects with jobRunnerKey com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerManager and remove them (from <object> to </object>.
      3. Zip up all files that were extracted from the backup, taking care not to include the enclosing folder (as described here)
      4. Import the new backup archive into a fresh Confluence instance

      Attachments

        Issue Links

          Activity

            People

              btom1 Brian
              wzanchet William Zanchet (Inactive)
              Votes:
              14 Vote for this issue
              Watchers:
              32 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: