Expand my Community achievements bar.

SOLVED

Issue with content Migration using CRX2OAK (AEM 6.1 to AEM 6.5)

Avatar

Level 1

Hi,

 

We are trying to migrate our project from AEM 6.1 to AEM 6.5 using CRX2OAK migration tool. The version we are using - crx2oak-1.10.0-all-in-one.jar. The command we are using is as below.

 

java -Xmx1g -jar crx2oak-1.10.0-all-in-one.jar segment-old:<localdrive>/auth6.1/crx-quickstart/repository <localdrive>/auth6.5/crx-quickstart/repository --include-path=/ --exclude-path=/tmp --src-fileblobstore=<localdrive>/crx-quickstart/repository/datastore --fileblobstore=<localdrive>/crx-quickstart/repository/datastore --copy-versions=true --copy-orphaned-versions=true > migration_new.txt


We are getting following error. Please suggest.

 

02.02.2022 11:45:34.798 ERROR c.a.g.c.e.MigrationEngine: The internal error occurred during migration. The migration process has been aborted and it is not complete!
java.lang.RuntimeException: javax.jcr.RepositoryException: Failed to copy content
at com.google.common.io.Closer.rethrow(Closer.java:151)
at org.apache.jackrabbit.oak.upgrade.cli.OakUpgrade.migrate(OakUpgrade.java:81)
at com.adobe.granite.crx2oak.engine.MigrationEngine$2.doMigration(MigrationEngine.java:67)
at com.adobe.granite.crx2oak.engine.MigrationEngine.process(MigrationEngine.java:92)
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)
Caused by: javax.jcr.RepositoryException: Failed to copy content
at org.apache.jackrabbit.oak.upgrade.RepositorySidegrade.copy(RepositorySidegrade.java:287)
at org.apache.jackrabbit.oak.upgrade.cli.OakUpgrade.sidegrade(OakUpgrade.java:92)
at org.apache.jackrabbit.oak.upgrade.cli.OakUpgrade.migrate(OakUpgrade.java:78)
... 5 common frames omitted
Caused by: java.lang.IllegalArgumentException: 295053cdc1e4564514db8dd57a907933ab69ad046703ef1faac4a88c181f2cd8#23328
at org.apache.jackrabbit.oak.commons.StringUtils.getHexDigit(StringUtils.java:93)
at org.apache.jackrabbit.oak.commons.StringUtils.convertHexToBytes(StringUtils.java:72)

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,
It seems that you are trying to migrate whole repository by single command that causing the issue.

Try with small amount of content migration to verify that commands works or not.

 

For example : Command prompt script for the window

set source=D:/AEM/servers/author6.1/crx-quickstart/repository
set target=D:/AEM/servers/author6.5/crx-quickstart/repository

java -Xmx1g -jar crx2oak-1.10.0-all-in-one.jar --include-paths=/content/we-retail/language-masters/en segment-old:%source% %target% >> ContentMigration.log

 

/Brijesh Yadav

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi,
It seems that you are trying to migrate whole repository by single command that causing the issue.

Try with small amount of content migration to verify that commands works or not.

 

For example : Command prompt script for the window

set source=D:/AEM/servers/author6.1/crx-quickstart/repository
set target=D:/AEM/servers/author6.5/crx-quickstart/repository

java -Xmx1g -jar crx2oak-1.10.0-all-in-one.jar --include-paths=/content/we-retail/language-masters/en segment-old:%source% %target% >> ContentMigration.log

 

/Brijesh Yadav

Avatar

Community Advisor

@GopalV 

Given that you are migrating from 6.1, we need to do repository migration (to new version of Oak Segment Tar present in 6.3) - Usage of OOTB migration profile using --load-profile

More about this from official docs - https://experienceleague.adobe.com/docs/experience-manager-65/deploying/upgrading/in-place-upgrade.h...