While attempting to logout from my dashboard, the following occured. (logout was unsuccessful).

Additional uncaught exception thrown while handling exception.
Original

PDOException: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 110 in drupal_is_denied() (line 1915 of /var/www/drupal.org/htdocs/includes/bootstrap.inc).
Additional

PDOException: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 110 in dblog_watchdog() (line 147 of /var/www/drupal.org/htdocs/modules/dblog/dblog.module).

Comments

tvn’s picture

Status: Active » Postponed (maintainer needs more info)

Can't reproduce this now. Might have been infrastructure issue.

andros’s picture

I have had the following message on this url a few minutes ago:
https://drupal.org/project/crm_core
Other urls on drupal.org worked, but this page was for minutes not loadable without this error:

Additional uncaught exception thrown while handling exception.
Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.vid AS vid, base.name AS name, base.machine_name AS machine_name, base.description AS description, base.hierarchy AS hierarchy, base.module AS module, base.weight AS weight FROM {taxonomy_vocabulary} base WHERE (base.vid IN (:db_condition_placeholder_0)) ORDER BY base.weight ASC, base.name ASC; Array ( [:db_condition_placeholder_0] => 6 ) in DrupalDefaultEntityController->load() (line 191 of /var/www/drupal.org/htdocs/includes/entity.inc).
Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 394746 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:429:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.vid AS vid, base.name AS name, base.machine_name AS machine_name, base.description AS description, base.hierarchy AS hierarchy, base.module AS module, base.weight AS weight FROM {taxonomy_vocabulary} base WHERE (base.vid IN (:db_condition_placeholder_0)) ORDER BY base.weight ASC, base.name ASC; Array ( [:db_condition_placeholder_0] => 6 ) ";s:9:"%function";s:37:"DrupalDefaultEntityController->load()";s:5:"%file";s:46:"/var/www/drupal.org/htdocs/includes/entity.inc";s:5:"%line";i:191;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => https://drupal.org/project/crm_core [:db_insert_placeholder_7] => https://drupal.org/node/2082797 [:db_insert_placeholder_8] => 217.226.2.208 [:db_insert_placeholder_9] => 1383645886 ) in dblog_watchdog() (line 160 of /var/www/drupal.org/htdocs/modules/dblog/dblog.module).
Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of /var/www/drupal.org/htdocs/includes/session.inc).
andros’s picture

Also, why is the time on each post her so different? My local time is set to Europe/Berlin (current time 11:17 am)

The issue is from: Posted by old_dog on November 5, 2013 at 12:31am
and 1#: Posted by tvn on November 5, 2013 at 10:36am

alan d.’s picture

Title: Uncaught exception on logout » Uncaught exception on various pages
Component: User interface » Miscellaneous
Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Needs review

Server appears to be getting overloaded. Occasionally the maintenance page with this error:

PDOException: SQLSTATE[00000] [1040] Too many connections in lock_may_be_available() (line 167 of /var/www/drupal.org/htdocs/includes/lock.inc).

The the above errors on others.

Managed to repeat 5 out of 8 loads 10 min ago. About 1 out of 10 loads atm

Probably related:
#2127935: Notice on issue pages - only on dev
#2127943: New D7 @ https://drupal.org/[various sites pages] are crashing on database
#2127947: Too many connections everywhere (random)

Maybe
#2125173: views_content_cache exception when posting an issue

cybernostra’s picture

Same on the drupal.org/project/biblio

Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.vid AS vid, base.name AS name, base.machine_name AS machine_name, base.description AS description, base.hierarchy AS hierarchy, base.module AS module, base.weight AS weight FROM {taxonomy_vocabulary} base WHERE (base.vid IN (:db_condition_placeholder_0)) ORDER BY base.weight ASC, base.name ASC; Array ( [:db_condition_placeholder_0] => 6 ) in DrupalDefaultEntityController->load() (line 191 of /var/www/drupal.org/htdocs/includes/entity.inc).

Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 146161 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:429:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.vid AS vid, base.name AS name, base.machine_name AS machine_name, base.description AS description, base.hierarchy AS hierarchy, base.module AS module, base.weight AS weight FROM {taxonomy_vocabulary} base WHERE (base.vid IN (:db_condition_placeholder_0)) ORDER BY base.weight ASC, base.name ASC; Array ( [:db_condition_placeholder_0] => 6 ) ";s:9:"%function";s:37:"DrupalDefaultEntityController->load()";s:5:"%file";s:46:"/var/www/drupal.org/htdocs/includes/entity.inc";s:5:"%line";i:191;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => https://drupal.org/project/biblio [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 88.162.242.29 [:db_insert_placeholder_9] => 1383650462 ) in dblog_watchdog() (line 160 of /var/www/drupal.org/htdocs/modules/dblog/dblog.module).

Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of /var/www/drupal.org/htdocs/includes/session.inc).

