Copied to clipboard

Flag this post as spam?

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


  • Terry Clancy 204 posts 944 karma points
    Aug 08, 2020 @ 04:26
    Terry Clancy
    0

    Unexpected Umbraco Application Shutdown !@#$???

    Hi all,

    I am running Umbraco version 7.5.10 assembly: 1.0.6261.14290 (with uCommerce). I precompile before deployment to my production site. That production site shutdown unexpectedly in the middle of a bulk product data load.

    Is anyone able to discern from the log below what might be causing this ?:

    2020-08-07 20:24:17,415 [P257108/D5/TTT_UC_ImportData_Thread]  TeraTastic.TT_Classes.TT_UmbracoMediaHelper-UCAdminLogger - X
     2020-08-07 20:24:18,618 [P257108/D5/T150] INFO  Umbraco.Core.UmbracoApplicationBase - Application shutdown. Details: BuildManagerChange
    
    _shutDownMessage=Change in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\d754f868\ed87253\hash\hash.web
    HostingEnvironment initiated shutdown
    File Change Notification Error in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\d754f868\ed87253\hash
    HostingEnvironment caused shutdown
    
    _shutDownStack=   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
       at System.Environment.get_StackTrace()
       at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal()
       at System.Web.Hosting.HostingEnvironment.InitiateShutdownWithoutDemand()
       at System.Web.HttpRuntime.ShutdownAppDomain(String stackTrace)
       at System.Web.Compilation.BuildManager.OnWebHashFileChange(Object sender, FileChangeEvent e)
       at System.Web.DirectoryMonitor.FireNotifications()
       at System.Web.Util.WorkItem.CallCallbackWithAssert(WorkItemCallback callback)
       at System.Web.Util.WorkItem.OnQueueUserWorkItemCompletion(Object state)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
     2020-08-07 20:24:26,556 [P257108/D9/T146] INFO  Umbraco.Core.CoreBootManager - Umbraco 7.5.10 application starting on P3NWVPWEB012
     2020-08-07 20:24:26,618 [P257108/D9/T146] INFO  Umbraco.Core.PluginManager - Determining hash of code files on disk
     2020-08-07 20:24:26,665 [P257108/D9/T146] INFO  Umbraco.Core.PluginManager - Hash determined (took 54ms)
     2020-08-07 20:24:26,743 [P257108/D9/T146] INFO  Umbraco.Core.MainDom - Acquiring MainDom...
     2020-08-07 20:24:26,743 [P257108/D9/T146] INFO  Umbraco.Core.MainDom - Acquired MainDom.
     2020-08-07 20:24:26,759 [P257108/D9/T146] INFO  Umbraco.Core.PluginManager - Starting resolution types of umbraco.interfaces.IApplicationStartupHandler
     2020-08-07 20:24:26,775 [P257108/D9/T146] INFO  Umbraco.Core.PluginManager - Completed resolution of types of umbraco.interfaces.IApplicationStartupHandler, found 0 (took 23ms)
     2020-08-07 20:24:26,853 [P257108/D9/T146] INFO  Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter
     2020-08-07 20:24:26,853 [P257108/D9/T146] INFO  Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter, found 0 (took 5ms)
     2020-08-07 20:24:26,853 [P257108/D9/T146] INFO  Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyValueConverter
     2020-08-07 20:24:26,853 [P257108/D9/T146] INFO  Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyValueConverter, found 0 (took 4ms)
     2020-08-07 20:24:26,884 [P257108/D9/T146] INFO  Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Web.Mvc.SurfaceController
    

    Any insight into what is happening here, or assistance to resolve this, would be greatly appreciated.

    Terry Clancy ClanceZ

  • Marc Goodson 2157 posts 14411 karma points MVP 9x c-trib
    Aug 08, 2020 @ 09:05
    Marc Goodson
    100

    Hi Terry

    It looks like that during your imports lots of files are being changed within the web application structure, or the same file being changed multiple times, and each change is causing a 'File Change Notification' to be issued and you are hitting a threshold for the total number of notifications that can be made in a particular time period, which triggers a shutdown.

    If you are pre-compiling your application, and not editing templates etc via the Umbraco backoffice then I would suggest setting FCNMode=disabled in the httpruntime element of your web.config file.

    See if this change then allows your bulkimport to run...

    Basically if you do need to make a change to a file with FCNMode=disabled, you will have to recycle the app pool for the change to be noticed by the application - but if you are pre-compiling the site anyway, each deploy will trigger an application pool recycle anyway...

    There is an article here that explains a bit about File Change Notification and Umbraco:

    https://shazwazza.com/post/all-about-aspnet-file-change-notification-fcn/

    regards

    marc

  • Terry Clancy 204 posts 944 karma points
    Aug 09, 2020 @ 06:00
    Terry Clancy
    0

    Wow very valuable information Marc.

    Thanks very much. My bulk data Import does resize and create images so this is likely the culprit. I will test and report back but marking your post as the answer as it very probably is.

    Thanks VERY much

    Terry Clancy ClanceZ

Please Sign in or register to post replies

Write your reply to:

Draft