Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Sling Content distribution in local AEM SDK

Avatar

Level 2

Followed all the articles present in the Google to setup the sling content distribution in local AEM AS CLOUD SERVIECE
When I publish the content in my local it is throwing the below error
Error

19.08.2022 13:22:41.825 *ERROR* [sling-threadpool-aad299cc-7afc-4bf7-aa9e-0c3c82a86906-(apache-sling-job-thread-pool)-1-org_apache_sling_distribution_queue_publish_endpoint0(org/apache/sling/distribution/queue/publish/endpoint0)] org.apache.sling.distribution.agent.impl.SimpleDistributionAgent [agent][publish] [endpoint0] PACKAGE-FAIL DSTRQ10: could not deliver package dstrpck-1660895452312-3a00928b-0548-4605-ba50-de1592fb783f org.apache.http.client.HttpResponseException: status code: 500, reason phrase: Server Error
org.apache.sling.distribution.common.DistributionException: org.apache.http.client.HttpResponseException: status code: 500, reason phrase: Server Error
at org.apache.sling.distribution.transport.impl.SimpleHttpDistributionTransport.deliverPackage(SimpleHttpDistributionTransport.java:164) [org.apache.sling.distribution.core:0.4.8]
at org.apache.sling.distribution.packaging.impl.importer.RemoteDistributionPackageImporter.importPackage(RemoteDistributionPackageImporter.java:66) [org.apache.sling.distribution.core:0.4.8]
at org.apache.sling.distribution.agent.impl.SimpleDistributionAgentQueueProcessor.processQueueItem(SimpleDistributionAgentQueueProcessor.java:141) [org.apache.sling.distribution.core:0.4.8]
at org.apache.sling.distribution.agent.impl.SimpleDistributionAgentQueueProcessor.process(SimpleDistributionAgentQueueProcessor.java:91) [org.apache.sling.distribution.core:0.4.8]
at org.apache.sling.distribution.queue.impl.jobhandling.DistributionAgentJobConsumer.process(DistributionAgentJobConsumer.java:49) [org.apache.sling.distribution.core:0.4.8]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.apache.http.client.HttpResponseException: status code: 500, reason phrase: Server Error
at org.apache.http.impl.client.AbstractResponseHandler.handleResponse(AbstractResponseHandler.java:70) [org.apache.httpcomponents.httpclient:4.5.13]
at org.apache.http.client.fluent.Response.handleResponse(Response.java:90) [org.apache.httpcomponents.httpclient:4.5.13]
at org.apache.http.client.fluent.Response.returnContent(Response.java:97) [org.apache.httpcomponents.httpclient:4.5.13]
at org.apache.sling.distribution.transport.impl.SimpleHttpDistributionTransport.deliverPackage(SimpleHttpDistributionTransport.java:150) [org.apache.sling.distribution.core:0.4.8]
... 11 common frames omitted

Nishma_0-1660897989555.png

 

1 Accepted Solution

Avatar

Correct answer by
Level 2

@Nishma  Don't know if this was resolved but you apart from configuring ForwardDistributionAgentFactory on source & LocalDistributionPackageImporterFactory on target, on local you would also need to configure com.adobe.granite.distribution.core.impl.CryptoDistributionTransportSecretProvider with username and password for default property name. I was facing the same issue and after providing admin credentials on local sling distribution worked fine on local

View solution in original post

7 Replies

Avatar

Community Advisor

Can you test a connection, make sure the receiver's configurations are correct.



Arun Patidar

Avatar

Level 2

@arunpatidar  I have done the configurations as below 

Nishma_0-1661160002198.png


when i am trying to do the test connection I am facing the below issue. Please help me to resolve.
"An error has occurred while attempting to deliver test package. [org.apache.sling.distribution.common.DistributionException: org.apache.http.client.HttpResponseException: status code: 500, reason phrase: Server Error]"

Avatar

Community Advisor

@Nishma

 

 If you are trying to validate only in the local SDK, Why not you try replication tree to publish.

 

But if you wanted to evaluate in AEMaaCS replication tree will not work and so I suggest you to use “Publish Content tree”

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/replicat...

 

 

 

Jagadeesh_Prakash_0-1660908321102.png

 

Avatar

Level 2

Anyone got the resolution, how to setup the Distribution agent in local system?

Avatar

Correct answer by
Level 2

@Nishma  Don't know if this was resolved but you apart from configuring ForwardDistributionAgentFactory on source & LocalDistributionPackageImporterFactory on target, on local you would also need to configure com.adobe.granite.distribution.core.impl.CryptoDistributionTransportSecretProvider with username and password for default property name. I was facing the same issue and after providing admin credentials on local sling distribution worked fine on local