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]
Solved! Go to Solution.
Views
Replies
Total Likes
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
Hello @MJ2023 ,
Please follow this solution that discussed in this thread, https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/the-quot-503-authenticator...
You need to delete this file (org.apache.sling.jcr.repoinit.RepositoryInitializer~my-project.cfg.json) from your project.
My project does not have org.apache.sling.jcr.repoinit.RepositoryInitializer configs
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
Yes parent node primary time updated to sling:orderedFolder as nt:folder was not allowing to child nodes to be modify previously
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
Views
Likes
Replies