Socket Time out exception

cancel
Showing results for 
Search instead for 
Did you mean: 
riyaz
Active Member

Socket Time out exception

Hi all,

I found this exception in alfresco log. any advice

2017-01-17 02:00:56,528 ERROR [org.quartz.core.JobRunShell] [SearchScheduler_Worker-3] Job DEFAULT.search.alfrescoCoreBackupJobDetail threw an unhandled Exception:
org.alfresco.error.AlfrescoRuntimeException: 0017102806 Backup for core alfresco failed ....
at org.alfresco.repo.search.impl.solr.SolrBackupClient.executeImpl(SolrBackupClient.java:196)
at org.alfresco.repo.search.impl.solr.SolrBackupClient.execute(SolrBackupClient.java:133)
at org.alfresco.repo.search.impl.solr.SolrBackupJob.execute(SolrBackupJob.java:58)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.apache.solr.client.solrj.SolrServerException: java.net.SocketTimeoutException: Read timed out
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:483)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
at org.alfresco.repo.solr.SOLRAdminClient.query(SOLRAdminClient.java:196)
at org.alfresco.repo.search.impl.solr.SolrBackupClient.executeImpl(SolrBackupClient.java:185)
... 4 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.security.ssl.InputRecord.readFully(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at sun.security.ssl.AppInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:427)
... 9 more

3 Replies
kaynezhang
Advanced

Re: Socket Time out exception

The error occoured when alfresco try to trigger a HTTP back-up command  to solr ,it is caused by an socket exception.
So make sure alfresco can connect with your solr at your specified host and port.

riyaz
Active Member

Re: Socket Time out exception

Appreciate your timely response. I am running alfresco on a windows server and everything in on localhost. I have apache in front for clients accessing outside of network. How can I make sure alfresco can connect with my solr? Firewall settings?

kaynezhang
Advanced

Re: Socket Time out exception

you can try to modify replication settings and give it a long connection time out value in your solrconf.xml file which located in ${SOLR_HOME}/workspace-SpacesStore/conf,and restart your server.


<requestHandler name="/replication" class="solr.ReplicationHandler" >

<str name="httpConnTimeout">5000</str>
<str name="httpReadTimeout">10000</str>
</requestHandler>