Drupal 8 breaks with current Cloud database

Drupal 8 breaks with current Cloud database

11 posts / 0 new
Last post
tg@gpm-agency.net's picture
tg
Points: 0
Drupal 8 breaks with current Cloud database

Hi,

at the moment I am not able use the Cloud Workflow to update my sites databases and code.

# My Setup
- Acquit Dev Desktop 2 (18 March 2015) (see screenshot 00)
- Three example Drupal 8 installations with
drupal 8 beta4
drupal 8 beta6 and
drupal 8 beta7
- crush version 7beta9 (as installed witch DevDesktop)

If I do one of the following I’ll get errors

## Create new local push to cloud

Create a local drupal 8 beta 7 and click „host this site on Aquia Cloud“. See Screenshot 01. This error occured in the earlier versions of DevDesktop but all content was pushed correctly - regardless of the warning. Now the cloud hosted site is broken (shows no css and other content)

## Create new in cloud clone to local

Create a drupal 8 beta 7 in the cloud and clone to local does not finish and aborts when connecting to the cloud database, I guess. See screenshot 02. After this message the local creation gets canceled, so no cloned dir exists.

## Pull from Cloud from existing D8beta4

When I switch over to our existing projects, the situation gets worse, see Screenshot 03. Here the pull fails due to a error with drush. This is as we found out a version Problem with druapl8beta4. So we go on with testing a newer version, see next.

## Pull from Cloud from existing D8beta6

Cloning an existing drupal8beta6 generates kinda the same problemm, due to drush incompatibility. But it also reveals the underlying database problem, as can be seen in screenshot 04. Note the empty database dump

Database dump saved to /mnt/tmp/dev_desktop_ittbrech.sql.gz            [success]
Transfering sql dump file…
0 of 0 KBytes transferred

this results in a folder created containing the code but without the database obviously. If I take a database dump from the cloud, I get a working instance of my drupal install.
But further workflow is not possible, due to the drush incompatibility throwing errors like

> $ drush                                                                                                                                      
PHP Fatal error:  Call to undefined method Drupal::hasContainer() in /Applications/DevDesktop/drush/vendor/drush/drush/lib/Drush/Boot/bootstrap.inc on line 723

Fatal error: Call to undefined method Drupal::hasContainer() in /Applications/DevDesktop/drush/vendor/drush/drush/lib/Drush/Boot/bootstrap.inc on line 723
Drush command terminated abnormally due to an unrecoverable error.                                                                                 [error]
Error: Call to undefined method Drupal::hasContainer() in /Applications/DevDesktop/drush/vendor/drush/drush/lib/Drush/Boot/bootstrap.inc, line 723

So if I wanted to push the local database to the cloud I will get an error due to the same drush failure, see screenshot 04

## Database configuration

After the update of the DevDesktop we found this very problem inside the drupal core

Additional uncaught exception thrown while handling exception.

Original

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‚ittbrech_dev.arraykey_value‘ doesn’t exist: SELECT 1 AS expression FROM {key_value} key_value WHERE ( (name = :db_condition_placeholder_0) AND (collection = :db_condition_placeholder_1) ); Array ( [:db_condition_placeholder_0] => system.theme.files [:db_condition_placeholder_1] => state ) in Drupal\Core\State\State->set() (line 89 of /Users/Tassilo/Sites/devdesktop/ittbrech-dev/docroot/core/lib/Drupal/Core/State/State.php).

as you can see the tablename is concatenated with a wrong table prefix (ittbrech_dev.arraykey_value). We found, that the database configuration was handed an array, which is then parsed to a String.

So if you go to
\Drupal\Core\Database\Connection::__construct line 147 and put the following before it, this will work.

    if (isset($connection_options[‚prefix‘][‚default‘]) && $connection_options[‚prefix‘][‚default‘] === ‚Array‘) {
      $connection_options[‚prefix‘][‚default‘] = ‚‘;
    }

but as you can see, it is not something to add to the core.

please provide us with some help, because we are not able to update our live site, currently!

Status: 
Unresolved
tg@gpm-agency.net's picture
tg
Points: 0

bump

rf@gpm-agency.net's picture
rf
Points: 3

Bumping, i have the same problem,

nothing works:

drupal 8beta4, beta6, beta7, beta9 with different versions of devdesktop2 and drush

drush solo runs through everything, but the combo drush + devdesktop and / or push / pull with dev desktop doesn't work at all

chris.brookins@acquia.com's picture
chris.brookins
Points: 116

A new version of drush came out with fixes that we need to get into Acquia Cloud and Dev Desktop - we will have the dev desktop fixes very soon and cloud soon after

rf@gpm-agency.net's picture
rf
Points: 3

okay thanks for the response, could you please keep us updated?

thanks! :)

chris.brookins@acquia.com's picture
chris.brookins
Points: 116

New Dev Desktop release just posted with fixes for the current version of Drupal 8 - however there still are some issues on the Acquia Cloud side which we are working on.

Click the Check for updates menu choice in Dev Desktop to get the latest (Mar 27 build)

oskarrough@gmail.com's picture
oskarrough
Points: 0

Hi, also can't clone a Drupal 8 beta9 site locally using the latest Dev Desktop. I get the following error: http://pastie.org/10101146

chris.brookins@acquia.com's picture
chris.brookins
Points: 116

Acquia Cloud does not yet support Drupal 8 beta 9 - we will support it in a future release - keep watching or subscribe to updates at https://docs.acquia.com/cloud/release-notes for when Acquia Cloud will support Drupal 8 beta 9

sherapova@yopmail.com's picture
sherapova
Points: 0

much obliged this is great online journal. Rutabagas

sherapova@yopmail.com's picture
sherapova
Points: 0

Awesome things you've generally imparted to us. Simply continue composition this sort of posts.The time which was squandered in going for educational cost now it can be utilized for studies.Thanks no 1 selling car in usa

asad10987t@gmail.com's picture
asad10987t
Points: 0

This article gives the light in which we can watch the truth. This is exceptionally decent one and gives indepth data. A debt of gratitude is in order for this decent article. Brian Holm Attorney San Diego