Jaggi’s picture

I've got a similar issue when visiting:

https://drupal.org/project/money

Get the following (probably need to turn off such detailed errors):

Additional uncaught exception thrown while handling exception.
Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.vid AS vid, base.name AS name, base.machine_name AS machine_name, base.description AS description, base.hierarchy AS hierarchy, base.module AS module, base.weight AS weight FROM {taxonomy_vocabulary} base WHERE (base.vid IN (:db_condition_placeholder_0)) ORDER BY base.weight ASC, base.name ASC; Array ( [:db_condition_placeholder_0] => 6 ) in DrupalDefaultEntityController->load() (line 191 of /var/www/drupal.org/htdocs/includes/entity.inc).
Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:429:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.vid AS vid, base.name AS name, base.machine_name AS machine_name, base.description AS description, base.hierarchy AS hierarchy, base.module AS module, base.weight AS weight FROM {taxonomy_vocabulary} base WHERE (base.vid IN (:db_condition_placeholder_0)) ORDER BY base.weight ASC, base.name ASC; Array ( [:db_condition_placeholder_0] => 6 ) ";s:9:"%function";s:37:"DrupalDefaultEntityController->load()";s:5:"%file";s:46:"/var/www/drupal.org/htdocs/includes/entity.inc";s:5:"%line";i:191;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => https://drupal.org/project/money [:db_insert_placeholder_7] => https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCwQFjAA&url=https%3A%2F%2Fdrupal.org%2Fproject%2Fmoney&ei=Wdh4UrCVJOOp7AbV3YAw&usg=AFQjCNFefgauwcSXJb02zvLtfbX4VDqGcg [:db_insert_placeholder_8] => 199.4.27.122 [:db_insert_placeholder_9] => 1383651481 ) in dblog_watchdog() (line 160 of /var/www/drupal.org/htdocs/modules/dblog/dblog.module).
kenorb’s picture

The same here:

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.vid AS vid, base.name AS name, base.machine_name AS machine_name, base.description AS description, base.hierarchy AS hierarchy, base.module AS module, base.weight AS weight FROM {taxonomy_vocabulary} base WHERE (base.vid IN (:db_condition_placeholder_0)) ORDER BY base.weight ASC, base.name ASC; Array ( [:db_condition_placeholder_0] => 6 ) in DrupalDefaultEntityController->load() (line 191 of /var/www/drupal.org/htdocs/includes/entity.inc).

Uncaught exception thrown in shutdown function.
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 9457929845278f13263a614.84331699 ) in lock_release_all() (line 269 of /var/www/drupal.org/htdocs/includes/lock.inc).

Fatal error: Class 'Database' not found in /var/www/drupal.org/htdocs/includes/bootstrap.inc on line 3105

Example URL: https://drupal.org/project/block_class

Related:
- #2127559: PDOException: SQLSTATE[HY000] [2013] Lost connection to MySQL server
- #2128027: PDO Exception on random navigation

one_orange_cat’s picture

Looks like the same issue here "General error: 2006 MySQL server has gone away..." on a number of pages for me including https://drupal.org/project/project_module. Example error included below but it does change slightly with each attempt.
My system: Chrome on Ubuntu and I have a crummy connection (3Mbps absolute max).

Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.tid AS tid, base.vid AS vid, base.name AS name, base.description AS description, base.format AS format, base.weight AS weight, v.machine_name AS vocabulary_machine_name FROM {taxonomy_term_data} base INNER JOIN {taxonomy_vocabulary} v ON base.vid = v.vid WHERE (base.tid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => 14 ) in DrupalDefaultEntityController->load() (line 191 of /var/www/drupal.org/htdocs/includes/entity.inc).

Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 837504 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:440:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.tid AS tid, base.vid AS vid, base.name AS name, base.description AS description, base.format AS format, base.weight AS weight, v.machine_name AS vocabulary_machine_name FROM {taxonomy_term_data} base INNER JOIN {taxonomy_vocabulary} v ON base.vid = v.vid WHERE (base.tid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => 14 ) ";s:9:"%function";s:37:"DrupalDefaultEntityController->load()";s:5:"%file";s:46:"/var/www/drupal.org/htdocs/includes/entity.inc";s:5:"%line";i:191;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => https://drupal.org/project/project_module [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 86.170.109.225 [:db_insert_placeholder_9] => 1383659520 ) in dblog_watchdog() (line 160 of /var/www/drupal.org/htdocs/modules/dblog/dblog.module).

Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of /var/www/drupal.org/htdocs/includes/session.inc).


