Unable to migrate content from AEM 6.1 to 6.5

If a stack trace occurs during the migration of content from Adobe Experience Manager v6.1 to v6.5, it is recommended to first migrate to AEM v6.3, then proceed to v6.5.

Description description

Environment

Adobe Experience Manager 6.5

Issue/Symptoms

The following stack trace is thrown during AEM v6.1 to v6.5 content migration:

C:\aem\aem61\crx-quickstart-v65-unpack\opt\extensions>java -jar crx2oak.jar segment-old:C:/aem/aem61/crx-quickstart-v61/repository/segmentstore/ C:/aem/aem61/crx-quickstart/repository/datastore


29.04.2022 17:06:50.038 INFO   c.a.g.c.CRX2Oak: started with args: segment-old:C:/aem/aem61/crx-quickstart-v61/repository/segmentstore/, C:/aem/aem61/crx-quickstart/repository/datastore


29.04.2022 17:06:50.107 INFO   c.a.g.c.c.VersionPrinter: CRX2Oak version: 1.10.0 (STANDALONE mode)


29.04.2022 17:06:50.276 INFO   c.a.g.c.c.VersionPrinter: /C:/aem/aem61/crx-quickstart-v65-unpack/opt/extensions/crx2oak.jar (version: 1.10, checksum: 8582adb2b4f999866d4b24a48364295c4665e1ab9ea164460e122f555dd3e6421a81f55e74b45d72b86777079b7e48a29e2b8e6703c2a31d3b772e115743bfa5)


29.04.2022 17:06:50.276 INFO   c.a.g.c.p.ProfileHandler: Applying partly the command line (before loading a profile): segment-old:C:/aem/aem61/crx-quickstart-v61/repository/segmentstore/, C:/aem/aem61/crx-quickstart/repository/datastore


29.04.2022 17:06:50.295 INFO   c.a.g.c.p.ProfileHandler: The following template tags has been defined: {}


29.04.2022 17:06:50.295 INFO   c.a.g.c.p.ProfileHandler: The command line (after loading a profile): segment-old:C:/aem/aem61/crx-quickstart-v61/repository/segmentstore/, C:/aem/aem61/crx-quickstart/repository/datastore


29.04.2022 17:06:50.295 INFO   c.a.g.c.c.MigrationSpecGenerator: The effective command line for migration: segment-old:C:/aem/aem61/crx-quickstart-v61/repository/segmentstore/, C:/aem/aem61/crx-quickstart/repository/datastore


Exception in thread "main" java.lang.IllegalStateException


        at com.google.common.base.Preconditions.checkState(Preconditions.java:429)


        at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.<init>(FileStore.java:403)


        at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.<init>(FileStore.java:92)


        at org.apache.jackrabbit.oak.plugins.segment.file.FileStore$ReadOnlyStore.<init>(FileStore.java:1449)


        at org.apache.jackrabbit.oak.plugins.segment.file.FileStore$ReadOnlyStore.<init>(FileStore.java:1446)


        at org.apache.jackrabbit.oak.plugins.segment.file.FileStore$Builder.buildReadOnly(FileStore.java:393)


        at org.apache.jackrabbit.oak.upgrade.cli.node.SegmentFactory.hasExternalBlobReferences(SegmentFactory.java:94)


        at org.apache.jackrabbit.oak.upgrade.cli.node.StoreFactory.hasExternalBlobReferences(StoreFactory.java:67)


        at org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments.srcUsesEmbeddedDatastore(StoreArguments.java:115)


        at com.adobe.granite.crx2oak.oak.OakUtils.updateSecondaryHeavyOakTopics(OakUtils.java:60)


        at com.adobe.granite.crx2oak.oak.OakUtils.updateAllOakTopics(OakUtils.java:41)


        at com.adobe.granite.crx2oak.core.MigrationSpecGenerator.preprocess(MigrationSpecGenerator.java:48)


        at com.adobe.granite.crx2oak.pipeline.InputAggregatingComponent.process(InputAggregatingComponent.java:38)


        at com.adobe.granite.crx2oak.pipeline.Pipeline.run(Pipeline.java:103)


        at com.adobe.granite.crx2oak.CRX2Oak.run(CRX2Oak.java:66)


        at com.adobe.granite.crx2oak.CRX2Oak.main(CRX2Oak.java:51)

Resolution resolution

Consider upgrading to AEM v6.3 initially, followed by an upgrade to v6.5.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f