TarMK Cold Standby synchronization fails with Netty resource leak errors in AEM 6.5

TarMK Cold Standby synchronizes content from a Primary Author to a Standby Author in Adobe Experience Manager (AEM) 6.5. Synchronization can fail because of network problems, large blob transfers that exceed timeout thresholds, or defects in older AEM Service Packs. The Standby logs contain synchronization errors, while the Primary logs contain Netty resource leak errors. To fix this, monitor the errors, rebuild the Standby if the errors persist, update AEM, review the Cold Standby timeout configuration, and continue monitoring synchronization.

Description description

Environment

  • Adobe Experience Manager 6.5
  • AEM 6.5 Service Pack 13 and earlier
  • Primary Author and Standby Author

Issue/Symptoms

  • The Standby Author log tarmk-coldstandby.log contains the following error:

    code language-none
    Failed synchronizing state
    
  • The Primary Author log error.log contains a Netty ResourceLeakDetector error similar to:

    code language-none
    LEAK: ByteBuf.release() was not called before it's garbage-collected
    
  • Synchronization failures coincide with large blob transfers and timeouts.

Cause

Network problems, large blob transfers that exceed timeout thresholds, or defects in older AEM Service Packs can cause Cold Standby synchronization failures. The Netty resource leak error is a known issue that is resolved in later AEM 6.5 Service Packs.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Monitor tarmk-coldstandby.log for recurring Failed synchronizing state errors. If the errors occur only occasionally and stop after a short time, continue monitoring them without further action.

  2. If the synchronization errors persist, rebuild the Standby Author:

    • Stop the Standby Author instance.
    • Copy the repository data, including the segmentstore and the datastore, if applicable, from the Primary Author to the Standby Author.
    • Start the Standby Author instance.
    • Allow the synchronization process to complete.
  3. Upgrade AEM to at least Service Pack 17. Preferably, update to Service Pack 21 or later to obtain available bug fixes, including the fix for the Netty resource leak issue.

  4. If the synchronization failures are associated with large blob transfers and timeouts, review the standby.readtimeout property in the OSGi configuration for org.apache.jackrabbit.oak.segment.standby.store.StandbyStoreService.

  5. If large blob transfers are common, increase the standby.readtimeout value.

  6. After applying the changes, monitor tarmk-coldstandby.log and error.log for recurring synchronization or Netty resource leak errors.

  7. If the issue persists, collect the relevant logs and contact Adobe Support for further assistance.

recommendation-more-help
experience-cloud-kcs-help-kbarticles