Copied to clipboard

Flag this post as spam?

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


  • Kris 14 posts 96 karma points
    Mar 11, 2020 @ 14:59
    Kris
    1

    Boot failed: Umbraco cannot run. Nucache used by another process

    I am hosted on azure and STILL getting this error even with the settings described here:

    https://our.umbraco.com/Documentation/Getting-Started/Setup/Server-Setup/azure-web-apps#recommended-configuration

    specifically app settings:

    <add key="Umbraco.Core.LocalTempStorage" value="EnvironmentTemp" />
    <add key="Umbraco.Examine.LuceneDirectoryFactory" value="Examine.LuceneEngine.Directories.SyncTempEnvDirectoryFactory, Examine" />
    <add key="WEBSITE_DISABLE_OVERLAPPED_RECYCLING" value="1" />
    

    The app does not scale out (more than one instance).. So i am confused and frustrated as to why this is still happening?

    Here is the actual error:

    Server Error in '/' Application. Boot failed: Umbraco cannot run. See Umbraco's log file for more details.

    -> Umbraco.Core.Exceptions.BootFailedException: Boot failed.

    -> System.IO.IOException: The process cannot access the file 'D:\local\Temp\UmbracoData\c5e194110ba468ba2305ef3ad38d9528\NuCache\NuCache.Content.db' 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, FileShare share, Int32 bufferSize, FileOptions options) at CSharpTest.Net.IO.TransactedCompoundFile..ctor(Options options) at CSharpTest.Net.Storage.BTreeFileStoreV2..ctor(Options options) at CSharpTest.Net.Collections.BPlusTree2.OptionsV2.CreateStorage() at CSharpTest.Net.Collections.BPlusTree2.NodeCacheBase..ctor(BPlusTreeOptions2 options) at CSharpTest.Net.Collections.BPlusTree2.NodeCacheNone..ctor(BPlusTreeOptions2 options) at CSharpTest.Net.Collections.BPlusTree2..ctor(BPlusTreeOptions`2 ioptions) at Umbraco.Web.PublishedCache.NuCache.DataSource.BTree.GetTree(String filepath, Boolean exists) in d:\a\1\s\src\Umbraco.Web\PublishedCache\NuCache\DataSource\BTree.cs:line 27 at Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService.MainDomRegister() in d:\a\1\s\src\Umbraco.Web\PublishedCache\NuCache\PublishedSnapshotService.cs:line 176 at Umbraco.Core.MainDom.Register(Action install, Action release, Int32 weight) in d:\a\1\s\src\Umbraco.Core\MainDom.cs:line 102 at Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService..ctor(PublishedSnapshotServiceOptions options, IMainDom mainDom, IRuntimeState runtime, ServiceContext serviceContext, IPublishedContentTypeFactory publishedContentTypeFactory, IdkMap idkMap, IPublishedSnapshotAccessor publishedSnapshotAccessor, IVariationContextAccessor variationContextAccessor, IProfilingLogger logger, IScopeProvider scopeProvider, IDocumentRepository documentRepository, IMediaRepository mediaRepository, IMemberRepository memberRepository, IDefaultCultureAccessor defaultCultureAccessor, IDataSource dataSource, IGlobalSettings globalSettings, IEntityXmlSerializer entitySerializer, IPublishedModelFactory publishedModelFactory, UrlSegmentProviderCollection urlSegmentProviders) in d:\a\1\s\src\Umbraco.Web\PublishedCache\NuCache\PublishedSnapshotService.cs:line 125 at DynamicMethod(Object[] )

  • Denford 132 posts 323 karma points
    May 13, 2020 @ 03:49
    Denford
    0

    @Kris did you even find any solution for this, as i am also still getting this with those settings on the config for v8.0.2 :(

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    May 14, 2020 @ 12:46
    Jeavon Leopold
    2

    WEBSITE_DISABLE_OVERLAPPED_RECYCLING must be set in the Azure Portal, not in web.config

  • Denford 132 posts 323 karma points
    May 14, 2020 @ 23:04
    Denford
    0

    @jeavon Thanks that probably why it didnt seem to make a difference in my case moved it now to the azure setting.

  • Jun 12 posts 92 karma points
    Jul 12, 2020 @ 21:28
    Jun
    0

    Hi Jeavon,

    Thanks for your post. Is there a document available for further information about WEBSITE_DISABLE_OVERLAPPED_RECYCLING? I would like to find out how this helps before I deploy such change to my production site.

    Your help is much appreciated.

  • Jun 12 posts 92 karma points
    Jul 13, 2020 @ 04:16
    Jun
    0

    Replying to myself, I traced this issue back to it was raised last year at GitHub issue for Umbraco

    And WEBSITE_DISABLE_OVERLAPPED_RECYCLING came from this issue comment

    Hope this can help anyone interested.

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    May 14, 2020 @ 12:49
    Jeavon Leopold
    2

    Also, it's highly recommended that you upgrade to v8.6 and use the Umbraco.Core.MainDom.Lock setting when running on Azure Web Apps

  • Denford 132 posts 323 karma points
    May 14, 2020 @ 23:06
    Denford
    0

    @jeavon yep been thinking of upgrading it since this installation was one of the very new v8 release's, hopefully can upgrade it straight to v8.6, so this new setting what is it about or is there some documentation around it.

  • Chris Norwood 131 posts 642 karma points
    May 14, 2020 @ 23:17
    Chris Norwood
    1

    The new setting is designed to get around the fact that Azure doesn't support Umbraco's default way of ensuring a main app domain lock.

    If you're running in a multi-server environment make sure to only add this setting on your master (back office) server or you're in for a world of pain - it's fine on single server environments though.

    There's some documentation here: https://our.umbraco.com/documentation/getting-started/setup/server-setup/azure-web-apps

    Here's some detail about the bug when trying to use this with load balancing/multiple servers (same thing effectively):

    https://github.com/umbraco/Umbraco-CMS/issues/8038

  • Denford 132 posts 323 karma points
    May 14, 2020 @ 23:25
    Denford
    0

    @chris thanks for the details, i will have a read for this instance i should be ok as its purely a single server environment but good to know for future use, think definitely upgrading first though.

Please Sign in or register to post replies

Write your reply to:

Draft