Drupal 6 Site Offline Template

Events happening in the community are now at Drupal community events on www.drupal.org.
alexus's picture

... every once in a while users are getting "Site Off-Line" message when trying to access Drupal6 (Pressflow), so I start looking into following document to modifiy template and possibly provide me with a reasoning on why Drupal keeps doing that..

Theming the Drupal maintenance page | Drupal.org

What should be included into new template page? I was thinking at least this one:

PHP: mysqli::$connect_error - Manual

but what else would be useful in order to troubleshoot site offline??

Comments

Check the PHP logs. Most

dalin's picture

Check the PHP logs. Most common reasons are a MySQL "server has gone away" , or "reached maximum connections" errors.

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

Dave, php logs was the first

alexus's picture

Dave,

php logs was the first place I looked, but unfortently didn't see anything at all, not even mysql server has gone away or anything else to that nature...

Or if you set "Errors to

dalin's picture

Or if you set "Errors to screen and logs" in Drupal it should display the actual error.

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

Where do I set "Errors to

alexus's picture

Where do I set "Errors to screen and logs"?

Thanks, it was faulty dns

repoman's picture

Thanks Dave. It turned out to be a problem with DNS not resolving 100% of the time. When it wasn't resolving the IP of the DB server we would get the site offline message. After we added the name/IP in the hosts files on both web heads it appeared that everything was perfect. Weird that we never encountered this during the tests. Thanks for your feedback though.

We ultimately found this out by altering the maintenance page in the core to see an error on the site offline page.

Maybe it's combined in with

dalin's picture

Maybe it's combined in with the Apache logs?

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

no, it is not as i'm seeing

alexus's picture

no, it is not as i'm seeing other erros inside of that phplog

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week