AEM 6.0/6.5 oak-run and migration issue
Hi All,
I am trying to migrate the content from AEM6.0 (Oak 1.0.22) to AEM 6.5 (Oak 1.10.2). Here's what I did,
install a fresh copy of AEM 6.5 (/apps/aem65/crx-quickstart/repository)
get a copy of the current repository in version 6.0 (/apps/aem60/crx-quickstart/repository)
Run the command
java -Xmx4096m -jar crx2oak-1.8.10-all-in-one.jar segment-old:/apps/aem60/crx-quickstart/repository /apps/aem65/crx-quickstart/repository --datastore=/apps/aem65/crx-quickstart/repository/datastore > ~cms/aem-migration.txt &
It was successful. The size is down from 62G to 54G, probably because of the different formats.
Now trying to start up AEM 6.5
java -server -Xms1024m -Xmx2048m -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=2048m -Djavax.net.ssl.trustStore=/apps/aem65/crx-quickstart/ssl/trusted.keystore -Djava.awt.headless=true -Xverify:none -noverify -Dsling.run.modes=author,crx3,crx3tar -jar crx-quickstart/app/cq-quickstart-6.5.0-standalone-quickstart.jar start -c crx-quickstart -i launchpad -p 4502 -Dsling.properties=conf/sling.properties
It fails when going to the author instance URL, throwing an "authentication service missing" error. So I follow the most popular suggestion from the community, deleting the index folder under repository and restart the process, no luck.
Then another suggestion is to look into the original segmentstore to see if it's corrupted. So I ran the command,
java -jar oak-run-1.0.22.jar check --bin=-1 /apps/aem60/crx-quickstart/repository/segmentstore/
Now I get:
Apache Jackrabbit Oak 1.0.22
Exception in thread "main" java.lang.IllegalArgumentException: No enum constant org.apache.jackrabbit.oak.run.Main.Mode.CHECK
at java.lang.Enum.valueOf(Enum.java:238)
at org.apache.jackrabbit.oak.run.Main$Mode.valueOf(Main.java:886)
at org.apache.jackrabbit.oak.run.Main.main(Main.java:112)
Can someone please help?
Thanks!
References:
https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-16457.html?lang=de-DE
Kevin