Sling Content distribution in local AEM SDK | Community
Skip to main content
Level 2
August 19, 2022
Solved

Sling Content distribution in local AEM SDK

  • August 19, 2022
  • 4 replies
  • 4398 views

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

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by mohita82734067

@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

4 replies

arunpatidar
Community Advisor
Community Advisor
August 19, 2022

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

Arun Patidar
NishmaAuthor
Level 2
August 22, 2022

@arunpatidar  I have done the configurations as below 


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]"

arunpatidar
Community Advisor
Community Advisor
August 22, 2022

does http://127.0.0.1:4503 resolved? I think you should use http://localhost:4503  

Arun Patidar
Jagadeesh_Prakash
Community Advisor
Community Advisor
August 19, 2022

@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/replication.html?lang=en

 

 

 

 

GK-007
Level 9
September 11, 2022

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

mohita82734067Accepted solution
Level 2
February 15, 2023

@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

himesh_srivatsav
Level 2
October 24, 2023

Thanks @mohita82734067 

This worked.