AEM Cloud Manager deployment fails during PREPARE_CONTENT due to missing service user

Adobe Experience Manager as a Cloud Service (AEMaaCS) deployments may fail during PREPARE_CONTENT with ERROR_TASK_TIMEOUT when RepoInit configuration references a service user before it’s provisioned, preventing repository initialization from completing. To resolve the issue, ensure that the service user is provisioned before its permissions or mappings are applied, correct any related configuration, and rerun the Cloud Manager pipeline.

Description description

Environment

Adobe Experience Manager as a Cloud Service (AEMaaCS) (all versions)

Issue/Symptoms

  • Cloud Manager pipeline execution fails during Deploy to Dev.
  • The PREPARE_CONTENT task exceeds the allowed execution time and ends with ERROR_TASK_TIMEOUT.
  • Substeps such as Update Indexes and Build Transform may also fail.
  • Deployment logs indicate that repository initialization for the target environment doesn’t complete.

Root cause

The deployment configuration references a service user in RepoInit scripts before the service user is provisioned. As a result, repository initialization can’t complete, causing the PREPARE_CONTENTphase to time out.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Review the RepoInit configuration and deployment packages for the affected AEM environment.
  2. Confirm that any service user referenced in permissions is provisioned before permissions or mappings reference it.
  3. Ensure that the package or configuration that provisions the service user is included in the deployment to the target environment.
  4. Verify that the service-user principal name matches exactly across all relevant configurations, including spelling and case.
  5. If the service user is no longer required, remove its associated permission references and related service-user mappings or component configurations.
  6. Commit the corrected configuration to the code repository and rerun the Cloud Manager pipeline.
  7. After the pipeline completes, verify that the deployment succeeds and that PREPARE_CONTENT no longer times out.
recommendation-more-help
experience-cloud-kcs-help-kbarticles