-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MySQL server gone away after drush php
#1747
Comments
Looks like I was on the right track. Cache bins are (re)created when they're missing: https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!DatabaseBackend.php/function/DatabaseBackend%3A%3AensureBinExists/8 That code calls Apparently that contains a workaround for a MySQL bug (doesn't seem to be present in MariaDB). A "server went away" exception (or anything else) is therefore interpreted as "this table doesn't exist". That triggers |
ping @weitzman , this is the same problem you pinged me about yesterday. I think the problem is because we are telling drush we are done early, stuff (not sure what yet) is happening in the Bootstrap 8 process, possible with the drush shutdown function. Then terminate is still called when the shell exits. |
so yeah the problem is the following. |
Yeah, so the main issue we have here is that PsySH uses a So I guess we could try:
|
Well that just feels like a workflow for one special usecase to be honets On Mon, Nov 16, 2015 at 2:28 PM, Damian Lee notifications@github.com
|
Potential fix : #1785 |
@ameenross I just merged the fix for this problem, it should solve the issue for both D7 and D8 sites. Please give it a go! #1785 |
Cool, that solved the problem. Thx |
This is with Drush and Drupal both at version 8.0.0-rc3.
It looks like for some reason it's trying to create the
cache_config
table, even though it exists. Apparently this happens after closing the connection to the database. Perhaps Drupal thinks the table is missing and tries to repair it?The text was updated successfully, but these errors were encountered: