powered by Jive Software

java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.SimpleFSDirectory@...: files: indexprops.xml write.lock

I have also met this issue.

Openfire version: 4.3.1;
OS: Windows 2016
Java version: zulu8.36.0.1-ca-jdk8.0.202-win_x64
Monitoring plugin version: 1.7.0

logs:
2019.04.01 12:00:43 org.jivesoftware.openfire.archive.ArchiveIndexer - no segments* file found in org.apache.lucene.store.SimpleFSDirectory@C:\chat\monitoring\search lockFactory=org.apache.lucene.store.SimpleFSLockFactory@283ca875: files: indexprops.xml write.lock

java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.SimpleFSDirectory@C:\chat\monitoring\search lockFactory=org.apache.lucene.store.SimpleFSLockFactory@283ca875: files: indexprops.xml write.lock

at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:634) ~[lucene-core-2.9.4.jar!/:?]

at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:517) ~[lucene-core-2.9.4.jar!/:?]

at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:306) ~[lucene-core-2.9.4.jar!/:?]

at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1596) ~[lucene-core-2.9.4.jar!/:?]

at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1090) ~[lucene-core-2.9.4.jar!/:?]

at org.apache.lucene.index.IndexModifier.init(IndexModifier.java:176) ~[lucene-core-2.9.4.jar!/:?]

at org.apache.lucene.index.IndexModifier.<init>(IndexModifier.java:123) ~[lucene-core-2.9.4.jar!/:?]

at org.jivesoftware.openfire.archive.ArchiveIndexer.updateIndex(ArchiveIndexer.java:250) [monitoring-1.7.0.jar!/:?]

at org.jivesoftware.openfire.archive.ArchiveIndexer$2.run(ArchiveIndexer.java:175) [monitoring-1.7.0.jar!/:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_202]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_202]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]

Similar issue are:


[Solution: I then re-created the index and the missing file was created and the error went away]
and

[ Solution: … so I rebuilt my indexes in the monitoring plugin and it created the file where it is needed.]

But the solution is unclear. Still have no idea how to rebuild or recreate the index.

Wait for some experts to answer this question.

I have moved your question to a separate thread as those threads were old and about older versions of Openfire than you use probably. Do you see any real problems aside that error? Messages not being archived or not showing up in the search?

Provide more information about your setup.

Openfire version
OS
Java version
Monitoring plugin version

Also copy here your error, it might looks similar like in that post, but may have some additional information.

Thank you wroot! Updated.

To re-create indexes go to Admin Console. Archiving menu. Archiving Settings. Press Rebuild Index at the bottom.

What i am able to find about these Lucene errors is that there could be no index file (which rebuilding might fix) or that there are permissions issues (Openfire process should have write permissions in that /monitoring/search folder) or maybe lock files are in that folder (stop Openfire, do backup and delete these lock files) https://stackoverflow.com/questions/3802021/no-segments-file-found

Thank you wroot!