No trace when database is down

Created on 17 April 2012, over 12 years ago
Updated 27 January 2017, over 7 years ago

If I stop the database server of my Drupal site and browse it, I get an error page with:
PDOException: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in lock_may_be_available() (line 167 of /var/www/includes/lock.inc).

My concern is that I do not see any error in either web server error log file or syslog file.

I guess such errors were intended to go into watchdog (cf. line 214 of includes/errors.inc) but in such case module_implements('watchdog') does not return anything as the modules list cannot be retrieved.
I would suggest using error_log() in _drupal_log_erro() for any fatal error. Any opinion about that?

πŸ› Bug report
Status

Needs review

Version

7.0 ⚰️

Component
BaseΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡«πŸ‡·France sdelbosc

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024