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
Solved! Go to Solution.
Views
Replies
Total Likes
@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
Can you test a connection, make sure the receiver's configurations are correct.
@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]"
does http://127.0.0.1:4503 resolved? I think you should use http://localhost:4503
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”
Anyone got the resolution, how to setup the Distribution agent in local system?
@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
Thanks @mohita82734067
This worked.
Views
Like
Replies