由於repoinit中的節點型別不正確,AEM Cloud Manager部署因OakConstraint0029而失敗

本文說明當productTest步驟失敗並出現​ OakConstraint0029 ​時,如何在Adobe Experience Manager (AEM) Cloud Manager中解決部署管道失敗,因為repoinit中的/home/users節點型別設定錯誤。

說明 description

環境

Adobe Experience Manager (AEM) Cloud Manager

問題/症狀

  • AEM Cloud Manager中的部署管道卡住或無法繼續。
  • 重新執行後,管道會在productTest步驟失敗。
  • 冒煙測試期間出現下列錯誤: OakConstraint0029:中繼資料夾必須屬於rep:AuthorizableFolder​型別。
  • /home/users節點是以sling:Folder (而非rep:AuthorizableFolder)型別化,以防止使用者建立並導致測試失敗。

原因

repoinit設定不正確地將/home/users設定為sling:Folder而非rep:AuthorizableFolder。 即使在後續版本中移除錯誤設定後,不正確的節點型別仍持續存在,導致持續失敗,直到更正為止。

解決方法 resolution

若要修正​ OakConstraint0029 ​錯誤和部署管道失敗,請執行下列步驟:

  1. 在您的AEM環境中,確認/home/users是輸入為sling:Folder而非rep:AuthorizableFolder。

  2. 更新您的repoinit設定以確保正確的節點型別:

    • 確定節點(rep:AuthorizableFolder) /home
    • 確定節點(rep:AuthorizableFolder) /home/users
    • 透過Cloud Manager部署此設定變更。
  3. 移除有問題的repoinit行:

    • 請確定repoinit不會管理/home、/home/users或/home/groups的節點型別,因為AEM預設會正確布建這些專案。
  4. 更正節點型別後,請重新執行管道。 productTest步驟現在應會通過。

  5. 建議在套用至生產環境之前,先在較低的環境中驗證此修正。

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