Copied to clipboard

Flag this post as spam?

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


  • yogesh pathak 136 posts 221 karma points
    Oct 26, 2015 @ 06:58
    yogesh pathak
    0

    Master node In load balanced environment is not working after some times

    Hi All, I am struggling with a wired situation in my umbraco installation , i have attached the log being generated. here are the details of my setup-

    1. I have two node in my production environment node A and Node B (load balanced)
    2. out of these two nodes my node A is Master node , which i am using for back office operations
    3. i have created another binding on node A for accessing back-office (this binding is not load balanced)
    4. Server is window server 2008 R2

    Problem- when i start the iis everything works fine , but after some time (this time is not cyclic but it depends on when the master node gets ideal for some time by no traffic ) Master node starts showing the error page , and the following error log is being generated

    What i have got from the internet so far is - after being Ideal for some time master node's appDomain is not able to edit the umbraco.config file

    Error Log-

    2015-10-26 02:05:00,275 [52] DEBUG umbraco.content - [Thread 47] Loading Xml... 2015-10-26 02:05:00,277 [52] INFO umbraco.content - [Thread 47] Load Xml from file... 2015-10-26 02:05:00,277 [52] DEBUG umbraco.content - [Thread 47] Acquiring exclusive access to file for this AppDomain... 2015-10-26 02:06:40,215 [57] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 11] An unhandled exception occurred System.TimeoutException: Failed to enter the lock within timeout. at Umbraco.Core.AsyncLock.Lock(Int32 millisecondsTimeout) at umbraco.content.EnsureFileLock() at umbraco.content.LoadXmlFromFile() at umbraco.content.LoadXmlLocked(SafeXmlReaderWriter safeXml, Boolean& registerXmlChange) at umbraco.content..ctor() at umbraco.content.<.cctor>b14() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at umbraco.content.getInstance() at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.3(UmbracoContext context, Boolean preview) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.HasContent(UmbracoContext umbracoContext, Boolean preview) at Umbraco.Web.PublishedCache.ContextualPublishedCache1.HasContent(Boolean preview) at Umbraco.Web.PublishedCache.ContextualPublishedCache.HasContent() at Umbraco.Web.UmbracoModule.EnsureUmbracoRoutablePage(UmbracoContext context, HttpContextBase httpContext) at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 2015-10-26 02:06:40,470 [57] DEBUG Umbraco.Web.Scheduling.BackgroundTaskRunner1[[Umbraco.Web.PublishedCache.XmlPublishedCache.XmlCacheFilePersister, umbraco, Version=1.0.5610.18898, Culture=neutral, PublicKeyToken=null]] - [Thread 28] Shutting down, waiting for tasks to complete. 2015-10-26 02:06:40,485 [57] DEBUG Umbraco.Web.PublishedCache.XmlPublishedCache.XmlCacheFilePersister - [Thread 59] Run now (async). 2015-10-26 02:06:40,492 [57] INFO umbraco.content - [Thread 59] Save Xml to file... 2015-10-26 02:06:40,492 [57] DEBUG umbraco.content - [Thread 59] Acquiring exclusive access to file for this AppDomain... 2015-10-26 02:07:10,670 [57] INFO Umbraco.Web.Scheduling.BackgroundTaskRunner1[[Umbraco.Web.PublishedCache.XmlPublishedCache.XmlCacheFilePersister, umbraco, Version=1.0.5610.18898, Culture=neutral, PublicKeyToken=null]] - [Thread 28] Shutting down immediately. 2015-10-26 02:09:00,342 [52] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 47] An unhandled exception occurred System.TimeoutException: Failed to enter the lock within timeout. at Umbraco.Core.AsyncLock.Lock(Int32 millisecondsTimeout) at umbraco.content.EnsureFileLock() at umbraco.content.LoadXmlFromFile() at umbraco.content.LoadXmlLocked(SafeXmlReaderWriter safeXml, Boolean& registerXmlChange) at umbraco.content..ctor() at umbraco.content.<.cctor>b__14() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at umbraco.content.get_Instance() at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.<get_GetXmlDelegate>b__3(UmbracoContext context, Boolean preview) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.HasContent(UmbracoContext umbracoContext, Boolean preview) at Umbraco.Web.PublishedCache.ContextualPublishedCache1.HasContent(Boolean preview) at Umbraco.Web.PublishedCache.ContextualPublishedCache.HasContent() at Umbraco.Web.UmbracoModule.EnsureUmbracoRoutablePage(UmbracoContext context, HttpContextBase httpContext) at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 2015-10-26 02:09:00,682 [52] DEBUG Umbraco.Web.UmbracoModule - [Thread 48] Begin request: http://srv19.myWebsite.com/favicon.ico. 2015-10-26 02:10:40,554 [57] ERROR Umbraco.Web.Scheduling.BackgroundTaskRunner1[[Umbraco.Web.PublishedCache.XmlPublishedCache.XmlCacheFilePersister, umbraco, Version=1.0.5610.18898, Culture=neutral, PublicKeyToken=null]] - [Thread 59] Task has failed. System.TimeoutException: Failed to enter the lock within timeout. at Umbraco.Core.AsyncLock.Lock(Int32 millisecondsTimeout) at umbraco.content.EnsureFileLock() at umbraco.content.<SaveXmlToFileAsync>d__a.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Umbraco.Web.PublishedCache.XmlPublishedCache.XmlCacheFilePersister.<RunAsync>d__b.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Umbraco.Web.Scheduling.BackgroundTaskRunner1.

    System.TimeoutException: Failed to enter the lock within timeout. at Umbraco.Core.AsyncLock.Lock(Int32 millisecondsTimeout) at umbraco.content.EnsureFileLock() at umbraco.content.LoadXmlFromFile() at umbraco.content.LoadXmlLocked(SafeXmlReaderWriter safeXml, Boolean& registerXmlChange) at umbraco.content..ctor() at umbraco.content.<.cctor>b14() at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at umbraco.content.get_Instance() at umbraco.NodeFactory.Node..ctor(Int32 NodeId) at InfoCaster.Umbraco.UrlTracker.Modules.UrlTrackerModule.UrlTrackerDo(String callingEventName, Boolean ignoreHttpStatusCode) in d:\kipusoep\Documents\GitHub\UrlTracker\Modules\UrlTrackerModule.cs:line 169 at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 2015-10-26 01:54:55,471 [7] INFO Umbraco.Web.Scheduling.BackgroundTaskRunner1[[Umbraco.Web.PublishedCache.XmlPublishedCache.XmlCacheFilePersister, umbraco, Version=1.0.5610.18898, Culture=neutral, PublicKeyToken=null]] - [Thread 10] Shutting down immediately. 2015-10-26 01:56:17,301 [8] DEBUG Umbraco.Web.UmbracoModule - [Thread 23] Begin request: http://srv19.MyWebsite.com/. 2015-10-26 01:56:17,301 [8] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 23] An unhandled exception occurred System.TimeoutException: Failed to enter the lock within timeout. at Umbraco.Core.AsyncLock.Lock(Int32 millisecondsTimeout) at umbraco.content.EnsureFileLock() at umbraco.content.LoadXmlFromFile() at umbraco.content.LoadXmlLocked(SafeXmlReaderWriter safeXml, Boolean& registerXmlChange) at umbraco.content..ctor() at umbraco.content.<.cctor>b14() at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at umbraco.content.get_Instance() at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.<get_GetXmlDelegate>b__3(UmbracoContext context, Boolean preview) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.HasContent(UmbracoContext umbracoContext, Boolean preview) at Umbraco.Web.PublishedCache.ContextualPublishedCache1.HasContent(Boolean preview) at Umbraco.Web.PublishedCache.ContextualPublishedCache.HasContent() at Umbraco.Web.UmbracoModule.EnsureUmbracoRoutablePage(UmbracoContext context, HttpContextBase httpContext) at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 2015-10-26 01:56:31,577 [8] DEBUG Umbraco.Web.Scheduling.KeepAlive - [Thread 28] Keep alive executing 2015-10-26 01:56:31,609 [8] DEBUG Umbraco.Web.UmbracoModule - [Thread 23] Begin request: http://srv19.MyWebsite.com/umbraco/ping.aspx. 2015-10-26 01:56:31,609 [8] DEBUG Umbraco.Web.Scheduling.KeepAlive - [Thread 28] Keep alive complete (took 38ms) 2015-10-26 01:57:08,614 [8] DEBUG Umbraco.Web.UmbracoModule - [Thread 37] Begin request: http://srv19.MyWebsite.com/. 2015-10-26 01:57:08,614 [8] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 37] An unhandled exception occurred System.TimeoutException: Failed to enter the lock within timeout. at Umbraco.Core.AsyncLock.Lock(Int32 millisecondsTimeout) at umbraco.content.EnsureFileLock() at umbraco.content.LoadXmlFromFile() at umbraco.content.LoadXmlLocked(SafeXmlReaderWriter safeXml, Boolean& registerXmlChange) at umbraco.content..ctor() at umbraco.content.<.cctor>b14() at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at umbraco.content.get_Instance() at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.<get_GetXmlDelegate>b__3(UmbracoContext context, Boolean preview) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.HasContent(UmbracoContext umbracoContext, Boolean preview) at Umbraco.Web.PublishedCache.ContextualPublishedCache1.HasContent(Boolean preview) at Umbraco.Web.PublishedCache.ContextualPublishedCache.HasContent() at Umbraco.Web.UmbracoModule.EnsureUmbracoRoutablePage(UmbracoContext context, HttpContextBase httpContext) at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 2015-10-26 01:58:25,292 [7] ERROR Umbraco.Web.Scheduling.BackgroundTaskRunner1[[Umbraco.Web.PublishedCache.XmlPublishedCache.XmlCacheFilePersister, umbraco, Version=1.0.5610.18898, Culture=neutral, PublicKeyToken=null]] - [Thread 16] Task has failed. System.TimeoutException: Failed to enter the lock within timeout. at Umbraco.Core.AsyncLock.Lock(Int32 millisecondsTimeout) at umbraco.content.EnsureFileLock() at umbraco.content.<SaveXmlToFileAsync>d__a.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Umbraco.Web.PublishedCache.XmlPublishedCache.XmlCacheFilePersister.<RunAsync>d__b.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Umbraco.Web.Scheduling.BackgroundTaskRunner1.11.MoveNext()

    Please help.

    Yogesh

  • yogesh pathak 136 posts 221 karma points
    Oct 26, 2015 @ 07:06
    yogesh pathak
    0

    Every time i come to this situation , iisreset command works , but this is not the solution i want . have anybody experienced this before?

    Yogesh

Please Sign in or register to post replies

Write your reply to:

Draft