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.