Expand my Community achievements bar.

SOLVED

Apache sling content reverse distribution in aem cloud

Avatar

Level 2

Hi experts,

 

Please let me know if anyone is able to successfully use Apache sling content 'reverse distribution' , queues are getting created in publisher but from author not able to pull it.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@AEMLearner12 can you check with the below curl formate 

1. first add a content using path param and pull it back using below curl - see if it works

Pull - 

curl -u admin:admin http://localhost:4502/libs/sling/distribution/services/agents/reverse -d "action=PULL" -d 'path=/content/sample1'

 

View solution in original post

6 Replies

Avatar

Community Advisor

@AEMLearner12 are you getting any error/exception in logs? were you able to push/pull content using curl?

Refer to the below link to get more info on the subject

Sling Content Distribution in AEM (Part 2) — Reverse Distribution | by Albin Issac | Tech Learnings ...

Avatar

Level 2

Hi @Nitin_laad ,

 

Thanks for replying, I could send the request to publish queue successfully.

 

curl -u admin:admin http://localhost:4503/libs/sling/distribution/services/agents/myreverse -d "action=ADD" -d "path=/home/users/system/users"

But when I try to pull in author using below command,

 

curl -u admin:admin http://localhost:4502/libs/sling/distribution/services/agents/reverse -d "action=PULL"

I am getting below response.

 

{"success":false,"state":"DROPPED"}

Avatar

Community Advisor

Hi @AEMLearner12 ,

 

You are trying to pull /home paths from publisher to author. I am not sure on the requirement but just incase if you are trying for a User Sync among the publishers, you need to raise customer support ticket,

 

kishorekumar14_0-1646902912358.png

 

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/sites/authoring/per... 

Avatar

Correct answer by
Community Advisor

@AEMLearner12 can you check with the below curl formate 

1. first add a content using path param and pull it back using below curl - see if it works

Pull - 

curl -u admin:admin http://localhost:4502/libs/sling/distribution/services/agents/reverse -d "action=PULL" -d 'path=/content/sample1'

 

Avatar

Employee Advisor

I did follow these to set it up and it worked for me. Please go through these steps and check if you have missed something:

https://www.youtube.com/watch?v=z6nf2QSUM8k

https://www.youtube.com/watch?v=5n45O5DMne4

 

 

Avatar

Level 2

Hi @Anish-Sinha ,

 

Thaks for replying, I followed the steps mentiond in video but i was not able to pull the content from publisher to author, i am facing some problem, could u pls help, Issue is mentioned in @Nitin_laad  reply section.