Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Datastore Garbage collection failed

at_mahajan23
Level 2
Level 2

I am executing DataStore Garbage Collection job weekly and it is always failing.

I checked  repository , datastore and segmentstore both are consistent. No error in repository check.

But what could be the reason of failing DataStore Garbage Collection . i am using AEM 6.4

 

1 Accepted Solution
Vijayalakshmi_S
Correct answer by
Community Advisor
Community Advisor

Hi @at_mahajan23,

Data Store Garbage collection weekly maintenance Job internally executes the task - startDataStoreGC from Repository Manager MBean. 

Can you try to trigger the same from JMX console in your instance and see if the task returns any related message for debugging further.

https://docs.adobe.com/content/help/en/experience-manager-64/administering/operations/data-store-gar...

 

Try to trigger manually once from Weekly Maintenance console. Before triggering

  • Create a log entry for below class with level - Debug
    • com.adobe.granite.maintenance.impl.MaintenanceJobManagerImpl
    • com.adobe.granite.maintenance.impl.MaintenanceTaskInfoImpl
  • Observe the finished time and status in below two places (Before and after executing manually)
    • Open CRXDE and look for an entry in /var/eventing/jobs
    • Open Health Check Mbean in a window. (/system/console/jmx/org.apache.sling.healthcheck%3Aname%3DMaintenanceTaskDataStoreGarbageCollectionTask%2Ctype%3DHealthCheck)

View solution in original post

4 Replies
Vijayalakshmi_S
Correct answer by
Community Advisor
Community Advisor

Hi @at_mahajan23,

Data Store Garbage collection weekly maintenance Job internally executes the task - startDataStoreGC from Repository Manager MBean. 

Can you try to trigger the same from JMX console in your instance and see if the task returns any related message for debugging further.

https://docs.adobe.com/content/help/en/experience-manager-64/administering/operations/data-store-gar...

 

Try to trigger manually once from Weekly Maintenance console. Before triggering

  • Create a log entry for below class with level - Debug
    • com.adobe.granite.maintenance.impl.MaintenanceJobManagerImpl
    • com.adobe.granite.maintenance.impl.MaintenanceTaskInfoImpl
  • Observe the finished time and status in below two places (Before and after executing manually)
    • Open CRXDE and look for an entry in /var/eventing/jobs
    • Open Health Check Mbean in a window. (/system/console/jmx/org.apache.sling.healthcheck%3Aname%3DMaintenanceTaskDataStoreGarbageCollectionTask%2Ctype%3DHealthCheck)

View solution in original post

at_mahajan23
Level 2
Level 2

@Vijayalakshmi_SIn DataStoreGCStatus message is showing as Blob garbage collection succeeded: Blob gc completed in 3.196 s but in operation dashboard status of failed is not Changing to success. Is there any chance that it is failing from operation board but successful from jmx console?

Vijayalakshmi_S
Community Advisor
Community Advisor

Try to trigger manually once from Weekly Maintenance console. Before triggering

  • Create a log entry for below class with level - Debug
    • com.adobe.granite.maintenance.impl.MaintenanceJobManagerImpl
    • com.adobe.granite.maintenance.impl.MaintenanceTaskInfoImpl
  • Observe the finished time and status in below two places (Before and after executing manually)
    • Open CRXDE and look for an entry in /var/eventing/jobs
    • Open Health Check Mbean in a window. (/system/console/jmx/org.apache.sling.healthcheck%3Aname%3DMaintenanceTaskDataStoreGarbageCollectionTask%2Ctype%3DHealthCheck)
vanegi
Employee
Employee

What error do you see in AEM error.log when DSGC gets completed? Can you start this job manually from operation dashboard, tail the error.log and share with us? Logs can pinpoint to possible cause/problem leading to this failure.