Details
-
Bug
-
Resolution: Fixed
-
High
-
6.0.0-OD-2016.01.1-0003, 6.0.0-OD-2016.01.1-0006
-
None
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:
- Extract the files from the backup archive, and open entities.xml
- Search entities.xml for objects with jobRunnerKey com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerManager and remove them (from <object> to </object>.
- Zip up all files that were extracted from the backup, taking care not to include the enclosing folder (as described here)
- Import the new backup archive into a fresh Confluence instance
Attachments
Issue Links
- relates 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
- included in
-
CPU-234 Confluence 6.0.0-OD-2016.04.1-0001
-
CPU-247 Confluence 6.0.0-OD-2016.04.1-0003
-
CPU-250 Confluence 6.0.0-OD-2016.04.1-0004