Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Postgres automated Travis CI test fails due to drush postgres site-install fail #1675

Closed
geerlingguy opened this issue Jan 29, 2018 · 6 comments

Comments

@geerlingguy
Copy link
Owner

Issue Type

  • Bug Report / Support Request

Full console output

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 :(

@geerlingguy
Copy link
Owner Author

Apparently this was fixed upstream in drush-ops/drush#3480; once the next stable Drush release comes out, we should be able to test postgres again.

@nbertram
Copy link

@geerlingguy if there's any further issues with getting Drush tests working properly with Postgres I'm happy to help out. It's in our best interests here!

@stale
Copy link

stale bot commented Mar 6, 2020

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@stale stale bot added the stale label Mar 6, 2020
@geerlingguy
Copy link
Owner Author

I think this can be fixed now.

@stale
Copy link

stale bot commented Mar 20, 2020

This issue is no longer marked for closure.

@geerlingguy
Copy link
Owner Author

Hooray, tests are working again!

kentr added a commit to kentr/drupal-vm that referenced this issue Apr 4, 2020
* tag '5.2.0': (80 commits)
  Issue geerlingguy#2025: Update Changelog for 5.2.0 release.
  Issue geerlingguy#2025: Mention new var to override for older linux versions.
  Issue geerlingguy#1675: Use custom drush bin.
  Issue geerlingguy#1675: Test postgresql configuration again.
  Fixed structure for python interpreter override.
  Finally get some python sanity.
  Pesky quoting.
  Pesky semicolons.
  More test follow-ups for python interpreter.
  Issue geerlingguy#2024 extra test fixes.
  Follow-up to geerlingguy#2024: Fix failing tests due to python interpreter.
  Fixes geerlingguy#2024: Fix chicken-and-egg ordering of postgresql database and user.
  Issue geerlingguy#2024: Update postgresql role to latest version.
  Update mysql role to latest version.
  Update php role to latest version.
  Fixes geerlingguy#1960: Use newer Solr version and make sure correct Java package is installed.
  Fix docs for composer-dependency use concerning drupal_enable_modules.
  Update php role to latest version.
  Update php role to latest version.
  Add probot/stale configuration.
  ...
kentr added a commit to kentr/drupal-vm that referenced this issue Apr 12, 2020
* merge-upstream: (82 commits)
  Use `auto_legacy` for `ansible_python_interpreter`
  Use `/usr/bin/python` for `ansible_python_interpreter`
  Issue geerlingguy#2025: Update Changelog for 5.2.0 release.
  Issue geerlingguy#2025: Mention new var to override for older linux versions.
  Issue geerlingguy#1675: Use custom drush bin.
  Issue geerlingguy#1675: Test postgresql configuration again.
  Fixed structure for python interpreter override.
  Finally get some python sanity.
  Pesky quoting.
  Pesky semicolons.
  More test follow-ups for python interpreter.
  Issue geerlingguy#2024 extra test fixes.
  Follow-up to geerlingguy#2024: Fix failing tests due to python interpreter.
  Fixes geerlingguy#2024: Fix chicken-and-egg ordering of postgresql database and user.
  Issue geerlingguy#2024: Update postgresql role to latest version.
  Update mysql role to latest version.
  Update php role to latest version.
  Fixes geerlingguy#1960: Use newer Solr version and make sure correct Java package is installed.
  Fix docs for composer-dependency use concerning drupal_enable_modules.
  Update php role to latest version.
  ...
kentr added a commit to kentr/drupal-vm that referenced this issue Apr 15, 2020
* merge-upstream: (82 commits)
  Use `auto_legacy` for `ansible_python_interpreter`
  Use `/usr/bin/python` for `ansible_python_interpreter`
  Issue geerlingguy#2025: Update Changelog for 5.2.0 release.
  Issue geerlingguy#2025: Mention new var to override for older linux versions.
  Issue geerlingguy#1675: Use custom drush bin.
  Issue geerlingguy#1675: Test postgresql configuration again.
  Fixed structure for python interpreter override.
  Finally get some python sanity.
  Pesky quoting.
  Pesky semicolons.
  More test follow-ups for python interpreter.
  Issue geerlingguy#2024 extra test fixes.
  Follow-up to geerlingguy#2024: Fix failing tests due to python interpreter.
  Fixes geerlingguy#2024: Fix chicken-and-egg ordering of postgresql database and user.
  Issue geerlingguy#2024: Update postgresql role to latest version.
  Update mysql role to latest version.
  Update php role to latest version.
  Fixes geerlingguy#1960: Use newer Solr version and make sure correct Java package is installed.
  Fix docs for composer-dependency use concerning drupal_enable_modules.
  Update php role to latest version.
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants