openeuropa / drupal-site-template

OpenEuropa template for Drupal sites.
European Union Public License 1.2
12 stars 10 forks source link

"Failed to drop or create the database" #59

Closed donquixote closed 4 years ago

donquixote commented 4 years ago

(version debfcbd1284644faa5fecf2cfcb9ec5af14e7126)

I followed the normal instructions.

The following command

docker-compose exec web ./vendor/bin/run toolkit:install-clean

gives me

In SiteInstallCommands.php line 367:

  Failed to drop or create the database:

I'd say it probably has problems connecting to the db.

Related issue

https://github.com/openeuropa/drupal-site-template/issues/31

The solution proposed there is to use something other than the normal install process. But we should make this work with the recommended install process with docker.

brummbar commented 4 years ago

This is caused by the Docker services that are not yet completely initialised. The time needed to start the services depends on the host machine where the commands are run. Most of the time, it's just enough to wait a few seconds before issuing the install commands and/or re-issue the install commands after the error. This is a Docker typical behaviour, but we will try to add this info in documentation.

donquixote commented 4 years ago

Interesting. I am not sure how much time I let pass the last time. Either way I tried again now and it worked. So I suppose you are right.