Support Article
Failed to obtain node locks (Search initialization error)
Summary
Users report empty search landing pages and errors in the logs related to initialization of full-text search (FTS) functionality.
Error Messages
ERROR - Failed to initialize full text search functionality for this node.
…
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [index directory] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
Steps to Reproduce
Unknown
Root Cause
This issue might happen on on-premise installations, where two PRPC nodes share the same file system. Multiple PRPC nodes are trying to use the same index directory, which is an illegal configuration.
Resolution
- Make sure that the Dynamic System Setting indexing/explicitindexdir is not set,
- Use the -Dindex.directory JVM argument to specify index directories for search nodes, following the procedure described in SA-50626 Search Index file directory changes on restart.
- Make sure that each permanent index host PRPC node uses a distinct physical directory.
If the PRPC nodes are running on the same physical machine, the paths must be different for each of them.
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.