Solr Crashes when restarted

617 views
Skip to first unread message

Wade Robson

unread,
Jun 17, 2016, 6:19:20 PM6/17/16
to Alfresco Technical Discussion
Hello, 
I am an alfresco newb and as such I have run into a problem that I can't seem to fix. I have recently rebooted our server to add more resources like CPU cores and RAM. I then adjusted the JVM to take advantage of the additional RAM.

The server came back fine, but searching stopped working. I figured out that this was because of the solr index which I was able to rebuild by following these steps.

- Stop alfresco

- remove files in:

$ALFRESCO/alf_data/solr4/index/archive/SpacesStore/index/*

$ALFRESCO/alf_data/solr4/index/workspace/SpacesStore/index/*

$ALFRESCO/alf_data/solr4/content/*

$ALFRESCO/alf_data/solr4/model/*


- restart alfresco

 
Searching was restored all was well!! ... Until the backup script restarted the service, then solr just keeps throwing the same exception:

2016-06-17 13:35:40,018 ERROR [org.quartz.core.ErrorLogger] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 05170015 Failed to compile model lnk:linksmodel]
at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 05170015 Failed to compile model lnk:linksmodel
at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:108)
at org.alfresco.repo.dictionary.M2Model.compile(M2Model.java:163)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelImpl(DictionaryDAOImpl.java:266)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelIgnoringConstraints(DictionaryDAOImpl.java:259)
at org.alfresco.solr.AlfrescoSolrDataModel.putModel(AlfrescoSolrDataModel.java:1173)
at org.alfresco.solr.SolrInformationServer.putModel(SolrInformationServer.java:2849)
at org.alfresco.solr.tracker.ModelTracker.loadModel(ModelTracker.java:516)
at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:138)
at org.alfresco.solr.tracker.ModelTracker.<init>(ModelTracker.java:85)
at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
... 1 more
Caused by: org.alfresco.service.namespace.NamespaceException: URI http://www.alfresco.org/model/content/1.0 cannot be imported as it is not defined (with prefix cm
at org.alfresco.repo.dictionary.CompiledModel.createLocalPrefixResolver(CompiledModel.java:206)
at org.alfresco.repo.dictionary.CompiledModel.constructDefinitions(CompiledModel.java:130)
at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:88)
... 12 more


So I'm getting 2 other exceptions that are probably important. This one gets thrown when the service is being shutdown:
2016-06-17 13:45:33,153 ERROR [org.apache.solr.core.SolrCore] java.lang.NullPointerException
at org.alfresco.solr.AlfrescoSolrCloseHook.preClose(AlfrescoSolrCloseHook.java:71)
at org.apache.solr.core.SolrCore.close(SolrCore.java:1033)
at org.apache.solr.core.SolrCores.close(SolrCores.java:120)
at org.apache.solr.core.CoreContainer.shutdown(CoreContainer.java:397)
at org.apache.solr.servlet.SolrDispatchFilter.destroy(SolrDispatchFilter.java:200)
at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:313)
at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:4890)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5711)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1591)
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1580)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

And this one which show's up at the start of a rebuild:
2016-06-16 14:21:54,753 ERROR [org.alfresco.solr.tracker.AbstractTracker] Model tracking failed
org.alfresco.service.cmr.dictionary.DictionaryException: 05160001 d_dictionary.model.err.no_model
at org.alfresco.repo.dictionary.AbstractDictionaryRegistry.getModel(AbstractDictionaryRegistry.java:97)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.getCompiledModel(DictionaryDAOImpl.java:308)
at org.alfresco.solr.AlfrescoSolrDataModel.getM2Model(AlfrescoSolrDataModel.java:1223)
at org.alfresco.solr.SolrInformationServer.getM2Model(SolrInformationServer.java:1061)
at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:304)
at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:207)
at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(ModelTracker.java:229)
at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:131)
at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)


I'm searching does come back when I run through the steps about so for now I'm fine doing that.
Greatly appreciate any suggestions.

Thanks. 
 

nat mac

unread,
Jun 6, 2018, 3:02:26 AM6/6/18
to Alfresco Technical Discussion

Hello Wade
I have the same problem, have you found the solution?
Nat
Reply all
Reply to author
Forward
0 new messages