<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>[LF62GA2] Lucene index error</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119958445" />
  <subtitle>[LF62GA2] Lucene index error</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119958445</id>
  <updated>2026-04-04T15:14:05Z</updated>
  <dc:date>2026-04-04T15:14:05Z</dc:date>
  <entry>
    <title>RE: [LF62GA2] Lucene index error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120074383" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120074383</id>
    <updated>2020-10-09T15:20:46Z</updated>
    <published>2020-10-09T15:20:46Z</published>
    <summary type="html">You should &lt;strong&gt;&lt;em&gt;immediately&lt;/em&gt;&lt;/strong&gt; update to &lt;a href="https://liferay.dev/blogs/-/blogs/security-patches-for-liferay-portal-6-2-7-0-and-7-1"&gt;GA6 and patch&lt;/a&gt;. Then validate if your problem still persists. There&amp;#39;s no use in being a couple of bugfix-releases behind and selectively mock around with the environment, making later updates impossible. At the very least try to reproduce on the latest GA of that major version, but keep in mind that even that is outdated by now.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-10-09T15:20:46Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF62GA2] Lucene index error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120070843" />
    <author>
      <name>Jorge Diaz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120070843</id>
    <updated>2020-10-09T10:00:43Z</updated>
    <published>2020-10-09T10:00:43Z</published>
    <summary type="html">I  don&amp;#39;t  think updating Lucene library directly to  ROOT/WEB-INF/lib is a good idea.&lt;br /&gt;&lt;br /&gt;Perhaps you could try updating to a more recent version of Liferay.&lt;br /&gt;Liferay 6.2 GA2 is too old, you could try upgrading to latest 6.2 available release (6.2 GA6) updating from 6.2 GA2 should be easy.&lt;br /&gt;However, you should think upgrading to Liferay 7.3, starting with 7.x, we got rid of Lucene library and now Liferay just connect to an external Elasticsearch server.</summary>
    <dc:creator>Jorge Diaz</dc:creator>
    <dc:date>2020-10-09T10:00:43Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF62GA2] Lucene index error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120073331" />
    <author>
      <name>Tinfo Tinfo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120073331</id>
    <updated>2020-10-09T09:17:52Z</updated>
    <published>2020-10-09T09:17:52Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Jorge Diaz:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Hi Tinfo,&lt;br /&gt;Did you check you have enough free space in your disk?&lt;br /&gt;There is also a lucene bug that can be related to your problem: &lt;a href="https://issues.apache.org/jira/browse/LUCENE-5541"&gt;https://issues.apache.org/jira/browse/LUCENE-5541&lt;/a&gt;&lt;br /&gt;In that bug they say it is more likely to happen in case you have the index in a remote filesystem&lt;br /&gt;Is your lucene or data folder in a remote filesystem?&lt;br /&gt;To avoid throughtput issues it is better to have it in the local filesystem.&lt;/blockquote&gt;&lt;br /&gt;Hi Jorge,&lt;br /&gt;we are facing again the same problem, we have plenty of space in our disk and the Lucene index is stored inside the data folder of the Liferay Portal, so not in a remote filesystem, also this portal worked without index problem for years and no changes were made recently, i&amp;#39;ve read the issue you linked, there is a way to update Lucene to see if this fix the problem? For example we can simply download the updated Lucene jar and copy/paste to the tomcat\webapps\ROOT\WEB-INF\lib folder?Thanks.</summary>
    <dc:creator>Tinfo Tinfo</dc:creator>
    <dc:date>2020-10-09T09:17:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF62GA2] Lucene index error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119965475" />
    <author>
      <name>Jorge Diaz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119965475</id>
    <updated>2020-09-17T17:05:53Z</updated>
    <published>2020-09-17T17:05:53Z</published>
    <summary type="html">Hi Tinfo,&lt;br /&gt;Did you check you have enough free space in your disk?&lt;br /&gt;There is also a lucene bug that can be related to your problem: &lt;a href="https://issues.apache.org/jira/browse/LUCENE-5541"&gt;https://issues.apache.org/jira/browse/LUCENE-5541&lt;/a&gt;&lt;br /&gt;In that bug they say it is more likely to happen in case you have the index in a remote filesystem&lt;br /&gt;Is your lucene or data folder in a remote filesystem?&lt;br /&gt;To avoid throughtput issues it is better to have it in the local filesystem.</summary>
    <dc:creator>Jorge Diaz</dc:creator>
    <dc:date>2020-09-17T17:05:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF62GA2] Lucene index error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119963566" />
    <author>
      <name>Tinfo Tinfo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119963566</id>
    <updated>2020-09-17T09:11:21Z</updated>
    <published>2020-09-17T09:11:21Z</published>
    <summary type="html">Hi Jorge, thanks for the answer but as i wrote i already tried to stop liferay, delete old index, restart liferay and launch a reindex, but during the reindex the same error reapper with diffent FileName.</summary>
    <dc:creator>Tinfo Tinfo</dc:creator>
    <dc:date>2020-09-17T09:11:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF62GA2] Lucene index error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119958802" />
    <author>
      <name>Jorge Diaz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119958802</id>
    <updated>2020-09-17T08:29:06Z</updated>
    <published>2020-09-17T08:29:06Z</published>
    <summary type="html">Your index got corrupted.&lt;br /&gt;&lt;br /&gt;You have to:&lt;br /&gt;&lt;ol style="list-style: decimal outside;" start="1"&gt;&lt;li&gt;Stop Liferay&lt;/li&gt;&lt;li&gt;Manually delete the lucene index from disk. (its default location is in &lt;em&gt;[LIFERAY_HOME]/data/lucene&lt;/em&gt;)&lt;/li&gt;&lt;li&gt;Start Liferay&lt;/li&gt;&lt;li&gt;Execute a full reindex&lt;/li&gt;&lt;/ol&gt;If you are using a cluster, you have to:&lt;br /&gt;&lt;ol style="list-style: decimal outside;" start="1"&gt;&lt;li&gt;Stop all Liferay nodes&lt;/li&gt;&lt;li&gt;Manually delete the lucene index from disk in all nodes&lt;/li&gt;&lt;li&gt;Start one Liferay node (= it will be the master node)&lt;/li&gt;&lt;li&gt;Execute a full reindex&lt;/li&gt;&lt;li&gt;Once full reindex is done, start the other nodes, they should get the lucene index from the master node.&lt;/li&gt;&lt;/ol&gt;Be careful with the free space in your Liferey server.&lt;br /&gt;Lucene needs at least same free space than the size of all the lucene index.&lt;br /&gt;If you run out of disk space, any Lucene operation can cause data corruption in the index.&lt;br /&gt;Regards,&lt;br /&gt;Jorge Díaz</summary>
    <dc:creator>Jorge Diaz</dc:creator>
    <dc:date>2020-09-17T08:29:06Z</dc:date>
  </entry>
  <entry>
    <title>[LF62GA2] Lucene index error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119958444" />
    <author>
      <name>Tinfo Tinfo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119958444</id>
    <updated>2020-09-17T08:04:53Z</updated>
    <published>2020-09-17T08:04:53Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello, i have a problem with Lucene index, suddenly the index stopped working with this error, i've tried to clean the lucene folder and launch a full reindex but after a while the same error appear with a different FileName, the portal has been working fine for years so i don't understand what happened and why reindexing is not working, anyone have suggestions? Thanks.&lt;br&gt;&lt;pre&gt;&lt;code&gt;
