Posted by Branjawn on February 2, 2010 at 4:22am
So, not sure really what happened, but all fo the sudden files in the sites/default/files folder are not accessible. I was updating a module when all hell broke loose. I pinned it to the css file stored in default/files was not being read. I then realized that NO file in that folder was readable.
Permissions are 755 for default and 755 for files.
Any ideas on what is going one? I'm missing my site logo (which I tried re-uploading) and all images and pdfs and all other needed files in that folder. Well, they aren't missing, I can see them sitting there. I can't even view them using direct url to the file. Get white screen.
Help!

Comments
is the owner/group correct?
Do you have shell access to the site? Can you check and see who the owner and group is?
Navigate to the directory and type "ls -al". Look at the 3rd and 4th columns. That's the "owner" and the "group". Sometimes goofy things can happen if/when the owner and group and messed up. The owner should be the user you login with.
If you change the permissions, does it fix things?
Wordpress has a good document describing file permissions:
http://codex.wordpress.org/Changing_File_Permissions
permissions
I set to 777 and still would not work.
undo that ASAP.
undo that ASAP.
Step 1 w/ server issues -
Step 1 w/ server issues - check the server error log.
Step 2 - see something funky? Open a support ticket with your host provider.
Something very similar happened to me tonight. Turns out some hackers were in the process of seriously fucking up the hostmonster server that my site is on. And they still are...
more info
all my stuff has same owner and group. since info is pulled from the sites/all folder I will assume that this is OK.
so, still stuck with something causing files in sites/default/files to be inaccessible.
hostmonster
I am on HM too! :\
then you are probably being
then you are probably being affected by the hackers.
Seriously, anytime you have a server issue, your host's helpdesk should be your first stop.
http://helpdesk.hostmonster.com/
Helpdesk
done.
funny how going to http://serverstatus.hostmonster.com shows "no known issues".
I just assumed this was a Drupal issue b/c I was messing with update.php when it happened. I mean, I still think it's Drupal related... we'll see.
Thanks for the help :)
It's not Drupal related. The
It's not Drupal related. The fact that our two sites are both affected in the same way is proof that it is a server issue and not a Drupal issue.
And yeah, Jon and I were just joking about how HM's server status says nothing is wrong - but something is definitely wrong. After I opened my ticket earlier tonight I got a response that they knew about the issue and were working on it ::shrug::
error log on server
php error log is clear.
main error log full of these two:
[Mon Feb 01 21:56:44 2010] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Mon Feb 01 21:56:44 2010] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
you need to be looking at the
you need to be looking at the apache error log.
uggghhhhh
I restored a backup of my site all b/c HM was less than forthcoming about an issue on their end.
I sent a formal complaint about their lack of transparency and the blatant LIE on their server status page.
Had to rename .htaccess and all is well. Still, I lost some work I did yesterday. I guess I've learned from this I should back up before I restore just in case I want to revert.
the problem ended up being
the problem ended up being that HM changed a setting that disallowed a certain .htaccess command because of a security issue. This caused the .htaccess file in sites/default/files to throw an error and thus cause Drupal to not be able to find files. HM went through and replaced the .htaccess file in my sites/default/files folder to remove that command, and everything is fine now.