in one of our projects we got several dispatcher flush rules set via the ACS Commons Dispatcher Flush Rules configuration.
The purpose of those rules is basically to delete a .json file which resides under /bin/XX/home/XYZ.json on the dispatcher after replication by the author has been triggered. The rule can be viewed below.
However if we try to replicate a page which resides under the paths where that rule is being applied we receive an exception form the Replicator.Impl: *ERROR* [XX.XXX.XXX.XX [XXXXXXXXXXXX] POST /bin/replicate.json HTTP/1.1] com.day.cq.replication.impl.servlets.CommandServlet Error during replication: Replication triggered, but no agent found! com.day.cq.replication.AgentNotFoundException: Replication triggered, but no agent found! at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:395) at com.adobe.acs.commons.replication.dispatcher.impl.DispatcherFlusherImpl.flush(DispatcherFlusherImpl.java:106) at com.adobe.acs.commons.replication.dispatcher.impl.DispatcherFlushRulesImpl.preprocess(DispatcherFlushRulesImpl.java:192)
The "normal" replication of a page which is not stated in one of the Dispatcher Rules however works just fine. Also both "test connection" checks for the Dispatcher flush and Default Replication Agent are working. We do not see any output in the Dispatcher log - it really seems to not even leave the author instance that request. The used replication_admin user is configured and has permission to all needed paths. We only see that no replication agent is configured error message even if we add another logger on debug level to the package "com.day.cq.replication".
We are using Adobe Experience Manager (188.8.131.52) and ACS Commons 3.19.0. acs-commons-dispatcher-flush-service also has the needed permissions set.
Any ideas? Do we need to link the rules to a replication agent somehow? (we are using the default names for replication agent and dispatcher flush (publish,flush). How can we further debug this issue?
Thanks a lot! Greetings
Edit: @Moderators Please move this question to AEM Sites Space... its in the wrong section of the forum
flush_resource_only replication agent with configured parameters listed on the ACS Commons documentation page was missing. The default dispatcher flush replication agent didnt work for the ACS Commons Dispatcher Flush rules!