Random 500 Internal Server Error, umbraco.config permission denied
Hi Guys,
I'm working on a site locally (Umbraco 4.5.2). It has been working fine in the past, but today when I go to use it, I seem to keep getting random 500 Internal Server Errors on various resources (refreshing may fix it for that resource, but then random other resources then error). I hooked up a HTTP Traffic Sniffer to see what is going on, and it reports that:
Access to the path: "C:\...\...\App_Data\umbraco.config' is denied.
As this is my personal development machine, I have set the root folder permissions to allow full access to everyone, so can't see how it is denied access (the fact that some resources work would also suggest it's not permissions).
Anybody else seen this issue? and know of any fixes?
Certainly sounds like a permissions issue, I find most Umbraco isses can be tracked back to a permissions issue.
Few things, check that when permissions are set to the root folder, that you've ticked "Replace all existing inheritable pemissions on all descendants with inheritable permissions from this object" is ticked.
Check it's not read only - I've had this before now!
I guess the other option is to create a whole new folder for the website, then move the files in with nice new, fresh permissions.
Being as it's a development machine, I guess it's unlikley to be locked by file replication software, I've had that before.
That's all I can think at the moment, the obvious stuff....
Ok, so I seem to have found the issue, though why it was not showing up before, I don't know. But I have visual studio open, working on the project. Closing visual studio has stopped the erroring, so I assume VS was locking the file for some reason.
As Jay was the closest, I'll award him the answer.
I sometimes get this problem, but its because my website and solution are both in dropbox - and that is always syncing files, if I am making a lot of changes I turn off dropbox and that solves my problems.
@Lee weird. I'm not syncing dropbox, and I don't have it under source control (sorry if that offends anybody ;). I do have a continues backup up that could have been the problem, but I discounted that as it wasn't running.
Random 500 Internal Server Error, umbraco.config permission denied
Hi Guys,
I'm working on a site locally (Umbraco 4.5.2). It has been working fine in the past, but today when I go to use it, I seem to keep getting random 500 Internal Server Errors on various resources (refreshing may fix it for that resource, but then random other resources then error). I hooked up a HTTP Traffic Sniffer to see what is going on, and it reports that:
As this is my personal development machine, I have set the root folder permissions to allow full access to everyone, so can't see how it is denied access (the fact that some resources work would also suggest it's not permissions).
Anybody else seen this issue? and know of any fixes?
Cheers
Matt
Perhaps you should read this topic, but that's also not solved: http://our.umbraco.org/forum/getting-started/installing-umbraco/20833-umbracowebservicesnodeSorterasmxjs-(et-al)-gives-a-500-error
Jeroen
Have you checked in Event Viewer to see if there are any clues?
Do you have that site set up in SVN, VS etc ? Another process may have a lock on the file.
(look at using http://technet.microsoft.com/en-us/sysinternals/bb896645 to see if that is the case)
Got any custom event handlers, cool but not overly used/tested packages, etc? What's "special" about this site?
Anything in the umbracoLog table or the Event Handler?
Is the random problem file always umbraco-related or could it be a media file or css or ???
Just looking for patterns and potential issues.
cheers,
doug.
Certainly sounds like a permissions issue, I find most Umbraco isses can be tracked back to a permissions issue.
Few things, check that when permissions are set to the root folder, that you've ticked "Replace all existing inheritable pemissions on all descendants with inheritable permissions from this object" is ticked.
Check it's not read only - I've had this before now!
I guess the other option is to create a whole new folder for the website, then move the files in with nice new, fresh permissions.
Being as it's a development machine, I guess it's unlikley to be locked by file replication software, I've had that before.
That's all I can think at the moment, the obvious stuff....
@Jeroen it is a different error I am getting, so not sure they are related.
@Jay there doesn't seem to be anything un-tuward in the Event Log. And I have run LockHunter to make sure nothing is locking on the file.
@Doug There aren't any custom event handlers. It's a really basic site really. Only a couple of packages installed.
@Ian all checked and seems to be setup correctly.
Okay, if it's a simple site then... package it up and import it into a new 4.5.2 installation. #workaround
cheers,
doug.
Ok, so I seem to have found the issue, though why it was not showing up before, I don't know. But I have visual studio open, working on the project. Closing visual studio has stopped the erroring, so I assume VS was locking the file for some reason.
As Jay was the closest, I'll award him the answer.
Cheers guys
Matt
You never mentioned that you had Visual Studio open! Glad it's working.
\o/
@Ian I'm a developer, assume it's always open ;)
Thanks for the help anyway.
Matt
I sometimes get this problem, but its because my website and solution are both in dropbox - and that is always syncing files, if I am making a lot of changes I turn off dropbox and that solves my problems.
@Lee weird. I'm not syncing dropbox, and I don't have it under source control (sorry if that offends anybody ;). I do have a continues backup up that could have been the problem, but I discounted that as it wasn't running.
One to add to the memory bank never the less.
is working on a reply...