Clearing Stuck Queues
Dispatcher Flush Queues (on Publishers)
Dispatcher Flush queues exist on publisher nodes (cmsa-<tier>-02 and -03) and are the mechanism by which AEM tells the Dispatcher (cache tier) that a new version of a page is available).
- Log in to CRX/DE on each publisher node
- system/console/bundles https://cmsa-prod-02.db.vt.edu/system/console/bundles
- Search for "Adobe Granite Replication (com.day.cq.cq-replication)"
- Stop the bundle (VCR-style square button)
- Wait until the status says "Resolved"
- Start the bundle (VCR-style play button)
- The status should now be "Active"
Publish Queues (on Author)
- There are two publish queues - one for each publisher, creatively named
publish-02andpublish-03. - Visual indication of queue length and performance on the AEM Author Dashboard Requires VT PID
- Queued item details: publish-02 and publish-03 Requires admin privilege on AEM
If there is a large item stuck in the queue
- Determine the queue id of the stuck item with these links
- publish-02 replication queue
- publish-03 replication queue (should be the same item as publish-02)
- This should produce a JSON output simliar to the output below
-
The first item is usually the one blocking the queue (and it will be large)
-
Find the queue.id value (
"2017/9/25/13/21/b5508619-1f17-49a2-9a0f-27d84716ee9b_92596"in this example) - Switch to CRX/DE and log in if necessary (your normal session should carry over)
- Locate /var/eventing/jobs/assigned/
/com.day.cq.replication.job.publish-02 - Find the path corresponding to the queue.id you found above
- Right-click and select "Delete"
- Click "Save All" (top-left corner)
- Repeat for /var/eventing/jobs/assigned/
/com.day.cq.replication.job.publish-03
Example publish queue entry
{ "metaData": {
"root": "queue",
"queueStatus": {
"agentName": "Publish 03",
"agentId": "publish-03",
"isBlocked": false,
"isPaused": false,
"time": 1506360113893,
"processingSince": 0,
"lastProcessTime": 1506360108621,
"nextRetryPeriod": -1506360113894
},
"fields": [
"id", "path", "time", "userid", "type", "size", "lastProcessed", "numProcessed"
]
},
"queue": [
{
"id": "2017/9/25/13/21/b5508619-1f17-49a2-9a0f-27d84716ee9b_92596",
"path": "/content/dam/nanoearth_ictas_vt_edu/outreach/From-Crystals-to-Quantum.mp4",
"time": 1506360107758,
"userid": "admin",
"type": "Activate",
"size": 1903483738,
"lastProcessed": 0,
"numProcessed": 8
}
]
}