ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Index Contents and Documents for Searches Job fails with SRCH-01003 Error


Article ID: 131385


Updated On:


Clarity PPM On Premise


Index content for document and searches job fails with 'SRCH-01003: Error occurred while indexing search contents' and 'Lock obtain timed out: [email protected]:\searchindex\clarity\nspider\write.lock' errors in the bg-ca logs.  


The cause can be the lucene engine used for searching is corrupted and you may need to perform additional step to fix it 


Component: PPMSTU


Steps to resolve: 

1.Login to NSA 
2.Under properties > Documents and Search, Disable Use Synchronous Indexing 
3.Restart services 
4.In Clarity > Home > Reports and Jobs 
5.Run the Index contents and documents for searches job. 
6.See if the job completes successfully. 

Note: The Index content for document and searches job cannot be run while the the 'Disable Use Synchronous' option is checked. Either the box should be checked OR the index Content for document and searches job run. 

SaaS customers, please contact Broadcom Support for assistance.

Additional Information

If the above steps dont help then you need to perform below 


1. Pause the "Index contents and documents for search" scheduled job

2. Turn off synchronous indexing in the NSA. NOTE: Make sure you restart
services after doing this.

3. Using CSA add "\javatmp" to app service jvm  parameters (unless this parameter is already present and you can set the path based on your operating system)

4. Using CSA add "\javatmp" to bg service jvm parameters (unless this parameter is already present and you can set the path based on your operating system)

5. Search for and delete any files that end in write.lock on your app
They will look something like this:

6. Restart app and bg services.

7. Delete the nspider and nspiderfile folders from the file server  

8. Log into the app server as someone who has full control of the filestore folders including the ability to create new folders/files like the nspiderfiles folders 

9. Run the "admin search recreate-index-data" command 

10. Run the "admin search recreate-index-files" command 

11. When this has completed, turn on synchronous indexing in the CSA.