Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Unable to create Lucene writer (lock file is in use).Unable to create Lucene writer (lock file is in use).
Previous
 
Next
New Post
3/3/2014 6:26 AM
 

I get this error several times in my log. Don't know how to solve it. Searched the internet for a while but nothing helps.

2014-03-03 12:22:18,450 [zagreb][Thread:42][ERROR] DotNetNuke.Services.Search.Internals.LuceneControllerImpl - Search Document error: Portal ID: 0, Tab ID: 0, Module ID: 981, Mod. Def.ID: 132, Url: , Unique Key: P0171, Last Modified: 2014-03-02T23:00:00.0000000Z, Culture: nl-BE

DotNetNuke.Services.Exceptions.SearchException: Unable to create Lucene writer (lock file is in use). Please recycle AppPool in IIS to release lock. ---> System.IO.IOException: The process cannot access the file 'D:\Websites\Matexi\App_Data\Search\write.lock' because it is being used by another process.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.File.InternalDelete(String path, Boolean checkHost)

   at System.IO.File.Delete(String path)

   at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.get_Writer()

   --- End of inner exception stack trace ---

   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.Internals.InternalSearchControllerImpl.AddSearchDocumentInternal(SearchDocument searchDocument, Boolean autoCommit)

   at DotNetNuke.Services.Search.Internals.InternalSearchControllerImpl.AddSearchDocuments(IEnumerable`1 searchDocuments)

 

 
New Post
3/3/2014 1:05 PM
 
are you running in a webfarm, or just a single site (if a webfarm ensure the scheduled task for search is set for only 1 machine). We do have a few issues open for this (such as https://dnntracker.atlassian.net/brow... ), and almost all of the cases are webfarm related, though we have anecdotal reports of it happening on "slow" machines where the app domain is being recycled -as the machine is slow the "old" appdomain still has the lock on the index file when the "new" appdomain is created. We will likely end up adding some defensive code to suppress this, but for now (if you're not on a webfarm), I'd suggest just ignoring/deleting the messages

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/12/2015 11:23 AM
 
I am getting the same thing. I am not in a webfarm. I have a pretty updated new server that we are running on as well. This started as soon as I updated to 7.3.4.

AssemblyVersion:7.3.4
PortalID:-1
PortalName:
UserID:-1
UserName:
ActiveTabID:-1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:33554943-a6c6-42fb-b620-debd1d96e3e5
InnerException:Unable to create Lucene writer (lock file is in use). Please recycle AppPool in IIS to release lock.
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:System.IO.__Error.WinIOError
StackTrace:
Message:
DotNetNuke.Services.Exceptions.SearchException: Unable to create Lucene writer (lock file is in use). Please recycle AppPool in IIS to release lock. ---> System.IO.IOException: The process cannot access the file 'C:\inetpub\wwwroot\dnn2\App_Data\Search\write.lock' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.get_Writer()
--- End of inner exception stack trace ---
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.SearchDataStore.StoreSearchItems(SearchItemInfoCollection searchItems)
at DotNetNuke.Services.Search.SearchEngine.IndexContent(DateTime startDate)
at DotNetNuke.Services.Search.SearchEngineScheduler.DoWork()

They are coming in bunches [Scheduler Event Failure , Scheduler Exception,General Exception ]

I have recycled the appPool in IIS but that only stops the exception for a short period of time.

I would love any suggestions.

Thanks!
 
New Post
2/12/2015 11:24 AM
 
I am getting the same thing. I am not in a webfarm. I have a pretty updated new server that we are running on as well. This started as soon as I updated to 7.3.4.

AssemblyVersion:7.3.4
PortalID:-1
PortalName:
UserID:-1
UserName:
ActiveTabID:-1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:33554943-a6c6-42fb-b620-debd1d96e3e5
InnerException:Unable to create Lucene writer (lock file is in use). Please recycle AppPool in IIS to release lock.
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:System.IO.__Error.WinIOError
StackTrace:
Message:
DotNetNuke.Services.Exceptions.SearchException: Unable to create Lucene writer (lock file is in use). Please recycle AppPool in IIS to release lock. ---> System.IO.IOException: The process cannot access the file 'C:\inetpub\wwwroot\dnn2\App_Data\Search\write.lock' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.get_Writer()
--- End of inner exception stack trace ---
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.SearchDataStore.StoreSearchItems(SearchItemInfoCollection searchItems)
at DotNetNuke.Services.Search.SearchEngine.IndexContent(DateTime startDate)
at DotNetNuke.Services.Search.SearchEngineScheduler.DoWork()

They are coming in bunches [Scheduler Event Failure , Scheduler Exception,General Exception ]

I have recycled the appPool in IIS but that only stops the exception for a short period of time.

I would love any suggestions.

Thanks!
 
New Post
2/12/2015 11:29 AM
 
I am getting the same error. I am not in a webfarm and I have a very high end new server that has been working great up until the 7.3.4 update we have not seen this error. The log is showing these errors coming in groups. (Scheduler Event Failure , Scheduler Exception, General Exception ) I have recycled the appPool in IIS but that only stops the exceptions for a short time and they start back up it looks like as soon as the next scheduled event is triggered.

AssemblyVersion:7.3.4
PortalID:-1
PortalName:
UserID:-1
UserName:
ActiveTabID:-1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:3244e020-a700-4e49-ab2d-8c73fc63da7a
InnerException:Unable to create Lucene writer (lock file is in use). Please recycle AppPool in IIS to release lock.
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:System.IO.__Error.WinIOError
StackTrace:
Message:
DotNetNuke.Services.Exceptions.SearchException: Unable to create Lucene writer (lock file is in use). Please recycle AppPool in IIS to release lock. ---> System.IO.IOException: The process cannot access the file 'C:\inetpub\wwwroot\dnn2\App_Data\Search\write.lock' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.get_Writer()
--- End of inner exception stack trace ---
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.SearchDataStore.StoreSearchItems(SearchItemInfoCollection searchItems)
at DotNetNuke.Services.Search.SearchEngine.IndexContent(DateTime startDate)
at DotNetNuke.Services.Search.SearchEngineScheduler.DoWork()


Any assistance would be great.

Thanks!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Unable to create Lucene writer (lock file is in use).Unable to create Lucene writer (lock file is in use).


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out