AnsweredAssumed Answered

SSL working but tags won't load

Question asked by jamesy281 on Apr 25, 2016
Hi There,

I have configured our Alfresco community version 5.0.0 (d r99759-b2) (windows) with an Apache proxy to run over SSL using this KB article http://docs.alfresco.com/5.0/tasks/configure-ssl-prod.html. The site loads and for all intents and purposes seems to be working well except for two things. Dashlets and tags are not loading. Using tags as an exemplar when I visit the shared files page, the tags node on the left displays the message could not retrieve tags. I also find the below error in the SOLR log files as well as the below output from debugging in the browser.  I have followed the KB for a full re-index but I am sure it is related to having moved the configuration to HTTPS.


SOLR LOG
ERROR [org.alfresco.solr.tracker.AbstractTracker] Tracking failed
java.net.ConnectException: Connection refused: connect
   at java.net.DualStackPlainSocketImpl.connect0(Native Method)
   at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
   at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
   at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.SocksSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source)
   at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
   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:385)
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1088)
   at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:249)
   at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:207)
   at org.alfresco.solr.tracker.ModelTracker.doTrack(ModelTracker.java:167)
   at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:153)
   at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)

DEBUG
{
    "status" :
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  }, 
 
  "message" : "03250008 Wrapped Exception (with status template): 03250042 Failed to execute script 'classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/collaboration\/tagQuery.get.js': 03250041 Failed to execute search: PATH:\"\/app:company_home\/app:shared\/\/*\" AND ASPECT:\"{http:\/\/www.alfresco.org\/model\/content\/1.0}taggable\" -ASPECT:\"{http:\/\/www.alfresco.org\/model\/content\/1.0}workingcopy\"", 
  "exception" : "org.springframework.extensions.webscripts.WebScriptException - 03250008 Wrapped Exception (with status template): 03250042 Failed to execute script 'classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/collaboration\/tagQuery.get.js': 03250041 Failed to execute search: PATH:\"\/app:company_home\/app:shared\/\/*\" AND ASPECT:\"{http:\/\/www.alfresco.org\/model\/content\/1.0}taggable\" -ASPECT:\"{http:\/\/www.alfresco.org\/model\/content\/1.0}workingcopy\"",
 
  "callstack" :
  [
       ""      ,"java.net.ConnectException: Connection refused: connect"
      ,"java.net.DualStackPlainSocketImpl.connect0(Native Method)"
      ,"java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)"
      ,"java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)"
      ,"java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)"
      ,"java.net.AbstractPlainSocketImpl.connect(Unknown Source)"
      ,"java.net.PlainSocketImpl.connect(Unknown Source)"
      ,"java.net.SocksSocketImpl.connect(Unknown Source)"
      ,"java.net.Socket.connect(Unknown Source)"
      ,"sun.security.ssl.SSLSocketImpl.connect(Unknown Source)"
      ,"sun.security.ssl.SSLSocketImpl.<init>(Unknown Source)"
      ,"sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)"
      ,"org.alfresco.encryption.ssl.AuthSSLProtocolSocketFactory.createSocket(AuthSSLProtocolSocketFactory.java:168)"
      ,"org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)"
      ,"org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)"
      ,"org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)"
      ,"org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)"
      ,"org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)"
      ,"org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)"
      ,"org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.postQuery(SolrQueryHTTPClient.java:601)"
      ,"org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.postSolrQuery(SolrQueryHTTPClient.java:559)"
      ,"org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.executeQuery(SolrQueryHTTPClient.java:520)"
      ,"org.alfresco.repo.search.impl.solr.SolrQueryLanguage.executeQuery(SolrQueryLanguage.java:51)"
      ,"org.alfresco.repo.search.impl.solr.SolrSearchService.query(SolrSearchService.java:348)"
      ,"org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:77)"
      ,"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
      ,"sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)"
      ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)"
      ,"java.lang.reflect.Method.invoke(Unknown Source)"
      ,"org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:72)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)"
      ,"com.sun.proxy.$Proxy14.query(Unknown Source)"
      ,"org.alfresco.repo.search.impl.SearchServiceSubSystemDelegator.query(SearchServiceSubSystemDelegator.java:126)"
      ,"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
      ,"sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)"
      ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)"
      ,"java.lang.reflect.Method.invoke(Unknown Source)"
      ,"org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)"
      ,"net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)"
      ,"org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)"
      ,"org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)"
      ,"com.sun.proxy.$Proxy14.query(Unknown Source)"
      ,"org.alfresco.repo.jscript.Search.queryResultMeta(Search.java:916)"
      ,"org.alfresco.repo.jscript.Search.query(Search.java:886)"
      ,"org.alfresco.repo.jscript.Search.query(Search.java:870)"
      ,"org.alfresco.repo.jscript.Search.query(Search.java:829)"
      ,"org.alfresco.repo.jscript.Search.luceneSearch(Search.java:344)"
      ,"org.alfresco.repo.jscript.Search.luceneSearch(Search.java:329)"
      ,"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
      ,"sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)"
      ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)"
      ,"java.lang.reflect.Method.invoke(Unknown Source)"
      ,"org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)"
      ,"org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)"
      ,"org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)"
      ,"org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_11._c_tagQuery_1(classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/collaboration\/tagQuery.get.js:53)"
      ,"org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_11.call(classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/collaboration\/tagQuery.get.js)"
      ,"org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)"
      ,"org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_11._c_script_0(classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/collaboration\/tagQuery.get.js:136)"
      ,"org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_11.call(classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/collaboration\/tagQuery.get.js)"
      ,"org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)"
      ,"org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)"
      ,"org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_11.call(classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/collaboration\/tagQuery.get.js)"
      ,"org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_collaboration_tagQuery_get_js_11.exec(classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/collaboration\/tagQuery.get.js)"
      ,"org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:502)"
      ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:200)"
      ,"org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)"
      ,"org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)"
      ,"org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)"
      ,"org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1364)"
      ,"org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:482)"
      ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:551)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:619)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:399)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:280)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)"
      ,"org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)"
      ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:727)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)"
      ,"org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)"
      ,"org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)"
      ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)"
      ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)"
      ,"org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)"
      ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)"
      ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)"
      ,"org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)"
      ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)"
      ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)"
      ,"org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)"
      ,"org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)"
      ,"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)"
      ,"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)"
      ,"java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)"
      ,"java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)"
      ,"org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)"
      ,"java.lang.Thread.run(Unknown Source)"
      ,"org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 03250040 "
      ,"org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.executeQuery(SolrQueryHTTPClient.java:540)"
      ,"org.alfresco.error.AlfrescoRuntimeException: 03250041 Failed to execute search: PATH:\"\/app:company_home\/app:shared\/\/*\" AND ASPECT:\"{http:\/\/www.alfresco.org\/model\/content\/1.0}taggable\" -ASPECT:\"{http:\/\/www.alfresco.org\/model\/content\/1.0}workingcopy\""
      ,"org.alfresco.repo.jscript.Search.queryResultMeta(Search.java:1007)"
      ,"org.alfresco.scripts.ScriptException: 03250042 Failed to execute script 'classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/collaboration\/tagQuery.get.js': 03250041 Failed to execute search: PATH:\"\/app:company_home\/app:shared\/\/*\" AND ASPECT:\"{http:\/\/www.alfresco.org\/model\/content\/1.0}taggable\" -ASPECT:\"{http:\/\/www.alfresco.org\/model\/content\/1.0}workingcopy\""
      ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:204)"
      ,"org.springframework.extensions.webscripts.WebScriptException: 03250008 Wrapped Exception (with status template): 03250042 Failed to execute script 'classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/collaboration\/tagQuery.get.js': 03250041 Failed to execute search: PATH:\"\/app:company_home\/app:shared\/\/*\" AND ASPECT:\"{http:\/\/www.alfresco.org\/model\/content\/1.0}taggable\" -ASPECT:\"{http:\/\/www.alfresco.org\/model\/content\/1.0}workingcopy\""
      ,"org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1127)"

  ],
 
  "server" : "Community v5.0.0 (d r99759-b2) schema 8,022",
  "time" : "Apr 25, 2016 9:44:02 AM"
}

Outcomes