Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

sling sync distribution | connection timeout exception

Avatar

Level 4

Hi Team,

 

In AEM 6.5 ,for sling sync distribution I am getting below time out exception. I have increased the timeout to 120s even tough issue persists. Could you let me know what could be the issue? My author is unable to pull content from both of the publishers and I have verified the request logs of both the publisher and I am not seeing any entry related to distribution from author.

 

 

20.02.2024 07:29:42.939 *ERROR* [sling-default-5-scheduledEventTriggerTriggerAgentRequestHandler{agentName='test-sync'}] org.apache.sling.distribution.agent.impl.SimpleDistributionAgent [agent][test-sync] cannot retrieve packages
org.apache.http.conn.ConnectTimeoutException: Connect to 64.8.5.6:4503 [/64.8.5.6] failed: connect timed out
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.client.fluent.Request.internalExecute(Request.java:173) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.client.fluent.Executor.execute(Executor.java:262) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.sling.distribution.transport.impl.HttpTransportUtils.fetchNextPackage(HttpTransportUtils.java:44) [org.apache.sling.distribution.core:0.4.0.B006]
	at org.apache.sling.distribution.transport.impl.SimpleHttpDistributionTransport.retrievePackage(SimpleHttpDistributionTransport.java:178) [org.apache.sling.distribution.core:0.4.0.B006]
	at org.apache.sling.distribution.packaging.impl.exporter.RemoteDistributionPackageExporter.exportPackages(RemoteDistributionPackageExporter.java:77) [org.apache.sling.distribution.core:0.4.0.B006]
	at org.apache.sling.distribution.agent.impl.SimpleDistributionAgent.exportPackages(SimpleDistributionAgent.java:218) [org.apache.sling.distribution.core:0.4.0.B006]
	at org.apache.sling.distribution.agent.impl.SimpleDistributionAgent.execute(SimpleDistributionAgent.java:182) [org.apache.sling.distribution.core:0.4.0.B006]
	at org.apache.sling.distribution.agent.impl.TriggerAgentRequestHandler.handle(TriggerAgentRequestHandler.java:70) [org.apache.sling.distribution.core:0.4.0.B006]
	at org.apache.sling.distribution.trigger.impl.ScheduledDistributionTrigger$ScheduledDistribution.run(ScheduledDistributionTrigger.java:139) [org.apache.sling.distribution.core:0.4.0.B006]
	at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:349) [org.apache.sling.commons.scheduler:2.7.12]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [org.apache.sling.commons.scheduler:2.7.12]
	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: java.net.SocketTimeoutException: connect timed out
	at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
	at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
	at java.base/java.net.Socket.connect(Socket.java:608)
	at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75) [org.apache.httpcomponents.httpclient:4.5.12]
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) [org.apache.httpcomponents.httpclient:4.5.12]
	... 23 common frames omitted

 

 

  

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @Imran__Khan @TarunKumar ,

 

Seems it is issue with ips. I have configured the agent paths with DNS and then this issue got resolved. Thanks for your help.

 

Thanks

View solution in original post

4 Replies

Avatar

Level 10

@Uppari_Ramesh please verify ip/domain whitelisting within client and server you are trying to connect. Also, try to disable proxy server settings or VPN Connections. Turn Off the firewall and antivirus software temporarily.

 

Avatar

Community Advisor

Hi @Uppari_Ramesh ,

Try to unblock the distribution queue.
Delete all the stuck Sling jobs. If old jobs under /var/eventing/jobs/unassigned are not processing due to some error, then they could cause Sync to fail. Delete those on each AEM node to unblock the synchronization queue: 
You can follow below link, though this is for user sync issue but might be helpful in our case as well.

https://helpx.adobe.com/in/experience-manager/kb/user-sync-stops-working.html


Thanks
Tarun

Avatar

Correct answer by
Level 4

Hi @Imran__Khan @TarunKumar ,

 

Seems it is issue with ips. I have configured the agent paths with DNS and then this issue got resolved. Thanks for your help.

 

Thanks