Bahmni installation on CentOS 6.8

Tags: #<Tag:0x00007f0f1cdccd50> #<Tag:0x00007f0f1cdccc60>

Hello,

i tried to install bahmni on my centOS machine following the instructions here : https://bahmni.atlassian.net/wiki/spaces/BAH/pages/33128505/Install+Bahmni+on+CentOS

but when i try the command : bahmni --help

I get this error :

Traceback (most recent call last): File “/usr/bin/bahmni”, line 5, in from pkg_resources import load_entry_point File “/usr/lib/python2.6/site-packages/pkg_resources.py”, line 2655, in working_set.require(requires) File “/usr/lib/python2.6/site-packages/pkg_resources.py”, line 648, in require needed = self.resolve(parse_requirements(requirements)) File “/usr/lib/python2.6/site-packages/pkg_resources.py”, line 546, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: Click

Can anyone help me please ?

Looks like you are getting the same error mentioned here

1 Like

thank you for your reply, I worked around that problem but now when i try the command : bahmni install

I get this : PLAY RECAP ********************************************************************* localhost : ok=182 changed=111 unreachable=0 failed=1

and this is the failure :

TASK [bahmni-erp : Install bahmni-erp from bahmni-repo] ************************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-erp/tasks/main.yml:47 fatal: [localhost]: FAILED! => {“changed”: true, “failed”: true, “msg”: “Error: Package: bahmni-erp-0.89-49.noarch (bahmni)\n Requires: mx\n”, “rc”: 1, “results”: [“Loaded plugins: fastestmirror, refresh-packagekit, security\nSetting up Install Process\nLoading mirror speeds from cached hostfile\n * base: mirrors.coreix.net\n * epel: fedora.mirror.tn\n * extras: mirrors.coreix.net\n * updates: mirrors.coreix.net\nResolving Dependencies\n–> Running transaction check\n—> Package bahmni-erp.noarch 0:0.89-49 will be installed\n–> Processing Dependency: python-feedparser for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: python-mock for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: python-unittest2 for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: pywebdav for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: python-docutils for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: python-psutil for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: glade3 for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: python-vatnumber for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: python-openid for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: mx for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: python-vobject for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: python-imaging for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: python-reportlab for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: pydot for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: pychart for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: libxslt-python for package: bahmni-erp-0.89-49.noarch\n–> Processing Dependency: PyXML for package: bahmni-erp-0.89-49.noarch\n–> Running transaction check\n—> Package PyXML.x86_64 0:0.8.4-19.el6 will be installed\n—> Package bahmni-erp.noarch 0:0.89-49 will be installed\n–> Processing Dependency: mx for package: bahmni-erp-0.89-49.noarch\n—> Package glade3.x86_64 0:3.6.7-2.1.el6 will be installed\n–> Processing Dependency: glade3-libgladeui = 3.6.7-2.1.el6 for package: glade3-3.6.7-2.1.el6.x86_64\n–> Processing Dependency: libgladeui-1.so.9()(64bit) for package: glade3-3.6.7-2.1.el6.x86_64\n—> Package libxslt-python.x86_64 0:1.1.26-2.el6_3.1 will be installed\n—> Package pychart.noarch 0:1.39-10.1.el6 will be installed\n—> Package pydot.noarch 0:1.0.3-1.el6 will be installed\n–> Processing Dependency: graphviz for package: pydot-1.0.3-1.el6.noarch\n–> Processing Dependency: pyparsing for package: pydot-1.0.3-1.el6.noarch\n—> Package python-docutils.noarch 0:0.6-1.el6 will be installed\n—> Package python-feedparser.noarch 0:5.1.2-2.el6 will be installed\n—> Package python-imaging.x86_64 0:1.1.6-19.el6 will be installed\n—> Package python-openid.noarch 0:2.2.5-7.el6 will be installed\n—> Package python-psutil.x86_64 0:0.6.1-1.el6 will be installed\n—> Package python-reportlab.x86_64 0:2.3-3.el6 will be installed\n—> Package python-unittest2.noarch 0:0.5.1-3.el6 will be installed\n—> Package python-vatnumber.noarch 0:1.0-1.el6 will be installed\n–> Processing Dependency: python-suds for package: python-vatnumber-1.0-1.el6.noarch\n—> Package python-vobject.noarch 0:0.8.1c-5.el6 will be installed\n—> Package python2-mock.noarch 0:1.0.1-10.el6 will be installed\n—> Package pywebdav.noarch 0:0.9.4.1-1.el6 will be installed\n–> Running transaction check\n—> Package bahmni-erp.noarch 0:0.89-49 will be installed\n–> Processing Dependency: mx for package: bahmni-erp-0.89-49.noarch\n—> Package glade3-libgladeui.x86_64 0:3.6.7-2.1.el6 will be installed\n–> Processing Dependency: devhelp for package: glade3-libgladeui-3.6.7-2.1.el6.x86_64\n—> Package graphviz.x86_64 0:2.26.0-10.el6 will be installed\n–> Processing Dependency: libgd.so.2()(64bit) for package: graphviz-2.26.0-10.el6.x86_64\n—> Package pyparsing.noarch 0:1.5.6-1.el6 will be installed\n—> Package python-suds.noarch 0:0.4.1-3.el6 will be installed\n–> Running transaction check\n—> Package bahmni-erp.noarch 0:0.89-49 will be installed\n–> Processing Dependency: mx for package: bahmni-erp-0.89-49.noarch\n—> Package devhelp.x86_64 0:2.28.1-6.el6 will be installed\n—> Package gd.x86_64 0:2.0.35-11.el6 will be installed\n–> Finished Dependency Resolution\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n”]}

