AEM cloud stage deployment failing with error javax.jcr.RepositoryException: Applying repoinit operation failed despite retry | Community
Skip to main content
Level 2
July 7, 2023
Solved

AEM cloud stage deployment failing with error javax.jcr.RepositoryException: Applying repoinit operation failed despite retry

  • July 7, 2023
  • 3 replies
  • 1558 views

I am working on aem cloud migration project . Cloud dev deployment gets success . but somehow I am getting build failure error for cloud stage deployment 

 

javax.jcr.RepositoryException: Applying repoinit operation failed despite retry; set loglevel to DEBUG to see all exceptions. Last exception message was: Session.save failed: javax.jcr.nodetype.ConstraintViolationException: OakConstraint0001: /etc/acs-commons[[nt:folder, rep:AccessControllable]]: No matching definition found for child node redirect-maps with effective type [nt:unstructured]

 

 

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 Nilesh_Mali

Verify the permissions under

<env>/ui#/aem/security/permissions.html/principal/aem-acs-commons

Make sure correct permissions are allowed for stage environment 

 

And do the below changes

  • Go to the /etc/acs-commons check its node type it should be nt:folder.
  • Locate to the child node definition to the rep:AccessControllable property
  • Modify the property value: In the property editor, find the rep:childNodeDefinitions property value. This property defines the child node definitions for the node.
  • Add the child node definition for redirect-maps: In the rep:childNodeDefinitions property, add a new child node definition for redirect-maps with the effective type of nt:unstructured.
  • Make sure the definition is correctly formatted and follows the property syntax conventions.

3 replies

Sady_Rifat
Community Advisor
Community Advisor
July 7, 2023

Hello @mj2023 ,

Please follow this solution that discussed in this thread, https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/the-quot-503-authenticator-support-missing-quot-nightmare/m-p/599076#M149870 

You need to delete this file (org.apache.sling.jcr.repoinit.RepositoryInitializer~my-project.cfg.json) from your project. 

MJ2023Author
Level 2
July 7, 2023

My project does not have  org.apache.sling.jcr.repoinit.RepositoryInitializer configs

aanchal-sikka
Community Advisor
Community Advisor
July 7, 2023

@mj2023 

 

It must be happening due to a jcr:primaryType mismatch.

Please check the jcr:primaryType  of /etc/acs-commons. It might be of nt:folder type. We might be trying to add a child node, which cannot be added under the nt:folder.

 

Please compare the node structure in server against a system that working well. 

 

Solution: please assure the parent nodes are of expected primary types

Aanchal Sikka
MJ2023Author
Level 2
July 10, 2023

Yes parent node primary time updated to sling:orderedFolder as nt:folder was not allowing to child nodes to be modify previously 

Nilesh_Mali
Nilesh_MaliAccepted solution
Level 3
July 7, 2023

Verify the permissions under

<env>/ui#/aem/security/permissions.html/principal/aem-acs-commons

Make sure correct permissions are allowed for stage environment 

 

And do the below changes

  • Go to the /etc/acs-commons check its node type it should be nt:folder.
  • Locate to the child node definition to the rep:AccessControllable property
  • Modify the property value: In the property editor, find the rep:childNodeDefinitions property value. This property defines the child node definitions for the node.
  • Add the child node definition for redirect-maps: In the rep:childNodeDefinitions property, add a new child node definition for redirect-maps with the effective type of nt:unstructured.
  • Make sure the definition is correctly formatted and follows the property syntax conventions.