Installing Bahmni 0.92 Failed on postgres installation

Thanks @rubailly for the feedback.

@ritesh @akshaybirajdar I have eventually successfully installed bahmni, by slightly modifying the official installation process (see “Installing Bahmni version 0.92 (Recommended)” https://bahmni.atlassian.net/wiki/spaces/BAH/pages/33128505/Install+Bahmni+on+CentOS):

- I updated the values on the 2 keys below in the file /opt/bahmni-installer/bahmni-playbooks/group_vars/local 
	○ postgres_repo_rpm_name: pgdg-redhat-repo-latest.noarch.rpm
	○ postgres_repo_download_url: https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/{{postgres_repo_rpm_name}}

The installation failed with the error below:

This issue was resolved by installing postgresql-libs and then restarting the installation:

sudo yum install postgresql-libs
bahmni -aru http://repo.mybahmni.org/releases/ansible-2.4.6.0-1.el7.ans.noarch.rpm install

Notes:

  • with the above approach, I didn’t need to manually remove and install the package “pgdg-redhat-repo-latest.noarch.rpm”.
  • I have also tried installing “postgresql-libs” before starting the bahmni installation (to avoid the above error), but that didn’t work. I am not sure why this is the case, but the approach that worked was to first start bahmni installation which will fail, then install “postgresql-libs” and finally restart bahmni installation which succeeds on the second try
5 Likes