Can anyone help me ?

Try this

1 Like

Thank you.

That solved one problem but now it gives me this error.

TASK [bahmni-erp-connect : Backup openerp markers, failed_events tables] ******* task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-erp-connect/tasks/main.yml:40 fatal: [localhost -> localhost]: FAILED! => {“changed”: true, “failed”: true, “rc”: 1, “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++ 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++ DCM4CHEE_DB_SERVER=localhost\n++ date +%Y%m%d_%H%M%S\n+ TIME=20171108_143818\n+ pg_dump -U openerp -a -t markers -t failed_events openerp\npg_dump: server version: 9.2.23; pg_dump version: 8.4.20\npg_dump: aborting because of server version mismatch\n”, “stdout”: “”, “stdout_lines”: []} to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry

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

-You have multiple versions of postgresql installed. Run the following command and share the output here

find / -name pg_dump -type f 2>/dev/null

This is what i got

[root@localhost bahmni-installer]# find / -name pg_dump -type f 2>/dev/null

/usr/pgsql-9.2/bin/pg_dump

/usr/bin/pg_dump

will this help ?

Yup. Try creating a symlink to psql-9.2 and do the install again.

sudo ln -s /usr/pgsql-9.2/bin/pg_dump /usr/bin/pg_dump --force

Thank you

but now i have this error

TASK [dcm4chee-oracle-java : install oracle java rpm] ************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/dcm4chee-oracle-java/tasks/dcm4chee-oracle-java.yml:1 fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “msg”: “No RPM file matching ‘/opt/jre-7u79-linux-x64.rpm’ found on system”, “rc”: 127, “results”: [“No RPM file matching ‘/opt/jre-7u79-linux-x64.rpm’ found on system”]} to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry

PLAY RECAP ********************************************************************* localhost : ok=210 changed=81 unreachable=0 failed=1

Run the following commands and share the output:

sudo service --status-all

yum list installed | grep bahmni

[root@localhost ~]# sudo service --status-all

abrt-ccpp hook is installed

abrtd (pid 16048) is running…

abrt-dump-oops is stopped

acpid (pid 2201) is running…

atd (pid 15608) is running…

auditd (pid 15767) is running…

automount (pid 6588) is running…

Service bahmni-erp-connect is running with pid: 23865

Service bahmni-reports is running with pid: 22404

Usage: /etc/init.d/bluetooth {start|stop}

certmonger (pid 6636) is running…

Running

cgred is stopped

Frequency scaling enabled using ondemand governor

crond (pid 6779) is running…

cupsd (pid 6973) is running…

dnsdomainname: Unknown host

dnsmasq is stopped

Generated by ebtables-save v1.0 on Thu Nov 9 16:52:37 CET 2017

*nat :PREROUTING ACCEPT :OUTPUT ACCEPT :POSTROUTING ACCEPT

firstboot is not scheduled to run hald (pid 2213) is running… JAVA_EXECUTABLE or HSQLDB_JAR_PATH in ‘/etc/sysconfig/hsqldb’ is set to a non-file. htcacheclean is stopped httpd (pid 20440) is running… Table: filter Chain INPUT (policy ACCEPT)

num target prot opt source destination
1 ACCEPT all ::/0 ::/0 state RELATED,ESTABLISHED 2 ACCEPT icmpv6 ::/0 ::/0
3 ACCEPT all ::/0 ::/0
4 ACCEPT udp ::/0 fe80::/64 state NEW udp dpt:546 5 ACCEPT tcp ::/0 ::/0 state NEW tcp dpt:22 6 REJECT all ::/0 ::/0 reject-with icmp6-adm-prohibited

Chain FORWARD (policy ACCEPT)

num target prot opt source destination
1 REJECT all ::/0 ::/0 reject-with icmp6-adm-prohibited

Chain OUTPUT (policy ACCEPT) num target prot opt source destination

Table: nat Chain PREROUTING (policy ACCEPT) num target prot opt source destination

Chain POSTROUTING (policy ACCEPT) num target prot opt source destination
1 MASQUERADE tcp – 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535 2 MASQUERADE udp – 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535 3 MASQUERADE all – 192.168.122.0/24 !192.168.122.0/24

