Hi,
There are 2 publishers in our project and there is a use case where nodes under /etc/myproject will be updated in one publisher. We want to sync the content in /etc/myproject between publishers and I was trying to implement Sync Distribution of SCD in my local. I made some modification under /etc/myproject and ran the command curl -u admin:admin http://localhost:5443/libs/sling/distribution/services/agents/pubsync -d “action=ADD” -d “path=/etc/myprojcet/abc”. It was success. {"success":true,"state":"ACCEPTED","message":"[QUEUED]"}
But when I tried to run pull command
curl -u admin:admin http://localhost:4502/libs/sling/distribution/services/agents/distribution-sync -d "action=PULL" got failure response. {"success":false,"state":"DROPPED"} Below is the error coming in logs. Can anyone help us with this.
18.12.2020 22:41:00.924 *ERROR* [127.0.0.1 [1608311460915] POST /libs/sling/distribution/services/exporters/pubsync HTTP/1.1] org.apache.sling.distribution.packaging.impl.exporter.AgentDistributionPackageExporter Error exporting package
org.apache.sling.distribution.common.DistributionException: Could not find queue
at org.apache.sling.distribution.packaging.impl.exporter.AgentDistributionPackageExporter.getQueueOrThrow(AgentDistributionPackageExporter.java:192)
at
Views
Replies
Total Likes
This would happen if the exporter/ importer are either not created in publish or the name/endpoints are not same as those configured in author Sync Distribution agent (in this case "distribution-sync"). As per logs it's looking for exporter "/libs/sling/distribution/services/exporters/pubsync".
Once these are configured correctly, sync would work.
You can refer to these links for details:
Views
Replies
Total Likes
Thanks @shelly-goel
Let me recheck all configurations once more and try.
Is there any restriction that nodes under /etc can't be distributed in this way? The node that I am trying is under /etc.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies