Copied to clipboard

Flag this post as spam?

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


  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jul 01, 2015 @ 09:14
    Bo Damgaard Mortensen
    0

    umbraco.config locked

    Hi all,

    I'm continuesly experiencing this:

    Message: The process cannot access the file '..\umbraco.config' because it is being used by another process.
    

    On an Umbraco 4.9.0 instance running on Windows Server 2012 64bit.

    I've checked the log table, but can't really find anything other than this:

        At / (Referred by: ): System.TypeInitializationException: The type initializer for 'umbraco.content' threw an exception. ---> System.IO.IOException: The process cannot access the file '...\umbraco.config' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.File.InternalDelete(String path, Boolean checkHost)
       at System.IO.File.Delete(String path)
       at umbraco.content.DeleteXmlCache()
       at umbraco.content.LoadContent()
       at umbraco.content.CheckXmlContentPopulation()
       at umbraco.content..cctor()
       --- End of inner exception stack trace ---
       at umbraco.presentation.UmbracoContext.GetXml()
       at umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Page.OnPreInit(EventArgs e)
       at System.Web.UI.Page.PerformPreInit()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    

    Having searched high and low, tried several things on the server gives me nothing :-(

    Refreshing the app pool on IIS makes the site run again, but that's only temporary until it happens again.

    Anyone experienced this before and got a solution for it? :-)

    THanks in advance.

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jul 01, 2015 @ 09:30
    Dave Woestenborghs
    0

    Can you see when it occurs ? After content update ?

    Dave

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jul 01, 2015 @ 09:39
    Bo Damgaard Mortensen
    0

    Hi Dave,

    Thanks for your reply, appreciated! :-)

    I just made a screenshot for you from the log table. This is what happens right before umbraco.config is locked:

    enter image description here

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jul 01, 2015 @ 09:45
    Dave Woestenborghs
    0

    Maybe a silly question. But do you have perhaps 2 IIS instances pointing to the same Umbraco install ?

    Dave

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jul 01, 2015 @ 09:52
    Bo Damgaard Mortensen
    0

    Not at all a stupid question :-)

    No, I've only got one website on IIS.

  • Stephen 767 posts 2273 karma points c-trib
    Jul 01, 2015 @ 10:05
    Stephen
    0

    Running on a real server or on a VM (Azure, AWS...)? That part of the code has been running for years without any issue and we are currently seeing a number of reports about umbraco.config file being locked... trying to figure out whether it can be related to VM, filesystem, Server 2012...

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jul 01, 2015 @ 10:47
    Bo Damgaard Mortensen
    0

    Hi Stephen,

    Thanks for chiming in :-)

    This is a real server (not Azure, AWS or some other cloud service) running:

    Server 2012 R2 Standard, Build 9600
    

    If you, by any means, have any kind of hotfix for this, I'm all ears ;-)

    Thanks again !

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jul 01, 2015 @ 10:49
    Bo Damgaard Mortensen
    0

    Bonus info: this site has been running for three years on an old Windows 2003 server without any kind of problems. Recently, we moved the site to the before mentioned server.

  • Stephen 767 posts 2273 karma points c-trib
    Jul 02, 2015 @ 06:46
    Stephen
    0

    Interesting. So it would be more Server 2012 R2 related than VM/Azure related. Looks consistent with other reports. Beginning to think there are some subtle file-locking changes in 2012 R2 that cause this. No idea what, though.

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jul 02, 2015 @ 11:57
    Bo Damgaard Mortensen
    0

    It seems so :-( Have searched a bit and found other posts (mainly on stackoverflow) where the same issue occurs on server 2012 R2.

    Tried removing two updates from the server as suggested in the beforementioned posts, but still no luck.

  • Kasper Holm 47 posts 180 karma points
    Jul 02, 2015 @ 07:07
    Kasper Holm
    0

    Hey Bo

    Just a simple Question have you set the rights for the AppPool on the website folder ?

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jul 02, 2015 @ 11:58
    Bo Damgaard Mortensen
    0

    You mean: Edit Permissions -> Security -> Edit on the site in IIS, right? :-)

    I've set up permissions for:

    Network service IUSR IISUSER

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jul 04, 2015 @ 14:55
    Bo Damgaard Mortensen
    0

    A follow up on this:

    As I couldn't find a fix for this issue and the site repeatedly went down, I turned off XML caching in umbracoSettings.config.

    Not the best fix, but it does the job for the next three days where site is under heavy usage (it's a festival site)

    I came to think, that on another Server 2012 (not R2), I'm running an Umbraco v6 site which runs without any problems at all.

    Could it be the difference between Server 2012 and Server 2012 R2, that's causing this?

    If anyone can confirm, I think the search for the hiccup is narrowed down :-)

Please Sign in or register to post replies

Write your reply to:

Draft