bishop335 / subtext

Automatically exported from code.google.com/p/subtext
0 stars 0 forks source link

Lucene.Net.Store.LockObtainFailedException #296

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I recently experienced the following error across all individual blogs on a 
multi-blog setup.  The main page was unaffected.

Lucene.Net.Store.LockObtainFailedException: Lock obtain timed out: 
NativeFSLock@D:\domains\blogs2.sqlteam.com\App_Data\write.lock: 
System.IO.IOException: The process cannot access the file 
'D:\domains\blogs2.sqlteam.com\App_Data\write.lock' because it is being used by 
another process. at System.IO.__Error.WinIOError(Int32 errorCode, String 
maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, 
FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, 
Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, 
FileAccess access) at Lucene.Net.Store.NativeFSLock.Obtain() ---> 
System.IO.IOException: The process cannot access the file 
'D:\domains\blogs2.sqlteam.com\App_Data\write.lock' because it is being used by 
another process. at System.IO.__Error.WinIOError(Int32 errorCode, String 
maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, 
FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, 
Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, 
FileAccess access) at Lucene.Net.Store.NativeFSLock.Obtain() --- End of inner 
exception stack trace --- 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.Init(Directory d, Analyzer a, Boolean 
closeDir, IndexDeletionPolicy deletionPolicy, Boolean autoCommit, Int32 
maxFieldLength, IndexingChain indexingChain, IndexCommit commit) at 
Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, MaxFieldLength mfl) 
at 
Subtext.Framework.Services.SearchEngine.SearchEngineService.EnsureIndexWriter() 
at 
Subtext.Framework.Services.SearchEngine.SearchEngineService.DoWriterAction[T](Fu
nc`2 action) at 
Subtext.Framework.Services.SearchEngine.SearchEngineService.get_Searcher() at 
Subtext.Framework.Services.SearchEngine.SearchEngineService.RelatedContents(Int3
2 entryId, Int32 max, Int32 blogId) at 
Subtext.Web.UI.Controls.RelatedLinks.OnLoad(EventArgs e) in 
C:\Projects\SqlTeam\BlogDEV\SubText251\src\Subtext.Web\UI\Controls\RelatedLinks.
cs:line 51 at System.Web.UI.Control.LoadRecursive() at 
System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() 
at System.Web.UI.Control.LoadRecursive() at 

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
2.5.1.0

Please provide any additional information below.

Original issue reported on code.google.com by billgraz...@gmail.com on 16 Feb 2011 at 8:47

GoogleCodeExporter commented 8 years ago
In further review I see the path C:\Projects buried in this error message.  
That's my local development folder.  Could I have mixed in development and 
production?

Note: This error came from production.

Original comment by billgraz...@gmail.com on 16 Feb 2011 at 8:48

GoogleCodeExporter commented 8 years ago
Stack traces always show the path which it was compiled from.

Original comment by martin.m...@gmail.com on 14 Apr 2011 at 2:07

GoogleCodeExporter commented 8 years ago

Original comment by haac...@gmail.com on 16 May 2011 at 4:12