error I keep getting in email, but everything seems fine.

Sep 13, 2011 at 3:00 PM
I have errors set up to email me from N2.  I keep getting this error ever since a recent upgrade and some search changes.  I get it even when going into the site (not using search). However I have not run into any errors or issues while actually using the site.  Any ideas?
Lucene.Net.Store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@D:\n2\App_Data\SearchIndex\Pages\write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
   at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, Boolean closeDir, IndexDeletionPolicy deletionPolicy, Boolean autoCommit, Int32 maxFieldLength, IndexingChain indexingChain, IndexCommit commit)
   at Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, Boolean create, MaxFieldLength mfl)
   at N2.Persistence.Search.LuceneAccesor.CreateWriter(Directory d, Analyzer a)
   at N2.Persistence.Search.LuceneAccesor.GetWriter()
   at N2.Persistence.Search.LuceneIndexer.Update(ContentItem item)
   at N2.Persistence.Search.ContentChangeTracker.<>c__DisplayClass7.<ItemChanged>b__6()
   at N2.Persistence.Search.ContentChangeTracker.<>c__DisplayClass10.<WrapActionInErrorHandling>b__f()
Coordinator
Sep 13, 2011 at 9:15 PM

It would be interesting if you could try 2.2.1.1. It's available on nuget and you could install it onto a new project and then copy dlls over.

Oct 4, 2011 at 2:30 PM

Well I have tried everything I know of short of upgrading to stop these with no luck.  I am leary to upgrade with the issues I had going to 2.2.1.

Are you pretty confident this will solve the issue (ie work was done on this)?  Or is this just the next thing to try?  Like I said I don't see any problems with the site other then I get tons of these error report emails.

Thank you.

Oct 4, 2011 at 4:44 PM

If you don't use the Search feature, you can disable it entirely to rid yourself of the message (At least it worked for me). Add element this to your web.config:

<n2>
    <database>
        <search enabled="false" />
    </database>
</n2>