[AEMaaCS] Can’t access Assets UI and Content Distribution with “Gave up fetching queue state” error

This article addresses the error  Cannot build entryDepthMap that occurs when opening Assets UI and Content Distribution. To resolve this, refresh the Content Distribution queue by executing a test connection in Content Distribution Agent UI, activating a dummy page, and re-executing the pipeline from Cloud Manager.

Description description

Environment

Adobe Experience Manager as a Cloud Service (AEMaaCS)

Issue

The following error occurs when opening Assets UI and Content Distribution.

31.01.2022 02:16:37.882 [ cm-<b></b><b></b>-<b></b><b></b>-aem-author-<b></b><b></b><b></b>-<b></b>*]  WARN [ <b>*.</b>*.<b>*.</b>* [ 1643595337830]  GET /assets.html/content/dam HTTP/1.1]  com.day.cq.dam.commons.util.DamUtil Cannot build entryDepthMap

java.lang.RuntimeException: Gave up fetching queue state

    at org.apache.sling.distribution.journal.queue.impl.PubQueueCache.fetchIfNeeded(PubQueueCache.java:155) [ org.apache.sling.distribution.journal:0.1.20]

    at org.apache.sling.distribution.journal.queue.impl.PubQueueCache.getOffsetQueue(PubQueueCache.java:117) [ org.apache.sling.distribution.journal:0.1.20]

    at org.apache.sling.distribution.journal.queue.impl.PubQueueProviderImpl.getOffsetQueue(PubQueueProviderImpl.java:198) [ org.apache.sling.distribution.journal:0.1.20]

    at org.apache.sling.distribution.journal.queue.impl.PubQueueProviderImpl.getQueue(PubQueueProviderImpl.java:173) [ org.apache.sling.distribution.journal:0.1.20]

    at org.apache.sling.distribution.journal.impl.publisher.DistributionPublisher.getQueue(DistributionPublisher.java:226) [ org.apache.sling.distribution.journal:0.1.20]

    at com.adobe.granite.distribution.core.impl.replication.adapters.ReplicationAgent.getQueue(ReplicationAgent.java:179) [ com.adobe.granite.distribution.core:0.2.70]

Resolution resolution

This issue was affected by GRANITE-37870 and SKYOPS-24148. The temporary workaround is to refresh the Content Distribution Queue. Follow these steps to refresh.

  1. Execute Test Connection in Content Distribution Agent UI. (http://IP:PORT/libs/granite/distribution/content/distribution-agent.html?agentName=publish)
  2. Activate a dummy page in the site’s UI.
  3. Re-execute pipeline from Cloud Manager (Note: NOT required to modify any code).
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f