upgrade using crx2oak | Community
Skip to main content
Level 4
Aug 25, 2016 7:35 AM UTC
Solved

upgrade using crx2oak

I just want to move repository from CRX1 (cq5.56) to CRX2 (cq6.1) with the help of oak jar.

I tried this command:

 java -jar .\crx2oak-1.0.54-standalone.jar C:\Users\jangid\Desktop\aem 6.1\newauthor\CQ-Aut
hor\crx-quickstart\repository C:\Users\jangid\Desktop\aem 6.1\author\crx-quickstart\repository \--include-path=/ --exclude-path=/tmp --merge-path=/content

 

The following error occurred.

Too much node store arguments: [SEGMENT[C:\Users\jangid\Desktop\aem], SEGMENT[6.1\newauthor\CQ-Author\crx-quickstart\r
ository], SEGMENT[C:\Users\jangid\Desktop\aem], SEGMENT[6.1\author\crx-quickstart\repository], SEGMENT[\--include-path
]]

 

 

What to do next?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ogillAccepted solution
Employee
Aug 25, 2016 3:25 PM UTC

You also have a typo "--include-path" it should be --include-paths the same is true for your --exclude-path and --merge-path parameters, you are missing the trailing "s"   I have used the below command in the past (for 6.2 migration). As feike mentioned, download the latest version of crx2oak.

 

java -Dlogback.configurationFile=${LOG_CONFIGURATION} \
     -Xmx10g \
     -jar crx2oak-1.4.2-standalone.jar \
     ${SOURCE_REPOSITORY} \
     ${TARGET_REPOSITORY} \
     --include-paths=/content \
     --datastore ${DATASTORE} \
     --copy-versions=true \
     --copy-orphaned-versions=false \
     --copy-binaries

5 replies

Gaurav0669
New Participant
Jun 29, 2018 5:13 PM UTC

Also in your case you are having the folder name as "aem 6.1". Mind the space between aem and 6.1.

Translate
Gaurav0669
New Participant
Jun 29, 2018 5:08 PM UTC

Hi,

I know its too late to reply but as I too faced the same sort of issue while migrating the repos, so thought of sharing how I resolved the issue and what was the actual issue here.

As you mentioned that you are getting the below error,

Too much node store arguments: [SEGMENT[C:\Users\jangid\Desktop\aem], SEGMENT[6.1\newauthor\CQ-Author\crx-quickstart\r

ository], SEGMENT[C:\Users\jangid\Desktop\aem], SEGMENT[6.1\author\crx-quickstart\repository], SEGMENT[\--include-path

]],

Here you can see that there too many arguments such as:

[SEGMENT[C:\Users\jangid\Desktop\aem]

SEGMENT[6.1\newauthor\CQ-Author\crx-quickstart\r

ository]

SEGMENT[C:\Users\jangid\Desktop\aem]

SEGMENT[6.1\author\crx-quickstart\repository],

That is mainly because you are having spaces between the folder names, that is why the command is failing by giving too much node store arguments error.

Moreover, giving the include-path=/content doesn't cause any error. I have tried with the same and it ran successfully for me.

Translate
kautuk_sahni
Employee
Aug 26, 2016 6:51 AM UTC

Adding Documentation link,

Link:- https://docs.adobe.com/docs/en/aem/6-1/deploy/upgrade/using-crx2oak.html

//This documentation covers:-

- Introduction
- Migration Use Cases
- Features
- Parameters
- Debugging

~kautuk

Translate
Kautuk Sahni
ogillAccepted solution
Employee
Aug 25, 2016 3:25 PM UTC

You also have a typo "--include-path" it should be --include-paths the same is true for your --exclude-path and --merge-path parameters, you are missing the trailing "s"   I have used the below command in the past (for 6.2 migration). As feike mentioned, download the latest version of crx2oak.

 

java -Dlogback.configurationFile=${LOG_CONFIGURATION} \
     -Xmx10g \
     -jar crx2oak-1.4.2-standalone.jar \
     ${SOURCE_REPOSITORY} \
     ${TARGET_REPOSITORY} \
     --include-paths=/content \
     --datastore ${DATASTORE} \
     --copy-versions=true \
     --copy-orphaned-versions=false \
     --copy-binaries
Translate
Feike_Visser1
Employee
Aug 25, 2016 7:55 AM UTC

Firstly I would try with a newer version of crx2oak:

https://repo.adobe.com/nexus/content/groups/public/com/adobe/granite/crx2oak/

Translate