Severe author slowness and frequent pod restarts in Adobe Experience Manager as a Cloud Service
In Adobe Experience Manager as a Cloud Service, the author instance becomes extremely slow and unresponsive, with long UI load times and frequent pod restarts. Missing workflow model versions referenced by running or stale workflow instances cause workflow cache initialization failures and health check timeouts. To fix this issue, address the stale or running workflow instances that reference missing workflow model versions.
Description description
Environment
Adobe Experience Manager as a Cloud Service (all versions)
Symptoms
-
Author UI is slow to load and respond.
-
Frequent pod restarts are observed.
-
Error logs contain messages such as:
VersionException: Version X does not exist for /var/workflow/models/Model-NameCannot init workflow payload cache
-
Health check failures occur with timeouts (for example, exceeding 2000 ms).
Cause
Stale or running workflow instances reference a workflow model version that no longer exists in the repository. This causes the workflow payload cache to fail initialization, resulting in expensive queries on every author UI action, health check timeouts, and repeated pod restarts.
Resolution resolution
Follow the steps below to resolve the issue.
-
Identify the missing workflow model and version:
- Review AEM error logs for entries like
VersionException: Version X does not exist for /var/workflow/models/Model-Name. - Note the specific workflow model path and version number that are missing.
- Review AEM error logs for entries like
-
Restore the missing workflow model version:
- Re-import or re-deploy the affected workflow model so that the required version exists in the repository.
- Ensure that the version referenced by running workflow instances is present.
- Compare the workflow model with those in other AEM environments to confirm consistency.
-
Purge stale workflow instances:
-
Configure and schedule the workflow purge process in AEM to remove running or stale workflow instances referencing the missing model version.
-
To verify the workflow purge process:
- Check AEM error logs for entries related to
WorkflowPurgeTask(for example,Name='WorkflowPurgeTask', Status='SCHEDULED'orStatus='UNSCHEDULED'). - Confirm that the purge process is running and removing the intended workflow instances.
- If the purge does not remove the instances, review the workflow purge configuration and logs for errors or misconfiguration.
- Check AEM error logs for entries related to
-
-
Monitor author instance health:
- After restoring the workflow model and purging stale instances, monitor the author instance for improved responsiveness and reduced pod restarts.
- Continue to check the logs for the absence of the previous error messages.