PedroMiguel’s picture

Same here @ https://drupal.org/project/project_module

Additional uncaught exception thrown while handling exception.
Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.tid AS tid, base.vid AS vid, base.name AS name, base.description AS description, base.format AS format, base.weight AS weight, v.machine_name AS vocabulary_machine_name FROM {taxonomy_term_data} base INNER JOIN {taxonomy_vocabulary} v ON base.vid = v.vid WHERE (base.tid IN (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2)) ; Array ( [:db_condition_placeholder_0] => 14 [:db_condition_placeholder_1] => 11480 [:db_condition_placeholder_2] => 75 ) in DrupalDefaultEntityController->load() (line 191 of /var/www/drupal.org/htdocs/includes/entity.inc).
Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 1026708 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:587:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base.tid AS tid, base.vid AS vid, base.name AS name, base.description AS description, base.format AS format, base.weight AS weight, v.machine_name AS vocabulary_machine_name FROM {taxonomy_term_data} base INNER JOIN {taxonomy_vocabulary} v ON base.vid = v.vid WHERE (base.tid IN (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2)) ; Array ( [:db_condition_placeholder_0] => 14 [:db_condition_placeholder_1] => 11480 [:db_condition_placeholder_2] => 75 ) ";s:9:"%function";s:37:"DrupalDefaultEntityController->load()";s:5:"%file";s:46:"/var/www/drupal.org/htdocs/includes/entity.inc";s:5:"%line";i:191;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => https://drupal.org/project/project_module [:db_insert_placeholder_7] => https://drupal.org/download [:db_insert_placeholder_8] => 79.169.183.74 [:db_insert_placeholder_9] => 1383662103 ) in dblog_watchdog() (line 160 of /var/www/drupal.org/htdocs/modules/dblog/dblog.module).
Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 1783335979527901eb85f269.61300875 ) in lock_release_all() (line 269 of /var/www/drupal.org/htdocs/includes/lock.inc).
Fatal error: Class 'Database' not found in /var/www/drupal.org/htdocs/includes/bootstrap.inc on line 3105 
lucindabeth’s picture

Same issue here @ https://drupal.org/project/pathauto
was receiving

'PDOException: SQLSTATE[HY000]: General error: 2006...'

, now receiving message

'Fatal error: Class 'Database' not found in /var/www/drupal.org/htdocs/includes/bootstrap.inc on line 3105'

What is strange is that I received a PDOException:SQLSTATE[HY000]: General error 2006 on my personal site this morning, after I entered information as an authorized user (not admin). That site has been running for at least 7 months without any issues. Hosting provider just "upgraded" to different server configurations a month ago, but I had no issues at that time.

kenorb’s picture

URL: https://drupal.org/node/517742#comment-8146325
After posting the comment.

Fatal error: Class 'Database' not found in /var/www/drupal.org/htdocs/includes/bootstrap.inc on line 3105
dddave’s picture

Status: Needs review » Active

Closed a megaton of reports and made this the main issue.

alan d.’s picture

Status: Active » Needs review

This project have strange status workflow

Step Three: Verify other reports

You can also help by looking at an existing bug report in the "Active" state and following the "Steps to reproduce." If you are able to reproduce the problem, move the state to "Needs review." Otherwise, seek clarification in the issue.

Step Four

Once an issue has been created and is in the "needs review" state, a D7 upgrade team member will investigate, tag, and cross-link it to an actionable issue in another issue queue (or create one if needed).

Steps to replicate involve looking at these pages under high load.

Most errors suggest early bootstrap errors or errors that will block the dblog from working. This is really an issue for the infrastructure team to investigate.

dddave’s picture

Project: [Archive] Drupal.org D7 upgrade QA » Drupal.org infrastructure
Component: Miscellaneous » BZR

Uh. Thanks for correcting that. Kicking over to the infra team although I guess they are already on it.

killes@www.drop.org’s picture

Component: BZR » Database
Status: Needs review » Fixed

The database was overloaded due do an uncached query.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

bassplaya’s picture

I get the same errors on my D7 sites like I see here above.
Could anyone point out how to resolve this issue? It's nice to know that the database was overloaded due to an uncached query but what is the real solution here?
Thanks

Component: Database » Servers