AnsweredAssumed Answered

Issues with solr after tomcat port change

Question asked by archiee on Nov 12, 2014
Latest reply on Nov 13, 2014 by archiee
Hello everyone,

let me start saying that I have a limited experience working with Alfresco.

I'm currently working with community 4.2e on Windows 7.

I have the need of changing the port of my tomcat server.
Since now I've been working with both alfresco and share on 8080 port, but I must switch both of them on another port (eg 8081).

I followed several examples I found online and I modified the tomcat ports in files:

alfresco-global.properties
share-config-custom.xlm
server.xml

plus several wqsapi and cmis configuration files.

The result is that I get several:

ERROR [org.alfresco.solr.tracker.CoreTracker] Tracking failed

I tried to reindex solr several times (deleting files under archive, workspace, archive-Spacestore, workspace-Spacestore and restarting the server).
The reindexing seems to takes place (Solr index directory 'C:\Alfresco\alf_data\solr\archive\SpacesStore\index' doesn't exist. Creating new index…)


but I still receive A LOT of Tracking failed errors.


I include just the first part of my solr.log file, since several hundreds of similar error lines follow after these:


16:42:30,498 WARN  [org.apache.solr.core.SolrCore] [archive] Solr index directory 'C:\Alfresco\alf_data\solr\archive\SpacesStore\index' doesn't exist. Creating new index…
16:42:31,044 WARN  [org.apache.solr.handler.component.SpellCheckComponent] No queryConverter defined, using default converter
16:42:31,527 WARN  [org.apache.solr.core.SolrCore] [alfresco] Solr index directory 'C:\Alfresco\alf_data\solr\workspace\SpacesStore\index' doesn't exist. Creating new index…
16:42:31,574 WARN  [org.apache.solr.handler.component.SpellCheckComponent] No queryConverter defined, using default converter
16:42:49,117 ERROR [org.alfresco.solr.tracker.CoreTracker] Tracking failed
java.net.ConnectException: Connection refused: connect
   at java.net.DualStackPlainSocketImpl.connect0(Native Method)
   at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
   at java.net.Socket.connect(Socket.java:579)
   at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
   at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:451)
   at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:140)
   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:135)
   at org.alfresco.httpclient.AbstractHttpClient.sendRemoteRequest(AbstractHttpClient.java:111)
   at org.alfresco.httpclient.HttpClientFactory$HttpsClient.sendRequest(HttpClientFactory.java:371)
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1056)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1876)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1206)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:492)
   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:563)
16:42:49,120 ERROR [org.alfresco.solr.tracker.CoreTracker] Tracking failed
java.net.ConnectException: Connection refused: connect
   at java.net.DualStackPlainSocketImpl.connect0(Native Method)
   at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
   at java.net.Socket.connect(Socket.java:579)
   at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
   at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:451)
   at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:140)
   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:135)
   at org.alfresco.httpclient.AbstractHttpClient.sendRemoteRequest(AbstractHttpClient.java:111)
   at org.alfresco.httpclient.HttpClientFactory$HttpsClient.sendRequest(HttpClientFactory.java:371)
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1056)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1876)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1206)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:492)
   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:563)



I thank you in advance for any help you could provide me.


Archie



Outcomes