ACS commons dispatcher Flush rules not working in AEMaaCS
Dear AEM Folks ,
We are currently facing one issue while configuring ACS commons dispatcher Flush rules in AEMaaCS .Our rule looks like below :
com.adobe.acs.commons.replication.dispatcher.impl.DispatcherFlushRulesImpl.cfg.json
{
"prop.rules.resource-only":[
"/content/dam/myproject/headless/mobile-app/message-1=/graphql/execute.json/global/testQuery",
"/content/dam/myproject/headless/.*=/graphql/execute.json/global"
],
"prop.replication-action-type":"DELETE"
}
Basically the above rule is used to flush the cache of persisted graphql query when particular Content Fragment is published.
The above configuration is placed in author server as mentioned in https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-flush-rules/index.html for AEMaaCS.
Now while publishing the CF , I can see in AEM author error logs as below and nothing is flushed.
ERROR :
13.09.2024 01:45:41.855 [cm-pXX8765-eXX786-aem-author-79XXX8d6f-9gqvx] *ERROR* [165.225.232.99 [1726191941847] POST /bin/replicate.json HTTP/1.1] com.adobe.acs.commons.replication.dispatcher.impl.DispatcherFlushRulesImpl Error issuing dispatcher flush rules, some downstream replication exception occurred: Replication triggered, but no agent found!
com.day.cq.replication.AgentNotFoundException: Replication triggered, but no agent found!
at com.day.cq.replication.impl.ReplicatorImpl.determineAgentsAndOptions(ReplicatorImpl.java:732) [com.day.cq.cq-replication:6.6.6]
at com.day.cq.replication.impl.ReplicatorImpl.replicateInternal(ReplicatorImpl.java:487) [com.day.cq.cq-replication:6.6.6]
at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:434) [com.day.cq.cq-replication:6.6.6]
at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:410) [com.day.cq.cq-replication:6.6.6]
at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:392) [com.day.cq.cq-replication:6.6.6]
at com.adobe.acs.commons.replication.dispatcher.impl.DispatcherFlusherImpl.flush(DispatcherFlusherImpl.java:106) [com.adobe.acs.acs-aem-commons-bundle:5.7.0]
at com.adobe.acs.commons.replication.dispatcher.impl.DispatcherFlushRulesImpl.preprocess(DispatcherFlushRulesImpl.java:193) [com.adobe.acs.acs-aem-commons-bundle:5.7.0]
Kindly let me know what is going wrong over here as we don't have any control over replication agents in AEMaaCS.
Basically the above rule is used to flush the cache of persisted graphql query when particular Content Fragment is published.
The above configuration is placed in author server as mentioned in https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-flush-rules/index.html for AEMaaCS.
Now while publishing the CF , I can see in AEM author error logs as below and nothing is flushed.
ERROR :
13.09.2024 01:45:41.855 [cm-pXX8765-eXX786-aem-author-79XXX8d6f-9gqvx] *ERROR* [165.225.232.99 [1726191941847] POST /bin/replicate.json HTTP/1.1] com.adobe.acs.commons.replication.dispatcher.impl.DispatcherFlushRulesImpl Error issuing dispatcher flush rules, some downstream replication exception occurred: Replication triggered, but no agent found!
com.day.cq.replication.AgentNotFoundException: Replication triggered, but no agent found!
at com.day.cq.replication.impl.ReplicatorImpl.determineAgentsAndOptions(ReplicatorImpl.java:732) [com.day.cq.cq-replication:6.6.6]
at com.day.cq.replication.impl.ReplicatorImpl.replicateInternal(ReplicatorImpl.java:487) [com.day.cq.cq-replication:6.6.6]
at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:434) [com.day.cq.cq-replication:6.6.6]
at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:410) [com.day.cq.cq-replication:6.6.6]
at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:392) [com.day.cq.cq-replication:6.6.6]
at com.adobe.acs.commons.replication.dispatcher.impl.DispatcherFlusherImpl.flush(DispatcherFlusherImpl.java:106) [com.adobe.acs.acs-aem-commons-bundle:5.7.0]
at com.adobe.acs.commons.replication.dispatcher.impl.DispatcherFlushRulesImpl.preprocess(DispatcherFlushRulesImpl.java:193) [com.adobe.acs.acs-aem-commons-bundle:5.7.0]
Kindly let me know what is going wrong over here as we don't have any control over replication agents in AEMaaCS.