Skip to main content
Level 2
Oct 16, 2015 2:29 AM UTC
Solved

upgrading from CQ5.5 to AEM 6.1: Privilege definition with name 'crx:replicate' already exists.

I am facing an issue when upgrading from CQ5.5 to AEM 6.1 .

 

I have already deleted the index files and am able to regenerate them when I run the migrate command . 

java -Xmx4096m -XX:MaxPermSize=2048M -jar aem-quickstart-6.1.0.jar -v -x crx2oak -xargs -- -o migrate

 

However, I see the following error in the console (excerpt below), mainly the access privilege error:

 
  1. Privilege definition with name 'crx:re plicate' already exists.

  

Stack Excerpt:

 
  1. 14.09.2015 19:22:09.171 *ERROR* [com.adobe.granite.crx2oak.quickstart.extension.
  2. Main] Main.java:352 Repository migration failed. java.lang.reflect.InvocationTargetException: null
  3. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.
  4. 0_75]
  5. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.
  6. 0_75]
  7. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:
  8. 1.7.0_75]
  9. at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_75]
  10. at com.adobe.granite.crx2oak.quickstart.extension.Main.<init>(Main.java:
  11. 321) [crx2oak-quickstart-extension.jar:1.0.14]
  12. at com.adobe.granite.crx2oak.quickstart.extension.Main.main(Main.java:39
  13. 2) [crx2oak-quickstart-extension.jar:1.0.14]
  14. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.
  15. 0_75]
  16. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.
  17. 0_75]
  18. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:
  19. 1.7.0_75]
  20. at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_75]
  21. at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:862) [ae
  22. m-quickstart-6.1.0.jar:0.0.0.0_0_0_6_1_]
  23. at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:940) [aem-
  24. quickstart-6.1.0.jar:0.0.0.0_0_0_6_1_]
  25. Caused by: javax.jcr.RepositoryException: Failed to copy content
  26. at org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copy(RepositoryUp
  27. grade.java:335) ~[na:na]
  28. at com.adobe.granite.crx2oak.CRX2Oak.crx2oak(CRX2Oak.java:393) ~[na:na]
  29. at com.adobe.granite.crx2oak.CRX2Oak.crx2oak(CRX2Oak.java:303) ~[na:na]
  30. at com.adobe.granite.crx2oak.CRX2Oak.main(CRX2Oak.java:256) ~[na:na]
  31. ... 12 common frames omitted
  32. Caused by: javax.jcr.RepositoryException: Privilege definition with name 'crx:re plicate' already exists.
  33. at org.apache.jackrabbit.oak.security.privilege.PrivilegeDefinitionWrite
  34. r.writeDefinitions(PrivilegeDefinitionWriter.java:106) ~[na:na]
  35. at org.apache.jackrabbit.oak.security.privilege.PrivilegeDefinitionWrite
  36. r.writeDefinition(PrivilegeDefinitionWriter.java:67) ~[na:na]
  37. at org.apache.jackrabbit.oak.security.privilege.PrivilegeManagerImpl.reg
  38. isterPrivilege(PrivilegeManagerImpl.java:86) ~[na:na]
  39. at org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copyCustomPrivile
  40. ges(RepositoryUpgrade.java:496) ~[na:na]
  41. at org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copy(RepositoryUp
  42. grade.java:283) ~[na:na]
  43. ... 15 common frames omitted

 

Any help in resolving is appreciated.

thanks,

PVR

PS:  I have also tried hardcoding the datastore path for windows (full absolute path) as mentioned in : https://docs.adobe.com/docs/en/aem/6-1/release-notes/known-issues.html#Known%20Issues

to no use !

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:29 AM UTC

Sounds like when you upgraded to 5.5 [1] might not tested your application correctly.  Engage with official support channel so that your history of instance can be discussed to arrive for possible solution.

[1]   https://helpx.adobe.com/experience-manager/kb/replication-privileges-missing-after-upgrade-to-cq-5-5.html

2 replies

pvr_reddyAuthor
Level 2
Oct 16, 2015 2:29 AM UTC

@Sham,

 

There have not been any replication issues it the current CQ 5.5 instance after the upgrade from 5.4.

Also, above error on "crx:replicate" being already present is not the same as the issue mentioned in the helpx link you have given.

The AEM6.1 migration seems to want to write a newer privileges to the nodes and is not able to do so due the attributes already being present.

 

Please check the given stack trace again and advise.

 

thanks

pvr.

Translate
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:29 AM UTC

Sounds like when you upgraded to 5.5 [1] might not tested your application correctly.  Engage with official support channel so that your history of instance can be discussed to arrive for possible solution.

[1]   https://helpx.adobe.com/experience-manager/kb/replication-privileges-missing-after-upgrade-to-cq-5-5.html

Translate