> Hellow,
>
> Can you help me.
> I am a fan of drupal
> I upgraded the core with drush
>
> When i do drush updb, the system tell me:

>X-Powered-By: PHP/5.5.30
> Content-type: text/html
>
> The following updates are pending:
>
> search_api_db module :
> 7103 - Changes date fields from int to big int. The purpose is to
> support historical dates.
> 7104 - Use a single full text table per index.
> 7105 - Add a (word, field_name) covering index to fulltext tables.
> 7106 - Change full text score from float to int.
>
> Do you wish to run all pending updates? (y/n): y
> *Warning*: fwrite() expects parameter 1 to be resource, string given in
> */htdocs/drush/includes/output.inc* on line *34*
> ======== ADDITIONAL UNCAUGHT EXCEPTION THROWN WHILE HANDLING
> EXCEPTION.======
>
> --------
> ORIGINAL------------------------------------------------------------
>
> PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone
> away: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT
> JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE
> s.source = :source AND s.context = :context AND s.textgroup =
> 'default'; Array
> (
> [:language] => es
> [:source] => Finished performing updates.
> [:context] =>
> )
> in locale() (line 720 of /htdocs/nikinik/modules/locale/locale.module).
>
> --------
> ADDITIONAL----------------------------------------------------------
>
> PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone
> away: SELECT r.filename AS filename
> FROM
> {registry} r
> WHERE (r.name LIKE :db_condition_placeholder_0 ESCAPE '\\') AND
> (r.type = :db_condition_placeholder_1) ; Array
> (
> [:db_condition_placeholder_0] => drush\_drupal\_environment
> [:db_condition_placeholder_1] => trait
> )
> in _registry_check_code() (line 3204 of
> /htdocs/nikinik/includes/bootstrap.inc).
>
> ------------------------------------------------------------------------------
>
> *Warning*: fwrite() expects parameter 1 to be resource, string given in
> */htdocs/drush/includes/output.inc* on line *34*
> ======== 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] => 73198235556b8d0fa46ff14.17568098
> )
> in lock_release_all() (line 269 of
> /htdocs/nikinik/includes/lock.inc).

Comments

nicojimenez created an issue. See original summary.

drunken monkey’s picture

Component: User interface » Code
Issue tags: -search_api_db, -drush, -database

Why did you prepend ">" to every line in your text?

Anyways, "MySQL server has gone away" seems like some request to the database server might have overloaded it, or maybe the page request just took too long? How large is your search index, are there many fields and/or items?
Worst case, you could remove all indexes from the search server, then run the updates, and then re-add and re-enable them. You'll need to re-index, of course, but the update itself will have no work at all, thus hopefully avodiing the problem.

Otherwise, have you looked into your MySQL logs, are there any noteworthy warnings or errors in there from that page request?

PS: It seems you (like many others – it's really easy to misinterpret) are confused by the "Issue tags" field. As the guidelines state, they aren't meant for free text tags related to the issue, but only for specific categorization purposes, usually by module maintainers.
So, if you aren't sure your current usage is correct, please just leave the field empty.