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 productTest step.
  • The following error appears during the smoke test: OakConstraint0029: Intermediate folders must be of type rep:AuthorizableFolder.
  • The /home/users node is typed as sling:Folder instead of rep: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:

  1. In your AEM environment, verify that /home/users is typed as sling:Folder instead of rep:AuthorizableFolder.

  2. Update your repoinit configuration to ensure the correct node type:

    • ensure nodes (rep:AuthorizableFolder) /home
    • ensure nodes (rep:AuthorizableFolder) /home/users
    • Deploy this configuration change through Cloud Manager.
  3. 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.
  4. After correcting the node type, rerun the pipeline. The productTest step should now pass.

  5. It’s recommended to validate the fix in a lower environment before applying to production.

recommendation-more-help
experience-cloud-kcs-help-kbarticles