Hello,
After upgrading Dynamicweb from 9.4.4 to 9.4.12 we have noticed after starting up our app the product list on our frontpage disapeared. After manually building the indexes the product appear again.
After looking into the logs, I noticed that an exception gets thrown. The ExecuteRead exception can't be shown in our logs so I've attached an screenshot for it.
Product index builder experienced a fatal error.. System.IO.IOException: The process cannot access the file 'D:\home\site\wwwroot\Files\System\Indexes\repository\index\InstanceB\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 Lucene.Net.Store.NativeFSLockFactory.ClearLock(String lockName) in d:\Lucene.Net\FullRepo\trunk\src\core\Store\NativeFSLockFactory.cs:line 124 at Lucene.Net.Store.Directory.ClearLock(String name) in d:\Lucene.Net\FullRepo\trunk\src\core\Store\Directory.cs:line 120 at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, IndexDeletionPolicy deletionPolicy, Int32 maxFieldLength, IndexingChain indexingChain, IndexCommit commit) in d:\Lucene.Net\FullRepo\trunk\src\core\Index\IndexWriter.cs:line 1227 at Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, Boolean create, MaxFieldLength mfl) in d:\Lucene.Net\FullRepo\trunk\src\core\Index\IndexWriter.cs:line 1019 at Dynamicweb.Indexing.Lucene.LuceneIndexWriter.Open(Boolean openForAppend) at Dynamicweb.Ecommerce.Indexing.ProductIndexBuilder.Build(IIndexWriter writer, Tracker tracker)
A second issue is We also have a notification service set up on index build failures. But no emails were delivered to these addresses.
Since we are testing the upgrade, we disabled all the automated calls to /admin/Public/TaskExecute.aspx. So I think this index gets build during startup. We are running this app on Azure with no custom code for this specific index.
Our steps to reproduce:
Build indexes manually ( see them succeed)
Restart your app on azure
Check the product list and Repositories in the admin they are now marked as failed.
This hapens 8/10 times
Best regards, Antek Drzewiecki