Solr Connection Refused

cancel
Showing results for 
Search instead for 
Did you mean: 
francesco0664
Member II

Solr Connection Refused

Hi, 

I've installed Alfresco 6.0.7-ga , but I have this error:

2022-01-27 12:08:43,757 ERROR [alfresco.web.site] [http-nio-8080-exec-7] javax.servlet.ServletException: Could not resolve view with name 'user/admin/url("/share/res/yui/columnbrowser/assets/skins/default/columnbrowser-skin_8d0c089e' in servlet with name 'Spring Surf Dispatcher Servlet'
Jan 27, 2022 12:08:43 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [Spring Surf Dispatcher Servlet] in context with path [/share] threw exception [Could not resolve view with name 'user/admin/url("/share/res/components/dashlets/activities_22a0386accc23fb6a4c168023d905847.css' in servlet with name 'Spring Surf Dispatcher Servlet'] with root cause
javax.servlet.ServletException: Could not resolve view with name 'user/admin/url("/share/res/components/dashlets/activities_22a0386accc23fb6a4c168023d905847.css' in servlet with name 'Spring Surf Dispatcher Servlet'
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1198)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:194)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
at org.springframework.extensions.webscripts.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:177)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:194)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
at org.springframework.extensions.webscripts.servlet.CSRFFilter.doFilter(CSRFFilter.java:318)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:194)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:474)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:443)
at org.springframework.extensions.webscripts.servlet.BeanProxyFilter.doFilter(BeanProxyFilter.java:80)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:194)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:194)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:544)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:364)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:624)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1651)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

2022-01-27 12:08:43,996 ERROR [alfresco.web.site] [http-nio-8080-exec-3] javax.servlet.ServletException: Could not resolve view with name 'user/admin/url("/share/res/components/dashlets/activities_22a0386accc23fb6a4c168023d905847.css' in servlet with name 'Spring Surf Dispatcher Servlet'

 

with Solr 6 I've this problem:

 

2022-01-27 11:05:14.962 INFO (searcherExecutor-8-thread-1-processing-x:archive) [ x:archive] o.a.c.h.HttpMethodDirector I/O exception (java.net.ConnectException) caught when processing request:
Connection refused (Connection refused)
2022-01-27 11:05:14.962 INFO (searcherExecutor-8-thread-1-processing-x:archive) [ x:archive] o.a.c.h.HttpMethodDirector Retrying request
2022-01-27 11:05:14.962 INFO (searcherExecutor-8-thread-1-processing-x:archive) [ x:archive] o.a.c.h.HttpMethodDirector I/O exception (java.net.ConnectException) caught when processing request:
Connection refused (Connection refused)
2022-01-27 11:05:14.962 INFO (searcherExecutor-8-thread-1-processing-x:archive) [ x:archive] o.a.c.h.HttpMethodDirector Retrying request
2022-01-27 11:05:14.963 ERROR (searcherExecutor-8-thread-1-processing-x:archive) [ x:archive] o.a.s.t.AbstractTracker Model tracking failed
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:286)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
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$DefaultHttpClient.sendRequest(HttpClientFactory.java:430)
at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1178)
at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:292)
at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:250)
at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(ModelTracker.java:272)
at org.alfresco.solr.lifecycle.SolrCoreLoadRegistration.registerForCore(SolrCoreLoadRegistration.java:96)
at org.alfresco.solr.lifecycle.SolrCoreLoadListener.newSearcher(SolrCoreLoadListener.java:47)
at org.apache.solr.core.SolrCore.lambda$getSearcher$3(SolrCore.java:1988)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

 

 

How can I resolve it ?

 

thanks

1 Reply
abhinavmishra14
Advanced

Re: Solr Connection Refused

You may be missing some sort of configuration. Make sure following is set according your environment and network setup:

If using windows, update the solr.in.cmd:

############ Considering solr and alfresco are setup on same machine. Update the host config as per your setup. This is an example.

set SOLR_SOLR_HOST=localhost set SOLR_SOLR_PORT=8983 set SOLR_SOLR_BASEURL=/solr set SOLR_ALFRESCO_HOST=localhost set SOLR_ALFRESCO_PORT=8080 set SOLR_ALFRESCO_BASEURL=/alfresco :: Since we are setting up with no SSL, this property need to be set to none. Default is https set SOLR_ALFRESCO_SECURECOMMS=none

If using linux, update the solr.in.sh:

############ Considering solr and alfresco are setup on same machine. Update the host config as per your setup. This is an example.

SOLR_SOLR_HOST=localhost SOLR_SOLR_PORT=8983 SOLR_SOLR_BASEURL=/solr SOLR_ALFRESCO_HOST=localhost SOLR_ALFRESCO_PORT=8080 SOLR_ALFRESCO_BASEURL=/alfresco :: Since we are setting up with no SSL, this property need to be set to none. Default is https SOLR_ALFRESCO_SECURECOMMS=none

Update the alfresco-global.properties:

############ Considering solr and alfresco are setup on same machine. Update the host config as per your setup. This is an example.

# Set this property unless you have explicitly chosen to expose some repository APIs without authentication solr.host=localhost solr.port=8983 #none, https solr.secureComms=none solr.base.url=/solr index.subsystem.name=solr6

You can find detailed steps here, please cross check all the configurations.

Part 1: Setup ACS 620-ga and ASS 1.4.0 using distribution package step by step on Windows platform
Part 2: Setup ACS 620-ga and ASS 1.4.0 using distribution package step by step on Linux platform
~Abhinav
(ACSCE, AWS SAA, Azure Admin)