Error in Full Text Index Refresh task

Which IIQ version are you inquiring about?

8.3

Please share any images or screenshots, if relevant.

image

Share all details about your problem, including any error messages you may have received.

We are getting below exception when we run Full Text Index Refresh task.

sailpoint.tools.GeneralException: Lock held by this virtual machine: C:\Program Files\apache-tomcat-9.0.80-windows-x64\apache-tomcat-9.0.80\webapps\identityiq\WEB-INF\BundleManagedAttributeIndex\write.lock
at sailpoint.fulltext.Builder.startLucene(Builder.java:342)
at sailpoint.fulltext.Builder.refreshIndex(Builder.java:213)
at sailpoint.fulltext.Builder.refreshAll(Builder.java:170)
at sailpoint.api.FullTextifier.refreshAll(FullTextifier.java:199)
at sailpoint.task.FullTextIndexer.execute(FullTextIndexer.java:91)
at sailpoint.api.TaskManager.runSync(TaskManager.java:909)
at sailpoint.api.TaskManager.runSync(TaskManager.java:724)
at sailpoint.scheduler.JobAdapter.execute(JobAdapter.java:128)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock held by this virtual machine: C:\Program Files\apache-tomcat-9.0.80-windows-x64\apache-tomcat-9.0.80\webapps\identityiq\WEB-INF\BundleManagedAttributeIndex\write.lock
at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:139)
at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41)
at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:923)
at sailpoint.fulltext.Builder.startLucene(Builder.java:336)

We have tried below options to fix the issue, but it did not help.
• Deleted this file - (C:\Program Files\apache-tomcat-9.0.80-windows-x64\apache-tomcat-9.0.80\webapps\identityiq\WEB-INF\BundleManagedAttributeIndex\write.lock) and ran the Full Text Index Refresh task.
• Deleted this folder - (C:\Program Files\apache-tomcat-9.0.80-windows-x64\apache-tomcat-9.0.80\webapps\identityiq\WEB-INF\BundleManagedAttributeIndex) and ran the Full Text Index Refresh task.
• Stopped tomcat server, deleted this file - (C:\Program Files\apache-tomcat-9.0.80-windows-x64\apache-tomcat-9.0.80\webapps\identityiq\WEB-INF\BundleManagedAttributeIndex\write.lock), started tomcat server and ran the Full Text Index Refresh task.
• Stopped tomcat server, deleted this folder - (C:\Program Files\apache-tomcat-9.0.80-windows-x64\apache-tomcat-9.0.80\webapps\identityiq\WEB-INF\BundleManagedAttributeIndex) ), started tomcat server and ran the Full Text Index Refresh task.
• Restarted IIQ VM, deleted this file - (C:\Program Files\apache-tomcat-9.0.80-windows-x64\apache-tomcat-9.0.80\webapps\identityiq\WEB-INF\BundleManagedAttributeIndex\write.lock), started tomcat server and ran the Full Text Index Refresh task.

stop the tomcat app server on this machine, Delete the temp folder on apache and then start the tomcat. Then try running the task.

See if doing above helps.

try one more step

delete BundleManagedAttributeIndex folder & restart server .
Uncheck the setting “Enable automatic index refresh” on the Lifecycle Manager → Configure

see if this works ?

ref : Full text index task failing with the error "Cannot forcefully unlock a NativeFSLock which is held by another indexer component: D:\abc\ftindex\Bundle… - Compass