Installation error with Bahmni. It seems like installer is unable to find the Postgresql path

Hello Friends,

First of all thanks for the community effort to build and maintain the Bahmni.

I just have freshly installed CentOS 6.9. While trying to install the Bahmni, I got following errors. It seems like installer is unable to find the Postgresql path.

TASK [bahmni-lab : Update markers with remote IP] ****************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-lab/tasks/main.yml:117 fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/opt/bahmni-lab/add_remote_ip_in_openelis_markers.sh”, “delta”: “0:00:00.026678”, “end”: “2018-06-12 23:33:39.829165”, “failed”: true, “rc”: 127, “start”: “2018-06-12 23:33:39.802487”, “stderr”: “+ . /etc/bahmni-installer/bahmni.conf\n++ IMPLEMENTATION_NAME=default\n++ OPENMRS_DB_USERNAME=openmrs-user\n++ OPENMRS_DB_PASSWORD=password\n++ OPENMRS_DB_SERVER=localhost\n++ OPENELIS_DB_USERNAME=clinlims\n++ OPENELIS_DB_PASSWORD=password\n++ OPENELIS_DB_SERVER=localhost\n++ OPENERP_DB_USERNAME=openerp\n++ OPENERP_DB_PASSWORD=password\n++ OPENERP_DB_SERVER=localhost\n++ MYSQL_ROOT_USER=root\n++ MYSQL_ROOT_PASSWORD=password\n++ REPORTS_DB_SERVER=localhost\n++ REPORTS_DB_PASSWORD=password\n++ REPORTS_DB_USERNAME=reports-user\n+ psql -U clinlims -h localhost -c ‘UPDATE\n markers\n SET\n feed_uri_for_last_read_entry = regexp_replace(\n feed_uri_for_last_read_entry, ‘\’‘http://./openmrs’\’’, ‘\’‘http://localhost:8050/openmrs’\’’\n ),\n feed_uri = regexp_replace(\n feed_uri, ‘\’'http://./openmrs’\’’, ‘\’‘http://localhost:8050/openmrs’\’’\n ) where feed_uri ~ ‘\’‘openmrs’\’’;’\n/opt/bahmni-lab/add_remote_ip_in_openelis_markers.sh: line 6: psql: command not found”, “stdout”: “”, “stdout_lines”: [], “warnings”: []} to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry

PLAY RECAP ********************************************************************* localhost : ok=197 changed=70 unreachable=0 failed=1

Traceback (most recent call last): File “/usr/bin/bahmni”, line 9, in load_entry_point(‘bahmni==0.1’, ‘console_scripts’, ‘bahmni’)() File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py”, line 722, in call return self.main(*args, **kwargs) File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py”, line 697, in main rv = self.invoke(ctx) File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py”, line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py”, line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py”, line 535, in invoke return callback(*args, **kwargs) File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/decorators.py”, line 17, in new_func return f(get_current_context(), *args, **kwargs) File “/usr/lib/python2.6/site-packages/bahmni-0.1-py2.6.egg/bahmni.py”, line 91, in install return subprocess.check_call(command, shell=True) File “/usr/lib64/python2.6/subprocess.py”, line 505, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command ‘ansible-playbook -i /etc/bahmni-installer/local all.yml -vv --extra-vars ‘@/etc/bahmni-installer/rpm_versions.yml’ --extra-vars ‘@/etc/bahmni-backrest.conf’ --extra-vars ‘@/etc/bahmni-installer/setup.yml’’ returned non-zero exit status 2

Thanks for helping.

Hi,

Can you please provide more information like which bahmni version you are installing, what kind of system are you using?