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

Description

The following error suddenly occurred and unable to open Assets UI and Content Distribution.

---------
 31.01.2022 02:16:37.882 cm-\*\*\*\*\*\*\*\*-\*\*\*\*\*\*\*\*-aem-author-\*\*\*\*\*\*\*\*\*\*\*\*-\*\*\*\*\* WARN \*\*\*.\*\*\*.\*\*\*.\*\*\* 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

This issue was affected by GRANITE-37870 and SKYOPS-24148.
Temporary workaround is the following three actions for refresh to Content Distribution Queue:

  1. Execute “Test Connection” in “Content Distribution Agent” UI.
       http://IP:PORT/libs/granite/distribution/content/distribution-agent.html?agentName=publish

  2. Activate dummy page in Sites UI.

  3. Re-execute pipeline by Cloud Manager (Note: NOT require to modify any code)

On this page