-
-
Notifications
You must be signed in to change notification settings - Fork 641
PGSQL provisioning fails: wrong python interpreter and no database #2024
Comments
@JASUMAHIRO - Are you trying to run one playbook by itself? (the |
Also if you're on Ubuntu 18.04, it should automatically set the Can you supply your config.yml? |
Hi @geerlingguy No, I've been using only I'll post the config file but it is pretty much like the original except for the Drupal db backend and major version. And for other files I've just modified |
I tried again with vanilla git clone and changed only mysql to pgsql. This time I connected to VM with SSH and installed
However, as the issue itself describes, this will fix the first error but ends up in db connection problem due to non-existent database.
Is this working for someone? |
@JASUMAHIRO - This is likely due to this change: geerlingguy/ansible-role-postgresql#31 — which was merged a few months ago. It didn't hit a major Drupal VM release until recently, so you're probably the first to update/try a new version and stumble into it. I'll boot up an instance locally and see what needs to change—probably just the owner reference on the database (and remove the database reference on the user) since they switched setup order. |
I'm also planning on fixing the Python2/Python3 issue by forcing Drupal VM to use the |
See commit here: 59f28f2 The basic changes required for now if you want to use older versions of Drupal VM (which will be the defaults in the next version of Drupal VM and should work with the docs again):
The above changes won't be necessary once 5.2.0 is released (should be today, hopefully!). |
Hi I just cloned the repo and while the provisioning went through I can't access database i.e. Adminer won't connect (PGSQL nor MySQL). However, the Drupal site is responding so there must a database. Should the dashboard state implicitly that which database is in use? Now it says MySQL. But for now I think that it is better to just install pgsql etc. locally and keep developing without this VM since it seems to take a lot of time to get up and running. |
* 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. ...
* 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. ...
* 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. ...
Issue Type
Your Environment
Your OS
Full console output
https://gist.github.com/JASUMAHIRO/0a5e34f8e11e7ccb1bb0e641ad7eee5b
Summary
Using PostgreSQL is impossible. It should be matter of changing one variable value from config.yml as per latest documentation but it fails.
At first it fails with python-psycopg2 which it can't find since it is using Python (2). I was able to solve this by prepending ansible_python_interpreter=/usr/bin/python3 to provisioning/roles/geerlingguy.php-pgsql/molecule/default/playbook.yml
However, after this vagrant provision returns a new error also related to PGSQL in which it claims that database cannot be found and therefore connected.
I'm using latest repo from git.
The text was updated successfully, but these errors were encountered: