I'm getting sporatic errors for many different pages that return a page not found error for "internal_error.html not found."

What could be causing this?

Comments

EnekoAlonso-1’s picture

I think this happens when Drupal loses DB connection to MySQL and can't reproduce the requested page.
It's happening to my server (www.spaniards.es) on traffic peaks (when more users and visitors are requesting pages).

First I thought it was a problem using both locale and og modules (which toghether make everything move too slow). But now I have disabled locale module and, although everything goes way faster, I still get these "Internal Error"'s every now and then.

Any clue? Is this happening only to us?

ekrispin’s picture

I had a sudden huge traffic peak from stumbleupon users and then these messages strated to apear in the log...

roychri’s picture

You are most likely hosted with dreamhost.

What is happening is that something is causing PHP to fail and die.
If you look at your error log you will most likely find "Premature end of script headers".
Then your host is trying to open the file "internal_errors.html" which does not exists.

You can create this file in your document root and say something like: Oops, this seems to be a problem with my host. Just reload the page to continue.

Apparently, this is caused by mod_security. However I have disabled mod_security in my dreamhost account (called extra web security) and the problem continues.

Here are some more information I found:
http://drupal.org/node/144582
http://drupal.org/node/110219
http://www.convolutedtheory.com/tech/mod_security-and-drupal-62-issues/
http://stoopidsimple.com/drupal/mod_security

More posts on this problem:
http://drupal.org/node/110291
http://drupal.org/node/320006

aren cambre’s picture

The filename is internal_error.html (not with an s).

dbeall’s picture

If your host is over loading the sql server, a real good way to provide better page loading is using the boost module. It provides a static html copy of your pages served as a result of htaccess rules to provide a static version of a page if it's there.. It really works very well.. I have 5 shared host Drupal sites running it.

christopherareed’s picture

I've been seeing this lately, and from what I can see from my perspective is it is occurring when simultaneous PHP requests are made for the same page by either Anonymous or registered users. My approach to reduce these requests was to simply increase the cache lifetime and my internal_error.html's went from 100+ a day to less than 3-4 a day, sometimes none at all. I hope this helps reduce others internal_errors as it seems to have worked for my situation, but I do not believe this to be a universal fix. Good luck everyone else experiencing this.