upgrade using crx2oak | Community
Skip to main content
August 25, 2016
Solved

upgrade using crx2oak

  • August 25, 2016
  • 5 replies
  • 2861 views

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.
Best answer by ogill

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

Feike_Visser1
Adobe Employee
Adobe Employee
August 25, 2016

Firstly I would try with a newer version of crx2oak:

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

ogillAdobe EmployeeAccepted solution
Adobe Employee
August 25, 2016

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
kautuk_sahni
Community Manager
Community Manager
August 26, 2016

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

Kautuk Sahni
Gaurav0669
June 29, 2018

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.

Gaurav0669
June 29, 2018

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