Copied to clipboard

Flag this post as spam?

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


  • Garry Bain 2 posts 73 karma points
    Jul 09, 2020 @ 13:04
    Garry Bain
    1

    IIS "failed to enter lock within timeout"

    Hello,

    I'm having issues with an umbraco 7 site (quite a lot of content) - my local version will often get the "failed to enter lock within timeout" error, after trying to load for 10 minutes, if I restart IIS it tends to work fine.

    When I put this into my AWS live environment I often get a 502, or 504 bad gateway error, I'm sure it's all to do with the indexing and rebuilding of the database, here's my log file. I'm not overly familiar with how it all works in terms of the loading and rebuilding of cache and indexes.

    Is anyone able to make any sense of this or have any potential solutions to speed it up / guarantee a successful load?

    Thanks, Garry.

    log.log:

    2020-07-09 13:49:25,924 [1] INFO Umbraco.Core.CoreBootManager - Umbraco 7.5.12 application starting on RT0233
    2020-07-09 13:49:25,956 [1] INFO Umbraco.Core.PluginManager - Determining hash of code files on disk
    2020-07-09 13:49:25,974 [1] INFO Umbraco.Core.PluginManager - Hash determined (took 18ms)
    2020-07-09 13:49:26,043 [1] INFO Umbraco.Core.MainDom - Acquiring MainDom...
    2020-07-09 13:49:26,050 [1] INFO Umbraco.Core.MainDom - Acquired MainDom.
    2020-07-09 13:49:26,056 [1] INFO Umbraco.Core.PluginManager - Starting resolution types of umbraco.interfaces.IApplicationStartupHandler
    2020-07-09 13:49:28,229 [1] INFO Umbraco.Core.PluginManager - Completed resolution of types of umbraco.interfaces.IApplicationStartupHandler, found 0 (took 2172ms)
    2020-07-09 13:49:28,253 [1] INFO Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter
    2020-07-09 13:49:28,260 [1] INFO Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter, found 0 (took 7ms)
    2020-07-09 13:49:28,260 [1] INFO Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyValueConverter
    2020-07-09 13:49:28,274 [1] INFO Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyValueConverter, found 0 (took 13ms)
    2020-07-09 13:49:28,292 [1] INFO Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Web.Mvc.SurfaceController
    2020-07-09 13:49:28,300 [1] INFO Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Web.Mvc.SurfaceController, found 0 (took 8ms)
    2020-07-09 13:49:28,301 [1] INFO Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Web.WebApi.UmbracoApiController
    2020-07-09 13:49:28,318 [1] INFO Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Web.WebApi.UmbracoApiController, found 0 (took 16ms)
    2020-07-09 13:49:28,370 [1] INFO Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Core.Media.IThumbnailProvider
    2020-07-09 13:49:28,377 [1] INFO Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Core.Media.IThumbnailProvider, found 0 (took 7ms)
    2020-07-09 13:49:28,378 [1] INFO Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Core.Media.IImageUrlProvider
    2020-07-09 13:49:28,386 [1] INFO Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Core.Media.IImageUrlProvider, found 0 (took 7ms)
    2020-07-09 13:49:29,995 [1] INFO Umbraco.Core.DatabaseContext - CanConnect = True
    2020-07-09 13:49:30,389 [1] INFO Umbraco.Web.Cache.CacheRefresherEventHandler - Initializing Umbraco internal event handlers for cache refreshing
    2020-07-09 13:49:30,414 [1] INFO Umbraco.Web.Search.ExamineEvents - Initializing Examine and binding to business logic events
    2020-07-09 13:49:31,019 [1] INFO Umbraco.Web.Search.ExamineEvents - Adding examine event handlers for index providers: 4
    2020-07-09 13:49:31,072 [1] INFO umbraco.content - Load Xml from file...
    2020-07-09 13:49:31,103 [1] INFO umbraco.content - Loaded Xml from file.
    2020-07-09 13:49:31,115 [1] INFO Articulate.ArticulateRoutes - Mapping routes for 6 Articulate root nodes
    2020-07-09 13:49:32,233 [1] INFO Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Core.PropertyEditors.IParameterEditor
    2020-07-09 13:49:32,272 [1] INFO Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Core.PropertyEditors.IParameterEditor, found 0 (took 39ms)
    2020-07-09 13:49:32,603 [1] WARN Umbraco.Core.Sync.DatabaseServerMessenger - No last synced Id found, this generally means this is a new server/install. The server will build its caches and indexes, and then adjust its last synced Id to the latest found in the database and maintain cache updates based on that Id.
    2020-07-09 13:49:32,677 [1] INFO umbraco.content - Loading content from database...
    2020-07-09 13:49:36,590 [1] INFO UmbracoExamine.DataServices.UmbracoLogService - Rebuilding index, Provider=InternalMemberIndexer, NodeId=-1
    2020-07-09 13:49:36,684 [1] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - Start data queries - member, Provider=InternalMemberIndexer, NodeId=-1
    2020-07-09 13:49:40,627 [12] INFO umbraco.content - Save Xml to file...
    2020-07-09 13:49:40,725 [12] INFO umbraco.content - Saved Xml to file.
    2020-07-09 13:57:40,119 [43] INFO Umbraco.Core.MainDom - Stopping...
    2020-07-09 13:59:10,112 [1] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
    System.TimeoutException: Failed to enter the lock within timeout.
       at Umbraco.Core.AsyncLock.Lock(Int32 millisecondsTimeout)
       at Umbraco.Core.MainDom.Acquire()
       at Umbraco.Core.ApplicationContext.Init()
       at Umbraco.Core.CoreBootManager.CreateApplicationContext(DatabaseContext dbContext, ServiceContext serviceContext)
       at Umbraco.Core.CoreBootManager.Initialize()
       at Umbraco.Web.WebBootManager.Initialize()
       at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)
    2020-07-09 13:59:50,262 [11] INFO Umbraco.Core.UmbracoApplicationBase - Application shutdown. Details: InitializationError
    
    _shutDownMessage=Initialization Error
    HostingEnvironment initiated shutdown
    HostingEnvironment caused shutdown
    
  • Joe 30 posts 133 karma points
    Jan 07, 2022 @ 04:35
    Joe
    0

    I've got same error randomly for a website on Azure AppService as well, using Umbraco v7 latest version.

    When it happens, recycling by changing web.config doesn't help. The only way to resume is force-restarting the AppService via Azure portal.

    Can anyone helps?

  • Alan Draper 27 posts 109 karma points
    Sep 28, 2022 @ 17:42
    Alan Draper
    0

    Did anyone hear anything about this? We got this error message this morning, shutting down a live site, which has been running Umbraco 7.13.2 for several years now.

  • Alan Draper 27 posts 109 karma points
    Sep 28, 2022 @ 17:45
    Alan Draper
    0

    Just found this:

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

    which was closed without fixing anything.

Please Sign in or register to post replies

Write your reply to:

Draft