Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[create database user] fails with "the python psycopg2 module is required #43

Open
Celeryfarmer opened this issue Dec 28, 2017 · 3 comments

Comments

@Celeryfarmer
Copy link

During the postgis install, the playbook fails. I've verified that psycopg2 is installed on the server by manually trying to "apt-get" install the python-psycopg2 package. Returns that package is already the most recent. Installing on Ubuntu 16.04 on a Digital Ocean droplet.

@kalxas
Copy link
Member

kalxas commented Dec 28, 2017

Can you please share your playbook so we can reproduce?

@Celeryfarmer
Copy link
Author

'---
-hosts: all
roles:
- role: GeoNode.geonode'

in my hosts file I have set:
ansible_python_interpreter= /usr/bin/python3

Brand new Droplet, no users created.
I've had trouble formatting these posts. That should be three dashes or one dash, not dots.

@cppmonkey
Copy link
Contributor

I was able to reproduce this on a fresh install of 18.04.3 Server (EnGB & OpenSSH), though re-running the playbook cleared the error...

- hosts: 192.168.122.221
  vars:
    app_name: my_geonode
    github_user: GeoNode
  roles:
  - { role: geonode.geonode }

image

Does it install the package if it errors? I'll have to look into the role code

I've always added a package section at the top of a playbook, but I see python-psycopg2 is in the section install PostGIS

Run from Fedora 31 with Ansible 2.9

Now I'm here
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants