Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

VersionPurge: NullPointerException

Avatar

Level 3

Dear Experts,

lately I cannot perform Version Purge and repository is growing considerably. I see following messages in error.log:

POST /etc/versioning/purge.html HTTP/1.1] com.day.cq.wcm.core.impl.VersionManagerImpl couldn't purge version /jcr:system/jcr:version

Storage/ef/8b/df/ef8bdfaf-7386-47f6-9577-8100c9d63189/1.3 of /content.

POST /etc/versioning/purge.html HTTP/1.1] com.day.cq.wcm.core.impl.VersionManagerImpl couldn't purge version /jcr:system/jcr:version

Storage/ef/8b/df/ef8bdfaf-7386-47f6-9577-8100c9d63189/1.4 of /content.

What could be done to make Version Manager continue purging and remove stale references which cause NullPointerException?

Kind regards

Ivan

1 Reply

Avatar

Level 1

This is known  OAK issue:

[OAK-5193] Version tree may become inconsistent after removing a version - ASF JIRA

To fix it:

  • Download the latest version of oak-run e.g. 1.4.18
  • Shutdown AEM/ make backup
  • Run the OAK-5193-fix.groovy (that you can find attached to the ticket above) e.g.

        java -jar oak-run-1.4.18.jar console repository/segmentstore ":load OAK-5193-fix.groovy" | tee script.log

  • Upgrade Oak to the latest version to prevent future corruption