AEM Cloud Manager deployment fails with OakConstraint0029 due to incorrect node type in repoinit
This article explains how to resolve deployment pipeline failures in Adobe Experience Manager (AEM) Cloud Manager when the productTest step fails with OakConstraint0029 due to misconfigured node types for /home/users in repoinit.
Description description
Environment
Adobe Experience Manager (AEM) Cloud Manager
Issue/Symptoms
- The deployment pipeline in AEM Cloud Manager becomes stuck or fails to proceed.
- After rerunning, the pipeline fails at the
productTeststep. - The following error appears during the smoke test: OakConstraint0029: Intermediate folders must be of type rep:AuthorizableFolder.
- The
/home/usersnode is typed assling:Folderinstead ofrep:AuthorizableFolder, preventing user creation and causing test failures.
Cause
A repoinit configuration incorrectly set /home/users to sling:Folder instead of rep:AuthorizableFolder. Even after removing the misconfiguration in a later release, the incorrect node type persisted, causing continued failures until corrected.
Resolution resolution
To fix the OakConstraint0029 error and deployment pipeline failure, follow these steps:
-
In your AEM environment, verify that
/home/usersis typed assling:Folderinstead ofrep:AuthorizableFolder. -
Update your
repoinitconfiguration to ensure the correct node type:- ensure nodes (
rep:AuthorizableFolder)/home - ensure nodes (
rep:AuthorizableFolder)/home/users - Deploy this configuration change through Cloud Manager.
- ensure nodes (
-
Remove problematic
repoinitlines:- Ensure that repoinit does not manage node types for
/home,/home/users, or/home/groups, as AEM provisions these correctly by default.
- Ensure that repoinit does not manage node types for
-
After correcting the node type, rerun the pipeline. The
productTeststep should now pass. -
It’s recommended to validate the fix in a lower environment before applying to production.