Resolve AEM as a Cloud Service deployment failures at Update Indexes step
If your AEM as a Cloud Service pipeline deployment fails at the Update Indexes step, this is usually caused by a custom index with a version higher than the corresponding base product index, or a missing required type property. Review your custom index definitions, correct the productVersion and type properties, and redeploy to resolve the failure.
Description description
Environment
Adobe Experience Manager as a Cloud Service (all environments)
Symptoms
-
Pipeline deployments fail at the Update Indexes step.
-
Error logs may include messages such as:
- Cannot add a new customized index … because the product version for this index is higher than the product index of the existing latest index.
- No
typeproperty found for index at path … - Ignoring index … without a type
-
In some cases, errors related to repository initialization (RepoInit) scripts may appear, such as attempts to set ACLs on non-existent paths.
-
Deployments to any environment (for example, development, staging, and production) are blocked, preventing releases.
Cause
- The custom index definition specifies a product version that is higher than the base product index version present in the environment.
- The custom index definition is missing the required
typeproperty. - RepoInit scripts attempt to set ACLs on repository paths that do not exist.
Resolution resolution
Follow the steps to resolve the issue.
-
Review your custom index definitions (for example,
/oak:index/yourCustomIndexName) in your codebase. -
Check the
productVersionproperty of each custom index:- Ensure its
productVersiondoes not exceed the product index version of the corresponding base index (for example,/oak:index/cqPageLuceneor/oak:index/damAssetLucene). - If the custom index version is higher, update it to match or be compatible with the base product index version.
- Ensure its
-
Ensure each custom index includes the mandatory
typeproperty (for example,type: lucene), adding or correcting it if missing. -
If you encounter RepoInit ACL errors, review your RepoInit scripts for any ACL assignments to repository paths:
- Ensure that the target paths exist before setting ACLs, or modify the script to create the required paths as part of the deployment.
-
After making the necessary corrections, trigger the pipeline again via Adobe Cloud Manager.
-
Monitor the Update Indexes step to verify that the deployment completes successfully.