cancel
Showing results for 
Search instead for 
Did you mean: 

SOLR Issues - Multiple, help please

nightfalltech
Champ in-the-making
Champ in-the-making
I'm getting the following log entries on the SOLR host (SOLR is running on a seperate machine to alfresco), and i cannot find any reference on the internet to help me understand the errors i'm getting, this WAS previously working, i cleared the indexes to try and resolve a WCM issue and now i cannot get SOLR working again….

I'm completely stuck here and don't know what i can do to resolve this.

04/07/2012 5:10:00 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
   at org.alfresco.solr.SolrLuceneAnalyser.loadAnalyzer(SolrLuceneAnalyser.java:527)
   at org.alfresco.solr.SolrLuceneAnalyser.findAnalyser(SolrLuceneAnalyser.java:481)
   at org.alfresco.solr.SolrLuceneAnalyser.tokenStream(SolrLuceneAnalyser.java:99)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser.getFieldQueryImpl(AbstractLuceneQueryParser.java:1295)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser.getSuperFieldQuery(AbstractLuceneQueryParser.java:4167)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser$FieldQuery.getQuery(AbstractLuceneQueryParser.java:4258)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser.attributeQueryBuilder(AbstractLuceneQueryParser.java:4667)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser.getFieldQuery(AbstractLuceneQueryParser.java:820)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser.getFieldQuery(AbstractLuceneQueryParser.java:343)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser.getFieldQuery(AbstractLuceneQueryParser.java:269)
   at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1584)
   at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1337)
   at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1265)
   at org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1254)
   at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:200)
   at org.alfresco.solr.query.AlfrescoLuceneQParserPlugin$AlfrescoLuceneQParser.parse(AlfrescoLuceneQParserPlugin.java:102)
   at org.apache.solr.search.QParser.getQuery(QParser.java:131)
   at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:89)
   at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:174)
   at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
   at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
   at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
   at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Unknown Source)

the issue relating to WCM is still present in the logs as …

04/07/2012 5:10:00 PM org.alfresco.repo.dictionary.DictionaryDAOImpl getType
WARNING: Type not found: {http://www.alfresco.org/model/content/1.0}ws:webassetCollection
04/07/2012 5:10:00 PM org.apache.solr.common.SolrException log
SEVERE: org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 06042203 Invalid type: ws:webassetCollection
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser.createTypeQuery(AbstractLuceneQueryParser.java:1141)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser.getFieldQuery(AbstractLuceneQueryParser.java:804)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser.getFieldQuery(AbstractLuceneQueryParser.java:343)
   at org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser.getFieldQuery(AbstractLuceneQueryParser.java:269)
   at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1584)
   at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1337)
   at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1265)
   at org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1254)
   at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:200)
   at org.alfresco.solr.query.AlfrescoLuceneQParserPlugin$AlfrescoLuceneQParser.parse(AlfrescoLuceneQParserPlugin.java:102)
   at org.apache.solr.search.QParser.getQuery(QParser.java:131)
   at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:89)
   at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:174)
   at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
   at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
   at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
   at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Unknown Source)

I also get the following error on startup of the SOLR tomcat
04/07/2012 2:58:45 PM org.quartz.core.JobRunShell run
SEVERE: Job Solr.CoreTracker-archive threw an unhandled Exception:
org.alfresco.error.AlfrescoRuntimeException: 06040625 GetModelsDiff return status is 302
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1010)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1630)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1134)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:491)
   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)
04/07/2012 2:58:45 PM org.quartz.core.ErrorLogger schedulerError
SEVERE: Job (Solr.CoreTracker-archive threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.error.AlfrescoRuntimeException: 06040625 GetModelsDiff return status is 302]
   at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 06040625 GetModelsDiff return status is 302
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1010)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1630)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1134)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:491)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   … 1 more
7 REPLIES 7

andy
Champ on-the-rise
Champ on-the-rise
Hi

Exactly what did you do to clear the indexes?
You just need to clear the data directory (which you can find using the solr admin client rather then reading the config)

It sounds like you have deleted the analysers - which you need to put back from the distribution.
Or redepoly and configure your SOLR install.

Andy

nightfalltech
Champ in-the-making
Champ in-the-making
I deleted the

\workspace\SpacesStore\index and
\workspace-SpacesStore\alfrescoModels

folders….

I then replaced \alfrescoModels from backup after it was still broken, but no change…
Trying a SOLR reinstall and and will advise.

nightfalltech
Champ in-the-making
Champ in-the-making
even restoring SOLR from a previously working backup i now get……

SEVERE: Job Solr.CoreTracker-alfresco threw an unhandled Exception: 
org.alfresco.error.AlfrescoRuntimeException: 06050000 GetModelsDiff return status is 302
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1010)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1630)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1134)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:491)
   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)
05/07/2012 11:16:00 AM org.quartz.core.ErrorLogger schedulerError
SEVERE: Job (Solr.CoreTracker-alfresco threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.error.AlfrescoRuntimeException: 06050000 GetModelsDiff return status is 302]
   at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 06050000 GetModelsDiff return status is 302
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1010)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1630)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1134)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:491)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   … 1 more

andy
Champ on-the-rise
Champ on-the-rise
Hi

So why would you get an HTTP 302 ??
Configure SOLR to go to ther correct place (we are not following redirectlions)

Andy

nightfalltech
Champ in-the-making
Champ in-the-making
It is configured to go to the right place and I have no redirections….

     solrcore.properties contains

     alfresco.host=10.42.189.183
     alfresco.port=80
     alfresco.secureComms=none
     alfresco.port.ssl=443

     alfresco is running on tomcat on 10.42.189.183 ports 80 & 443
     as http://10.42.189.183/alfresco

     There are no redirects setup, nothing but alfresco is on these servers.

      Share happily talks to the same instance of alfresco with the same host set and SOLR used to work fine with no config changes.

andy
Champ on-the-rise
Champ on-the-rise
Hi

Was it your intention to disable SSL for SOLR tracking?
This is currently non-trivial (change the SOLR web app, confgure SOLR, configure Alfrecso, and make sure tomcat is OK)

What else did you do?
I believe the instructions are on the Wiki and/or part of the SOLR zip distribution.

Andy

nightfalltech
Champ in-the-making
Champ in-the-making
I did a complete reinstall, using SSL in SOLR and WCM is now working, except when i run the publish section workflow… there are no errors in the logs… and nothing is published to the live directory…

the editorial site works fine….