Failed to obtain node locks (Search initialization error)
Users report empty search landing pages and errors in the logs related to initialization of full-text search (FTS) functionality.
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 ; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was )?
Steps to Reproduce
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.
- 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.
0% found this useful