Issue

Version purge fails with errors similar to the ones below:

27.04.2017 17:57:33.121 *WARN* [sling-threadpool-54ff6798-1ec5-4052-a69c-cb885809ffcb-(apache-sling-job-thread-pool)-10513-Maintenance Queue(com/adobe/granite/maintenance/job/VersionPurgeTask)] org.apache.jackrabbit.oak.plugins.version.ReadOnlyVersionManager Missing versionable path property for crx.default at /jcr:system/jcr:versionStorage/b7/c8/eb/b7c8eb37-a4ab-4ff1-9b09-8c87dd131c49
27.04.2017 17:57:47.573 *ERROR* [sling-threadpool-54ff6798-1ec5-4052-a69c-cb885809ffcb-(apache-sling-job-thread-pool)-10513-Maintenance Queue(com/adobe/granite/maintenance/job/VersionPurgeTask)] com.day.cq.wcm.core.impl.VersionManagerImpl Unable to purge version 1.0 for /content/commercial-TEST/demo/plegridy/hcp/en_us/home/ms-events/ms-events-webinars/event-registration/event-registration/jcr:content : OakIntegrity0001: Unable to delete referenced node
     at com.day.cq.wcm.core.impl.VersionPurgeTask.process(VersionPurgeTask.java:121)
27.04.2017 17:57:48.033 *ERROR* [sling-threadpool-54ff6798-1ec5-4052-a69c-cb885809ffcb-(apache-sling-job-thread-pool)-10513-Maintenance Queue(com/adobe/granite/maintenance/job/VersionPurgeTask)] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.Maintenance Queue Unhandled error occured in job processor null while processing job Sling Job [topic=com/adobe/granite/maintenance/job/VersionPurgeTask, id=2017/4/27/17/57/3953890e-404b-43a9-ba2f-9200747789f2_229, properties=slingevent:application=3953890e-404b-43a9-ba2f-9200747789f2,jcr:created=java.util.GregorianCalendar(Thu Apr 27 17:57:32 EDT 2017),slingevent:created=java.util.GregorianCalendar(Thu Apr 27 17:57:32 EDT 2017),event.job.queuename=Maintenance Queue,event.job.queued.time=java.util.GregorianCalendar(Thu Apr 27 17:57:32 EDT 2017),jcr:createdBy=admin,sling:resourceType=slingevent:Job,event.job.application=3953890e-404b-43a9-ba2f-9200747789f2,event.job.retries=1,event.job.started.time=java.util.GregorianCalendar(Thu Apr 27 17:57:32 EDT 2017),jcr:primaryType=slingevent:Job,event.job.retrycount=0]
     at com.day.cq.wcm.core.impl.VersionPurgeTask.process(VersionPurgeTask.java:121)
27.04.2017 17:57:48.060 *ERROR* [Thread-7] com.adobe.granite.maintenance.impl.TaskScheduler Maintenance task VersionPurgeTask failed

Environment

AEM 6.x

Cause

Version corruption is responsible for the issue. Some cases of version corruption are caused by the bug OAK-5193.

Resolution

  1. Download the latest oak-run jar file matching your installed version of Apache Oak. See the Oak version in http://aem-host:port/crx/de/index.jsp on the right side of the main page.

    • AEM6.0 uses Oak 1.0.x
    • AEM6.1 uses Oak 1.2.x
    • AEM6.2 uses Oak 1.4.x
  2. Upload the oak-run jar to your server.

  3. Upload the attached groovy script to your server.

  4. Run the following command on your server from the same directory as the AEM jar file (replace {aemuser} with the user ID of the AEM java process user).

    sudo -u {aemuser} sh -c 'nohup java -Xmx2048m -jar oak-run-1.4.15.jar console crx-quickstart/repository/segmentstore ":load OAK-5193-fix.groovy" >> crx-quickstart/logs/script.log 2>&1 &'
  5. Download and install the latest Oak hot fix for your AEM version.

Licencia na používanie tohto diela sa poskytuje v súlade s podmienkami licencie Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Na príspevky v sociálnych sieťach Twitter™ a Facebook sa nevzťahujú podmienky licencií Creative Commons.

Právne upozornenia   |   Zásady ochrany osobných údajov online