06:33:24,495 WARN  [liferay/search_writer/SYSTEM_ENGINE-4][ProxyMessageListener:81] com.liferay.portal.kernel.search.SearchException: java.io.IOException: No sub-file with id .fnm found (fileName=_24j.cfs files: [])
com.liferay.portal.kernel.search.SearchException: java.io.IOException: No sub-file with id .fnm found (fileName=_24j.cfs files: [])
	at com.liferay.portal.search.lucene.LuceneIndexWriter.updateDocument(LuceneIndexWriter.java:128)
	at sun.reflect.GeneratedMethodAccessor274.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
	at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:51)
	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: No sub-file with id .fnm found (fileName=_24j.cfs files: [])
	at org.apache.lucene.index.CompoundFileReader.openInput(CompoundFileReader.java:156)
	at org.apache.lucene.index.CompoundFileReader.openInput(CompoundFileReader.java:145)
	at org.apache.lucene.index.FieldInfos.&amp;lt;init&amp;gt;(FieldInfos.java:74)
	at org.apache.lucene.index.SegmentCoreReaders.&amp;lt;init&amp;gt;(SegmentCoreReaders.java:73)
	at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:115)
	at org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:705)
	at org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:680)
	at org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:245)
	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3651)
	at org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:3417)
	at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3524)
	at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3506)
	at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3490)
	at com.liferay.portal.search.lucene.IndexAccessorImpl._doCommit(IndexAccessorImpl.java:311)
	at com.liferay.portal.search.lucene.IndexAccessorImpl._commit(IndexAccessorImpl.java:265)
	at com.liferay.portal.search.lucene.IndexAccessorImpl._write(IndexAccessorImpl.java:481)
	at com.liferay.portal.search.lucene.IndexAccessorImpl.updateDocument(IndexAccessorImpl.java:241)
	at com.liferay.portal.search.lucene.LuceneHelperImpl.updateDocument(LuceneHelperImpl.java:737)
	at com.liferay.portal.search.lucene.LuceneHelperUtil.updateDocument(LuceneHelperUtil.java:406)
	at com.liferay.portal.search.lucene.LuceneIndexWriter.updateDocument(LuceneIndexWriter.java:118)
	... 10 more
&amp;lt;/init&amp;gt;&amp;lt;/init&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Tinfo Tinfo</dc:creator>
    <dc:date>2020-09-17T08:04:53Z</dc:date>
  </entry>
</feed>
