Skip to content

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).

  1. Log in to CRX/DE on each publisher node
  2. system/console/bundles https://cmsa-prod-02.db.vt.edu/system/console/bundles
  3. Search for "Adobe Granite Replication (com.day.cq.cq-replication)"
  4. Stop the bundle (VCR-style square button)
  5. Wait until the status says "Resolved"
  6. Start the bundle (VCR-style play button)
  7. The status should now be "Active"

Publish Queues (on Author)

  • There are two publish queues - one for each publisher, creatively named publish-02 and publish-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

  1. Determine the queue id of the stuck item with these links
  2. publish-02 replication queue
  3. publish-03 replication queue (should be the same item as publish-02)
  4. This should produce a JSON output simliar to the output below
  5. The first item is usually the one blocking the queue (and it will be large)

  6. Find the queue.id value ("2017/9/25/13/21/b5508619-1f17-49a2-9a0f-27d84716ee9b_92596" in this example)

  7. Switch to CRX/DE and log in if necessary (your normal session should carry over)
  8. Locate /var/eventing/jobs/assigned//com.day.cq.replication.job.publish-02
  9. Find the path corresponding to the queue.id you found above
  10. Right-click and select "Delete"
  11. Click "Save All" (top-left corner)
  12. 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
      }
    ]
}