Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arslan 8 posts 78 karma points
    Jun 28, 2021 @ 11:22
    Arslan
    0

    Umbraco site Azure Deployment Issue

    Hi All,

    I deployed my Umbraco site from AWS to Azure server. Site was working fine on AWS but got issues on Azure. I configured the WebApp as per the instructions on this link: https://our.umbraco.com/Documentation/Fundamentals/Setup/Server-Setup/azure-web-apps-v7

    I have updated my webapp, web.config and ExamineSettings.config as per the instructions but I am facing two issues :

    1. 'Lock obtain timed out' exception is logged which crashes the site even though, as per the instructions in the above link, this error should not come. My umbraco version is '7.6.0' and Examine version is '0.1.82'
    2. Ever since I updated my configurations as per above link, Umbraco.config file is not generating. I tried publishing the entire site, but it didn't work. Restarting the application didn't work either.

    I am posting stack trace for LockObtainFailedException. Any pointer that might help in resolving these issues are appreciated.

    Thanks.

    Lucene.Net.Store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@C:\home\site\wwwroot\AppData\TEMP\ExamineIndexes\Internal\Index\write.lock: System.IO.IOException: The process cannot access the file 'C:\home\site\wwwroot\AppData\TEMP\ExamineIndexes\Internal\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, SECURITYATTRIBUTES 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 'C:\home\site\wwwroot\AppData\TEMP\ExamineIndexes\Internal\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, SECURITYATTRIBUTES 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 Examine.LuceneEngine.Directories.MultiIndexLock.Obtain(Int64 lockWaitTimeout) in X:\Projects\Examine\Examine\src\Examine\LuceneEngine\Directories\MultiIndexLock.cs:line 38 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.WriterFactory(Directory d) in X:\Projects\Examine\Examine\src\Examine\LuceneEngine\Providers\LuceneIndexer.cs:line 1867 at Examine.LuceneEngine.WriterTracker.<>cDisplayClass70.

Please Sign in or register to post replies

Write your reply to:

Draft