10-10-2011 01:04 PM
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:550)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:394)
at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:123)
at org.alfresco.encryption.ssl.AuthSSLProtocolSocketFactory.createSocket(AuthSSLProtocolSocketFactory.java:168)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
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.alfresco.httpclient.AbstractHttpClient.executeMethod(AbstractHttpClient.java:133)
at org.alfresco.httpclient.AbstractHttpClient.sendRemoteRequest(AbstractHttpClient.java:85)
at org.alfresco.httpclient.HttpClientFactory$HttpsClient.sendRequest(HttpClientFactory.java:307)
at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:982)
at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1405)
at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1127)
at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:481)
at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
### Solr indexing ###
index.subsystem.name=solr
dir.keystore=${dir.root}/keystore
solr.port=18443
11-17-2011 12:03 PM
11-21-2011 04:50 AM
11-21-2011 05:40 AM
11-22-2011 05:11 AM
03-11-2012 11:11 AM
07-10-2019 04:06 PM
I had this problem in my local environment and I solved it running solr without SSL.
This is from the Alfresco official documentation:
I only followed the steps 1,2 and 3, as I didn't have the web.xml config it asks to remove.
- Set the solr.secureComms property to none in the alfresco-global.properties file.
- Ensure that the solr.port property is set to the correct non-SSL port of the application server in which Solr is running.
- In the <solrRootDir>/archive-SpacesStore/conf/solrcore.properties file and <solrRootDir>/workspace-SpacesStore/conf/solrcore.properties file, do the following:
- Set the property alfresco.secureComms property to none.
- Ensure that the alfresco.port property is set to the correct non-SSL port of the application server in which your repository is running.
- In the repository <TOMCAT_HOME>/webapps/alfresco/WEB-INF/web.xml, remove the following configuration:
<security-constraint> <web-resource-collection> <web-resource-name>SOLR</web-resource-name> <url-pattern>/service/api/solr/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repoclient</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint></security-constraint><security-constraint> <web-resource-collection> <web-resource-name>SOLR</web-resource-name> <url-pattern>/s/api/solr/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repoclient</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint></security-constraint><security-constraint> <web-resource-collection> <web-resource-name>SOLR</web-resource-name> <url-pattern>/wcservice/api/solr/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repoclient</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint></security-constraint><security-constraint> <web-resource-collection> <web-resource-name>SOLR</web-resource-name> <url-pattern>/wcs/api/solr/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repoclient</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint></security-constraint><login-config> <auth-method>CLIENT-CERT</auth-method> <realm-name>Repository</realm-name></login-config><security-role> <role-name>repoclient</role-name></security-role>- In the Solr <TOMCAT_HOME>/webapps/solr4/WEB-INF/web.xml, remove the following configuration:
<security-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repository</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint></security-constraint><login-config> <auth-method>CLIENT-CERT</auth-method> <realm-name>Solr</realm-name></login-config><security-role> <role-name>repository</role-name></security-role>
From solr web.xml (tomcat/webapps/solr4/WEB-INF/web.xml) I removed this filter:
<filter-name>X509AuthFilter</filter-name>
and the filter mapping
<filter-mapping>
<filter-name>X509AuthFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.