-
-
Notifications
You must be signed in to change notification settings - Fork 641
Docker container not working #1856
Comments
I've encountered what I believe is the same problem, using Docker 18.06.1-ce on Windows 10 (1709). The underlying problem appears to be that mysql doesn't start automatically.
I've had some luck working around this by following these steps (offered with no warranty)
At that point, I've been able to stop and restart the container and still have mysql come up. I'm not sure if/why it's necessary to login to mysql, but this only seems to work when that step is present. One point that may or may not be significant is that I'm using docker-composer (based on the
The "drupal-vm" service uses a Dockerfile which builds on top of |
It sounds like for some reason the MySQL service isn't starting up properly. I'll have to take a look as to why that's the case. |
So, it looks like a systemd launch was attempted, but it failed? dbus isn't running? f1c43a15f0b6 geerlingguy/drupal-vm "/lib/systemd/systemd" 7 minutes ago Up 7 minutes 0.0.0.0:80->80/tcp, 3306/tcp, 0.0.0.0:443->443/tcp, 8025/tcp drupalvm |
so, when I followed dudes workaround, when copying the example.drupal-composer.yml file, I had to change the version to "2" to make it work. |
If it's a problem like 'Failed to connect to bus', then that means you might not be starting the container with the right volume mounts—see https://github.com/geerlingguy/drupal-vm/blob/master/example.docker-compose.yml#L30 |
Hi @geerlingguy I'm getting this error but when trying to bake a fresh image from the container. I've follow the instructions about the volumes but still not working. In my case I'm getting the error during provitioning when checking that POSTFIX service is started TASK [geerlingguy.postfix : Ensure postfix is installed.]
**********************************************************
ok: [localhost]
TASK [geerlingguy.postfix : Update Postfix configuration.]
**********************************************************
ok: [localhost] => (item={u'name': u'inet_interfaces', u'value': u'localhost'})
ok: [localhost] => (item={u'name': u'inet_protocols', u'value': u'all'})
TASK [geerlingguy.postfix : Ensure postfix is started and enabled at boot.]
**********************************************************
fatal: [localhost]: FAILED! => {
"changed": false,
"cmd": "/bin/systemctl",
"msg": "Failed to connect to bus: No such file or directory",
"rc": 1,
"stderr": "Failed to connect to bus: No such file or directory\n",
"stderr_lines": ["Failed to connect to bus: No such file or directory"],
"stdout": "", "stdout_lines": []}
to retry, use: --limit @/etc/ansible/drupal-vm/provisioning/playbook.retry
PLAY RECAP *********************************************
localhost : ok=16 changed=0 unreachable=0 failed=1 Any advice? |
I'm getting a similar error using Docker on Ubuntu.
|
I have this issue as well, I'm using "method 1" on the drupalvm docker installation docs: ` // You are about to CREATE the 'drupal' database. Do you want to continue?: In SiteInstallCommands.php line 367: Failed to drop or create the database: site:install [--db-url DB-URL] [--db-prefix DB-PREFIX] [--db-su DB-SU] [--db-su-pw DB-SU-PW] [--account-name [ACCOUNT-NAME]] [--account-mail [ACCOUNT-MAIL]] [--site-mail [SITE-MAIL]] [--account-pass ACCOUNT-PASS] [--locale [LOCALE]] [--site-name [SITE-NAME]] [--site-pass SITE-PASS] [--sites-subdir SITES-SUBDIR] [--config-dir CONFIG-DIR] [--existing-config] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--notify] [--xh-link XH-LINK] [--] []...` I wonder if this might be an issue with drush using site-install, the drush version seems to be 9.6.2. It does not appear as if the database creation step was successful. I'm also on a windows 10 environment. |
Quick fix is:
(Moved that comment from related issue #1937). |
"Method 1" on the Drupal VM Docker installation docs will work if you add the volumes to the docker run command.
|
Error: `In SiteInstallCommands.php line 367: Failed to drop or create the database:` This is due because the `systemctl start mysql` command failed due to missing volume. Fix was to add the missing volume to the command. Also, resolves geerlingguy#1856
Issue Type
Your Environment
Your OS
Full console output
gist
Summary
using docker container with tag "latest", when running the command:
docker exec drupalvm install-drupal
after a while shows the following output:
I tried with container version (tag) 4.8.1 and everything works as intended
The text was updated successfully, but these errors were encountered: