Posted by alexus on May 15, 2014 at 8:18pm
... 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
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
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...
alexus.org && alexus.biz
Or if you set "Errors to
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
Where do I set "Errors to screen and logs"?
alexus.org && alexus.biz
Thanks, it was faulty dns
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
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
no, it is not as i'm seeing other erros inside of that phplog
alexus.org && alexus.biz