Random unhandled UnauthorizedAccessException on umbraco.config causes IIS to crash
Hi
On a medium/large site running Umbraco 4.8.1 we have one or two IIS Worker Process (w3wp.exe) crashes per day.
The site works, so it's not a permission problem per say. I'm suspecting a locking issue, but I'm not sure in what direction to look. From searching the forum the following areas could be worth looking into:
From event viewer I can see the following error description:
An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/2/ROOT
Process ID: 8280
Exception: System.UnauthorizedAccessException
Message: Access to the path '.....App_Data\umbraco.config' is denied.
StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
at umbraco.content.DeleteXmlCache()
at umbraco.content.PersistXmlToFile(XmlDocument xmlDoc)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Having the same problem. IIS just crashed second time today. We are running Umbraco 4.7.2 + uWebShop. I can't think of any more permissions I could give to that file that we haven't given already.
An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/2/ROOT
Process ID: 320
Exception: System.UnauthorizedAccessException
Message: Access to the path 'C:\...\App_Data\umbraco.config' is denied.
StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
at umbraco.content.DeleteXmlCache()
at umbraco.content.PersistXmlToFile(XmlDocument xmlDoc)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
We're also having the exact same problem. We're running Umbraco 4.8, and have been live since september 3rd. I haven't noticed this before today when we suddenly had a major crash to the web site. Almost nothing worked. We fixed the crash by restarting the server. After the crash i examined the event log and I bumped into this error message. Don't really know if it is related to the crash, but it is the only errors we have in the event log at the moment.
Anyone with the same problem that have an idea of how to fix it? All permissions is set, it's not a permission issue.
I actually have a follow up on this issue. We had the sysadmin exclude umbraco.config from antivirus scans (the particular antivirus software is Microsoft Forefront). And amazingly that solved the problem - at least the random IIS crashes has stopped.
Perhaps Umbraco could be made more robust in handling locking issues with the umbraco.config file? I have opened an issue: http://issues.umbraco.org/issue/U4-953
Got also another exception with the IIS crashing from the same place:
Exception: System.IO.FileNotFoundException
Message: Could not find file 'C:\inetpub\kiuas\App_Data\umbraco.config'.
StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
at umbraco.content.DeleteXmlCache()
Random unhandled UnauthorizedAccessException on umbraco.config causes IIS to crash
Hi
On a medium/large site running Umbraco 4.8.1 we have one or two IIS Worker Process (w3wp.exe) crashes per day.
The site works, so it's not a permission problem per say. I'm suspecting a locking issue, but I'm not sure in what direction to look. From searching the forum the following areas could be worth looking into:
http://our.umbraco.org/forum/ourumb-dev-forum/bugs/11510-File-Locking-on-UmbracoConfig
http://our.umbraco.org/forum/getting-started/installing-umbraco/20912-Random-500-Internal-Server-Error,-umbracoconfig-permission-denied
From event viewer I can see the following error description:
Best regards
Emil
Having the same problem. IIS just crashed second time today. We are running Umbraco 4.7.2 + uWebShop. I can't think of any more permissions I could give to that file that we haven't given already.
We're also having the exact same problem. We're running Umbraco 4.8, and have been live since september 3rd. I haven't noticed this before today when we suddenly had a major crash to the web site. Almost nothing worked. We fixed the crash by restarting the server. After the crash i examined the event log and I bumped into this error message. Don't really know if it is related to the crash, but it is the only errors we have in the event log at the moment.
Anyone with the same problem that have an idea of how to fix it? All permissions is set, it's not a permission issue.
I actually have a follow up on this issue. We had the sysadmin exclude umbraco.config from antivirus scans (the particular antivirus software is Microsoft Forefront). And amazingly that solved the problem - at least the random IIS crashes has stopped.
Perhaps Umbraco could be made more robust in handling locking issues with the umbraco.config file? I have opened an issue: http://issues.umbraco.org/issue/U4-953
Best regards
Emil
No antivirus scanner on our production server.
Got also another exception with the IIS crashing from the same place:
is working on a reply...