DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Search Update Error

Sort:
You are not authorized to post a reply.





Veteran Member





    What is the right way to fix this?

    Message:Lock obtain timed out: NativeFSLock@F:\npiDNN2\App_Data\Search\write.lock

    StackTrace:

       at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
       at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, IndexDeletionPolicy deletionPolicy, Int32 maxFieldLength, IndexingChain indexingChain, IndexCommit commit)
       at Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, MaxFieldLength mfl)
       at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.get_Writer()
       at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.Delete(Query query)
       at DotNetNuke.Services.Search.Internals.InternalSearchControllerImpl.DeleteSearchDocumentInternal(SearchDocument searchDocument, Boolean autoCommit)
       at DotNetNuke.Services.Search.SearchEngine.DeleteRemovedObjects()
       at DotNetNuke.Services.Search.SearchEngineScheduler.DoWork()
    Joe Craig
    DNN MVP
    Patapsco Research Group





    Veteran Member





      search tries to update the index, while it is locked by another process.
      If this is not caused by a sudden restart (keeping the lock file locked) and there are either multiple servers processing the index (in web farm scenarios make sure, search index is assigned to a single web server), there must be an external service blocking the file, e.g. backup, virus scan.





      Veteran Member





        I think that this happened when the installation was moved from one server to a new one.

        Also I get an error loading the Search PB page when I try to go to Basic Settings.

        Would deleting the Write Lock file be a solution?
        Joe Craig
        DNN MVP
        Patapsco Research Group





        Veteran Member





          yes, you should try deleting the lock file in /app_data/search.





          Veteran Member





            Hmmm ...

            Here is the entire traceback:

            Message:Lock obtain timed out: NativeFSLock@F:\npiDNN2\App_Data\Search\write.lock

            StackTrace:

            at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
            at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, IndexDeletionPolicy deletionPolicy, Int32 maxFieldLength, IndexingChain indexingChain, IndexCommit commit)
            at Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, MaxFieldLength mfl)
            at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.get_Writer()
            at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.Delete(Query query)
            at DotNetNuke.Services.Search.Internals.InternalSearchControllerImpl.DeleteSearchDocumentInternal(SearchDocument searchDocument, Boolean autoCommit)
            at DotNetNuke.Services.Search.SearchEngine.DeleteRemovedObjects()
            at DotNetNuke.Services.Search.SearchEngineScheduler.DoWork()

            And there is no file F:\npiDNN2\App_Data\Search\write.lock
            Joe Craig
            DNN MVP
            Patapsco Research Group





            Veteran Member





              File F:\npiDNN2\App_Data\Search\write.lock is temporary and deleted upon app restart.
              The Lucene timeout indicates that DNN tries to modify or delete the file, but is unable, because it is locked by a different process - now you need to find out, wich process. Is there anything in the windows system logs?
              You are not authorized to post a reply.

              These Forums are dedicated to the discussion of DNN Platform.

              For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

              1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
              2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
              3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
              4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
              5. No Flaming or Trolling.
              6. No Profanity, Racism, or Prejudice.
              7. Site Moderators have the final word on approving / removing a thread or post or comment.
              8. English language posting only, please.

              Would you like to help us?

              Awesome! Simply post in the forums using the link below and we'll get you started.

              Get Involved