Chain OUTPUT (policy ACCEPT) num target prot opt source destination

Table: mangle Chain PREROUTING (policy ACCEPT) num target prot opt source destination

Chain INPUT (policy ACCEPT) num target prot opt source destination

Chain FORWARD (policy ACCEPT) num target prot opt source destination

Chain OUTPUT (policy ACCEPT) num target prot opt source destination

Chain POSTROUTING (policy ACCEPT) num target prot opt source destination
1 CHECKSUM udp – 0.0.0.0/0 0.0.0.0/0 udp dpt:68 CHECKSUM fill

Table: filter Chain INPUT (policy DROP) num target prot opt source destination
1 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:5432 /* POSTGRES / 2 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:8069 / BAHMNIERP / 3 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:8051 / BAHMNIREPORTS / 4 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:8050 / OPENMRS / 5 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 / https / 6 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 / WEB SERVER / 7 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306 / MYSQL / 8 ACCEPT udp – 0.0.0.0/0 0.0.0.0/0 udp dpt:53 9 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 10 ACCEPT udp – 0.0.0.0/0 0.0.0.0/0 udp dpt:67 11 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:67 12 ACCEPT all – 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 13 ACCEPT icmp – 0.0.0.0/0 0.0.0.0/0
14 ACCEPT all – 0.0.0.0/0 0.0.0.0/0
15 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22 16 REJECT all – 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited 17 ACCEPT all – 0.0.0.0/0 0.0.0.0/0 /
lo / 18 ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 / SSH */

Chain FORWARD (policy DROP) num target prot opt source destination
1 ACCEPT all – 0.0.0.0/0 192.168.122.0/24 state RELATED,ESTABLISHED 2 ACCEPT all – 192.168.122.0/24 0.0.0.0/0
3 ACCEPT all – 0.0.0.0/0 0.0.0.0/0
4 REJECT all – 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable 5 REJECT all – 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable 6 REJECT all – 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT) num target prot opt source destination

irqbalance (pid 2039) is running…

iscsi is stopped

iscsid is stopped

Checking jexec statusKdump is operational

ksm is not running

ksmtuned (pid 6545) is running…

libvirtd (pid 6047) is running…

started

lvmetad is stopped

dmeventd is stopped

mdmonitor is stopped

messagebus (pid 2084) is running…

mysqld (pid 19622) is running…

No open transaction

netconsole module not loaded

Configured devices: lo p4p1

Currently active devices: lo p4p1 virbr0

NetworkManager (pid 2099) is running…

rpc.svcgssd is stopped

rpc.mountd is stopped

nfsd is stopped

rpc.rquotad is stopped

rpc.statd (pid 16018) is running…

grep: /proc/fs/nfsd/portlist: No such file or directory

ntpd (pid 18172) is running…

numad is stopped

oddjobd is stopped

openerp-server is running…

Service openmrs is running with pid: 21543

portreserve is stopped

master (pid 6879) is running…

postgresql-9.2 (pid 24192) is running…

pppoe-server is stopped

Process accounting is disabled.

quota_nld is stopped

radvd is stopped

rdisc is stopped

Low level hardware support loaded: none found

Upper layer protocol modules: none found

User space access modules: none found

Connection management modules: none found

restorecond (pid 3253) is running…

rngd is stopped

rpcbind (pid 15711) is running…

rpc.gssd is stopped

rpc.idmapd is stopped

rpc.svcgssd is stopped

rsyslogd (pid 1948) is running…

sandbox is stopped

saslauthd is stopped

smartd is stopped

spice-vdagentd is stopped

openssh-daemon (pid 19475) is running…

sssd is stopped

svnserve is stopped

wdaemon is stopped

winbindd is stopped

wpa_supplicant (pid 2168) is running…

ypbind is stopped

and this is the second output

[root@localhost ~]# yum list installed | grep bahmni bahmni-emr.noarch 0.89-326 @bahmni
bahmni-erp.noarch 0.89-49 @bahmni
bahmni-erp-connect.noarch 0.89-49 @bahmni
bahmni-implementer-interface.noarch 0.89-97 @bahmni
bahmni-installer.noarch 0.89-193 @/bahmni-installer-0.89-193.noarch
bahmni-openmrs.noarch 0.89-89 @bahmni
bahmni-reports.noarch 0.89-64 @bahmni
bahmni-web.noarch 0.89-326 @bahmni
python-gdata.noarch 2.0.11-1.el6 @bahmni

Looks like you got the EMR and ERP running. Can you confirm if the following URLs are accessible:

https://192.168.33.10/home

http://192.168.33.10:8069/

Thank you for your reply but i already solved that problem and bahmni was installed but the Bahmni Lab wasn’t installed and it’s giving me as shown in the image below

And the DCM4CHEE is not running

Looks like you’ve got some java installation errors. Follow this thread. …and since you want to install Dcm4Che too, this page ( under the Upgrade Instructions section) may be helpful.