Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

ACS Commons Dispatcher Flush Rules are breaking the replication

Avatar

Level 2

Hello community,

 

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.


Screenshot from 2020-10-14 14-20-58.png

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 (6.3.3.6) 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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

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!

Documentation: https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-flush-rules/index.ht...

View solution in original post

2 Replies

Avatar

Correct answer by
Level 2

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!

Documentation: https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-flush-rules/index.ht...