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? :-)
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...
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.
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.
umbraco.config locked
Hi all,
I'm continuesly experiencing this:
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:
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.
Can you see when it occurs ? After content update ?
Dave
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:
Maybe a silly question. But do you have perhaps 2 IIS instances pointing to the same Umbraco install ?
Dave
Not at all a stupid question :-)
No, I've only got one website on IIS.
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...
Hi Stephen,
Thanks for chiming in :-)
This is a real server (not Azure, AWS or some other cloud service) running:
If you, by any means, have any kind of hotfix for this, I'm all ears ;-)
Thanks again !
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.
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.
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.
Hey Bo
Just a simple Question have you set the rights for the AppPool on the website folder ?
You mean: Edit Permissions -> Security -> Edit on the site in IIS, right? :-)
I've set up permissions for:
Network service IUSR IISUSER
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 :-)
is working on a reply...