Highlighted

Problems migrating from CQ5.6 to AEM6.1

tuduce

30-10-2015

Hi everybody,

I'm trying to migrate a CQ5.6 authoring to AEM6.1. I followed the steps described at https://docs.adobe.com/docs/en/aem/6-1/deploy/upgrade.html

My repo fails to migrate to OAK TarMK. I get the following error on the console

$ java -Xmx4096m -XX:MaxPermSize=2048M -jar aem6-author-8000.jar -v -x crx2oak -xargs -- -o migrate
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=2048M; support was removed in 8.0
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 3641 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename '/home/cq5/aem6-author-8000.jar'
Preparing to execute extension /home/cq5/crx-quickstart/opt/extensions/crx2oak-quickstart-extension.jar
30.10.2015 15:48:47.559 *INFO*  [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:151  Launched crx2oak-quickstart-extension.jar, version 1.0.14, SHA1 checksum 86838d4c6aca942911cbfa97e37ef46fcedf7177.
30.10.2015 15:48:47.568 *INFO*  [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:186  Using crx2oak.jar from /home/cq5/crx-quickstart/opt/helpers/crx2oak/crx2oak.jar
30.10.2015 15:48:47.681 *INFO*  [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:188  crx2oak version 1.2.10, SHA-1 checksum dbf845a76cb8eb0d05cce4494500dca75c381dce
30.10.2015 15:48:47.683 *INFO*  [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:262  Preparing to migrate repository to TarMK
30.10.2015 15:48:47.693 *INFO*  [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:320  Starting repository migration. Please monitor the progress in the upgrade.log file.
30.10.2015 15:48:54.434 *ERROR* [com.adobe.granite.crx2oak.quickstart.extension.Main] Main.java:352  Repository migration failed.
java.lang.reflect.InvocationTargetException: null
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_65]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_65]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_65]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_65]
        at com.adobe.granite.crx2oak.quickstart.extension.Main.<init>(Main.java:321) [crx2oak-quickstart-extension.jar:1.0.14]
        at com.adobe.granite.crx2oak.quickstart.extension.Main.main(Main.java:392) [crx2oak-quickstart-extension.jar:1.0.14]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_65]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_65]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_65]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_65]
        at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:862) [aem6-author-8000.jar:0.0.0.0_0_0_6_1_]
        at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:940) [aem6-author-8000.jar:0.0.0.0_0_0_6_1_]
Caused by: org.apache.jackrabbit.core.config.ConfigurationException: Workspace directory already exists:
        at org.apache.jackrabbit.core.config.RepositoryConfig.internalCreateWorkspaceConfig(RepositoryConfig.java:737) ~[na:na]
        at org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:871) ~[na:na]
        at org.apache.jackrabbit.core.RepositoryImpl.createWorkspace(RepositoryImpl.java:742) ~[na:na]
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:545) ~[na:na]
        at com.day.crx.core.CRXRepositoryImpl.initStartupWorkspaces(CRXRepositoryImpl.java:452) ~[na:na]
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:326) ~[na:na]
        at com.day.crx.core.CRXRepositoryImpl.<init>(CRXRepositoryImpl.java:307) ~[na:na]
        at com.day.crx.core.CRXRepositoryImpl.create(CRXRepositoryImpl.java:262) ~[na:na]
        at com.day.crx.core.CRXRepositoryImpl.create(CRXRepositoryImpl.java:245) ~[na:na]
        at com.adobe.granite.crx2oak.CRX2Oak.createRepContext(CRX2Oak.java:425) ~[na:na]
        at com.adobe.granite.crx2oak.CRX2Oak.crx2oak(CRX2Oak.java:290) ~[na:na]
        at com.adobe.granite.crx2oak.CRX2Oak.main(CRX2Oak.java:256) ~[na:na]
        ... 12 common frames omitted
MAIN process: shutdown hook
MAIN process: exiting

upgrade.log is attached. The message there is

30.10.2015 15:48:54.432 *ERROR* [org.apache.jackrabbit.core.RepositoryImpl] RepositoryImpl.java:368  failed to start Repository: Workspace directory already exists:
org.apache.jackrabbit.core.config.ConfigurationException: Workspace directory already exists:


...yes... I know it exists, it's the old workspace that needs to be upgraded... Why is this a problem and how to solve it?!? Any help is greatly appreciated.

 

Best regards,

Cristian.

Replies

Highlighted
Highlighted

tuduce

31-10-2015

Hi,

I don't have the output anymore... It went away with the step 9 from "Preparing the source instance".

 

Best regards,

Cristian.

Highlighted