You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
TASK [geerlingguy.drupal : Install Drupal with drush.] *************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["/var/www/drupalvm/drupal/vendor/drush/drush/drush", "site-install", "standard", "-y", "--root=/var/www/drupalvm/drupal/web", "--site-name=Drupal", "--account-name=admin", "--account-pass=admin", "--db-url=pgsql://drupal:drupal@localhost/drupal"], "delta": "0:00:00.385153", "end": "2018-01-29 22:34:15.979946", "msg": "non-zero return code", "rc": 1, "start": "2018-01-29 22:34:15.594793", "stderr": " [error] Failed to create database: Password for user drupal:psql: fe_sendauth: no password supplied ", "stderr_lines": [" [error] Failed to create database: Password for user drupal:psql: fe_sendauth: no password supplied "], "stdout": "\n // You are about to DROP all tables in your 'drupal' database. Do you want to \n // continue?: yes. ", "stdout_lines": ["", " // You are about to DROP all tables in your 'drupal' database. Do you want to ", " // continue?: yes. "]}
Specifically:
$ /var/www/drupalvm/drupal/vendor/drush/drush/drush site-install standard -y --root=/var/www/drupalvm/drupal/web --site-name=Drupal --account-name=admin --account-pass=admin --db-url=pgsql://drupal:drupal@localhost/drupal
...
[error] Failed to create database: Password for user drupal:psql: fe_sendauth: no password supplied
Summary
Basically, see drush-ops/drush#3330 — it looks like it's an upstream Drush issue (that has reared its head in the past), and we might have to resort to some environment variable-based hack as described in this comment to fix the problem :(