Every now and then i get this error. It's only a few weeks ago i installed umbraco. It has 2 content nodes, and around 500 media nodes.
Any ideas what's wrong?
2015-12-21 14:31:32,945 [P70380/D13/T1] WARN Umbraco.Core.Sync.DatabaseServerMessenger - No last synced Id found, this generally means this is a new server/install. The server will rebuild its caches and indexes and then adjust it's last synced id to the latest found in the database and will start maintaining cache updates based on that id
2015-12-21 14:31:32,961 [P70380/D13/T1] INFO umbraco.content - Load Xml from file...
2015-12-21 14:31:32,961 [P70380/D13/T1] INFO umbraco.content - Loaded Xml from file.
2015-12-21 14:31:32,961 [P70380/D13/T1] INFO umbraco.content - Loading content from database...
2015-12-21 14:31:34,273 [P70380/D13/T1] ERROR Umbraco.Core.CoreBootManager - An error occurred running OnApplicationStarted for handler Umbraco.Web.BatchedDatabaseServerMessengerStartup
Lucene.Net.Store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@d:\web\localuser\jonask.net\public_html\App_Data\TEMP\ExamineIndexes\NT20\InternalMember\Index\write.lock: System.IO.IOException: The process cannot access the file 'd:\web\localuser\jonask.net\public_html\App_Data\TEMP\ExamineIndexes\NT20\InternalMember\Index\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, Boolean useLongPath, Boolean checkHost)
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:\web\localuser\jonask.net\public_html\App_Data\TEMP\ExamineIndexes\NT20\InternalMember\Index\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, Boolean useLongPath, Boolean checkHost)
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..ctor(Directory d, Analyzer a, Boolean create, MaxFieldLength mfl)
at Examine.LuceneEngine.Providers.LuceneIndexer.CreateIndexWriter()
at UmbracoExamine.BaseUmbracoIndexer.CreateIndexWriter()
at Examine.LuceneEngine.Providers.LuceneIndexer.EnsureIndex(Boolean forceOverwrite)
at Examine.LuceneEngine.Providers.LuceneIndexer.RebuildIndex()
at UmbracoExamine.UmbracoContentIndexer.RebuildIndex()
at Examine.ExamineManager._RebuildIndex()
at Umbraco.Web.WebBootManager.<InitializeResolvers>b__c()
at Umbraco.Core.Sync.DatabaseServerMessenger.Initialize()
at Umbraco.Core.Sync.DatabaseServerMessenger.Boot()
at Umbraco.Web.BatchedDatabaseServerMessenger.Startup()
at Umbraco.Web.BatchedDatabaseServerMessengerStartup.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
at Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
at Umbraco.Core.CoreBootManager.<Complete>b__8(IApplicationEventHandler x)
2015-12-21 14:31:34,273 [P70380/D13/T1] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
Lucene.Net.Store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@d:\web\localuser\jonask.net\public_html\App_Data\TEMP\ExamineIndexes\NT20\InternalMember\Index\write.lock: System.IO.IOException: The process cannot access the file 'd:\web\localuser\jonask.net\public_html\App_Data\TEMP\ExamineIndexes\NT20\InternalMember\Index\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, Boolean useLongPath, Boolean checkHost)
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:\web\localuser\jonask.net\public_html\App_Data\TEMP\ExamineIndexes\NT20\InternalMember\Index\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, Boolean useLongPath, Boolean checkHost)
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..ctor(Directory d, Analyzer a, Boolean create, MaxFieldLength mfl)
at Examine.LuceneEngine.Providers.LuceneIndexer.CreateIndexWriter()
at UmbracoExamine.BaseUmbracoIndexer.CreateIndexWriter()
at Examine.LuceneEngine.Providers.LuceneIndexer.EnsureIndex(Boolean forceOverwrite)
at Examine.LuceneEngine.Providers.LuceneIndexer.RebuildIndex()
at UmbracoExamine.UmbracoContentIndexer.RebuildIndex()
at Examine.ExamineManager._RebuildIndex()
at Umbraco.Web.WebBootManager.<InitializeResolvers>b__c()
at Umbraco.Core.Sync.DatabaseServerMessenger.Initialize()
at Umbraco.Core.Sync.DatabaseServerMessenger.Boot()
at Umbraco.Web.BatchedDatabaseServerMessenger.Startup()
at Umbraco.Web.BatchedDatabaseServerMessengerStartup.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
at Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
at Umbraco.Core.CoreBootManager.<Complete>b__8(IApplicationEventHandler x)
at Umbraco.Core.EnumerableExtensions.ForEach[TItem](IEnumerable`1 items, Action`1 action)
at Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete)
at Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete)
at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)
at Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e)
2015-12-21 14:31:37,211 [P70380/D13/T17] INFO umbraco.content - Save Xml to file...
2015-12-21 14:31:37,211 [P70380/D13/T10] INFO umbraco.content - Saved Xml to file.
2015-12-21 14:31:44,273 [P70380/D13/T30] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=InternalMemberIndexer, NodeId=-1
System.Exception: Cannot index queue items, the index is currently locked,, IndexSet: InternalMemberIndexSet
2015-12-21 14:31:44,273 [P70380/D13/T30] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=InternalIndexer, NodeId=-1
System.Exception: Cannot index queue items, the index is currently locked,, IndexSet: InternalIndexSet
2015-12-21 14:31:44,273 [P70380/D13/T30] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=ExternalIndexer, NodeId=-1
System.Exception: Cannot index queue items, the index is currently locked,, IndexSet: ExternalIndexSet
The first thing I would try would be deleting the examine indexes, I'd also check permissions on that directory to make sure that which ever account the website is running under has permissions to write to it.
write.lock the process cannot access the file
Hello.
Every now and then i get this error. It's only a few weeks ago i installed umbraco. It has 2 content nodes, and around 500 media nodes.
Any ideas what's wrong?
Any help anyone please?
Hi Jonas,
The first thing I would try would be deleting the examine indexes, I'd also check permissions on that directory to make sure that which ever account the website is running under has permissions to write to it.
Nik
Is there a way to disable examine as i have no need for it?
Hi Jonas,
There are various hits/suggestions on methods of disabling examine in this thread here: https://our.umbraco.org/forum/getting-started/installing-umbraco/20999-Disable-Lucene-Examine One of the important ones is
which Shannon suggests.
is working on a reply...