Sling Content Distribution-Sync Content between Publishers

Avatar

Avatar
Validate 1
Level 1
akhilat16351269
Level 1

Like

1 like

Total Posts

15 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
akhilat16351269
Level 1

Like

1 like

Total Posts

15 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 1
View profile
akhilat16351269
Level 1

18-12-2020

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

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

246 likes

Total Posts

410 posts

Correct reply

105 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

246 likes

Total Posts

410 posts

Correct reply

105 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile
shelly-goel
MVP

18-12-2020

@akhilat16351269

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:

https://github.com/apache/sling-old-svn-mirror/blob/trunk/contrib/extensions/distribution/README.md#...

https://www.albinsblog.com/2020/08/sling-content-distribution-in-aem-sync-content-between-publish-in...