Module Upgrade : Error: Unable to initialize search index.

LabKey Support Forum
Module Upgrade : Error: Unable to initialize search index. hilariagrieve  2021-03-03 06:17
Status: Active
 

ALL SITE ERRORS returns me this log file. Can you help me?

ERROR LuceneSearchServiceImpl 2021-03-03 09:24:27,258 Module Upgrade : Error: Unable to initialize search index. Search will be disabled and new documents will not be indexed for searching until this is corrected and the server is restarted.
java.nio.file.NoSuchFileException: C:\Program Files\Apache Software Foundation\Tomcat 8.5\temp\labkey_full_text_index_4zf_Lucene50_0.tip
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:115)
at java.nio.channels.FileChannel.open(FileChannel.java:287)
at java.nio.channels.FileChannel.open(FileChannel.java:335)
at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:238)
at org.apache.lucene.codecs.blocktree.BlockTreeTermsReader.<init>(BlockTreeTermsReader.java:176)
at org.apache.lucene.codecs.lucene50.Lucene50PostingsFormat.fieldsProducer(Lucene50PostingsFormat.java:445)
at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:292)
at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:372)
at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:109)
at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:74)
at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:145)
at org.apache.lucene.index.ReadersAndUpdates.getReadOnlyClone(ReadersAndUpdates.java:197)
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:103)
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:473)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:103)
at org.apache.lucene.search.SearcherManager.<init>(SearcherManager.java:108)
at org.apache.lucene.search.SearcherManager.<init>(SearcherManager.java:76)
at org.labkey.search.model.WritableIndexManagerImpl.<init>(WritableIndexManagerImpl.java:106)
at org.labkey.search.model.WritableIndexManagerImpl.get(WritableIndexManagerImpl.java:86)
at org.labkey.search.model.LuceneSearchServiceImpl.initializeIndex(LuceneSearchServiceImpl.java:232)
at org.labkey.search.model.LuceneSearchServiceImpl.start(LuceneSearchServiceImpl.java:327)
at org.labkey.search.SearchModule.startBackgroundThreads(SearchModule.java:190)
at org.labkey.api.module.ModuleLoader.attemptStartBackgroundThreads(ModuleLoader.java:1309)
at org.labkey.api.module.ModuleLoader.initiateModuleStartup(ModuleLoader.java:1286)
at org.labkey.api.module.ModuleLoader.afterUpgrade(ModuleLoader.java:1451)
at org.labkey.api.module.ModuleLoader.lambda$startNonCoreUpgradeAndStartup$3(ModuleLoader.java:1433)
at java.lang.Thread.run(Thread.java:748)
ERROR StudyReload 2021-03-03 09:24:27,508 QuartzScheduler_Worker-1 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 09:29:27,418 QuartzScheduler_Worker-2 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 09:34:27,422 QuartzScheduler_Worker-3 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 09:39:27,426 QuartzScheduler_Worker-5 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 09:44:27,415 QuartzScheduler_Worker-6 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 09:49:27,419 QuartzScheduler_Worker-7 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 09:54:27,423 QuartzScheduler_Worker-9 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 09:59:27,427 uartzScheduler_Worker-10 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 10:04:27,416 QuartzScheduler_Worker-1 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 10:09:27,420 QuartzScheduler_Worker-3 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 10:14:27,424 QuartzScheduler_Worker-4 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 10:19:27,428 QuartzScheduler_Worker-5 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 10:24:27,417 QuartzScheduler_Worker-7 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 10:29:27,421 QuartzScheduler_Worker-8 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 10:34:27,425 QuartzScheduler_Worker-9 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 10:39:27,429 QuartzScheduler_Worker-1 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
ERROR StudyReload 2021-03-03 10:44:27,418 QuartzScheduler_Worker-2 : Study reload failed in folder /LIMS SGFER
org.labkey.api.admin.ImportException: Could not find file studyload.txt in the pipeline root for Lims SGFER
at org.labkey.study.importer.StudyReload$ReloadTask.attemptReload(StudyReload.java:398)
at org.labkey.study.importer.StudyReload$ReloadTask.execute(StudyReload.java:284)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)

 
 
chetc (LabKey Support) responded:  2021-04-26 12:54
Status: Closed

Hello,

Sorry for taking so long to get to this. We try and address our forums when we get a chance, but it has been especially busy lately.

The error is saying that since "labkey_full_text_index_4zf_Lucene50_0.tip" file was not found at "C:\Program Files\Apache Software Foundation\Tomcat 8.5\temp" location, it cannot initialize the search index and will not index new documents added to the server.

To correct this error, there are 2 ways you could go about it. Both methods will involving navigating to the "Full-Text Search Configuration" page. To do this click the "Gear Icon" --> "Site" --> "Admin Console (Settings tab) --> "Management/FULL-TEXT SEARCH"

  1. If you know where "labkey_full_text_index_4zf_Lucene50_0.tip" you could opt to change the "
    Path to full-text search index" so it points to the file. This will require that all of the data gets re-indexed.

  2. You could also "Delete" the current index and start the crawler again, essentially re-indexing all of your data.

Either way it seems like you will need to re-index your data which can be slow depending on how much there is. However you can just let it run in the background, and continue using the server.

More Information on Search:
https://www.labkey.org/Documentation/wiki-page.view?name=searchAdmin#search
https://www.labkey.org/Documentation/wiki-page.view?name=luceneSearch#terms

Let me know how it goes.

Thanks,
Chet