Installation Of Bahmni on Centos

Please can anyone help me how to install bahmni on centos https://bahmni.atlassian.net/wiki/spaces/BAH/pages/33128505/Install+Bahmni+on+CentOS But it doesn’t work for…I Don’t know where am struck can anyone sugguest me the following procedure apart from bahmni website installation. Thanks in Advance

On the given page I can see step by step instructions, it will be hard to give more accurate.

Try to determine at which step you are getting lost or which step is showing you an error and what error it is.

Im using Bahmni v0.90 and CentOS 6.7 while i use these commands

yum upgrade python-setuptools

wget https: //files .pythonhosted.org /packages/f8/5c/f60e9d8a1e77005f664b76ff8aeaee5bc05d0a91798afd7f53fc998dbc47/Click-7 .0. tar .gz -P /home/bahmni

cd /home/bahmni

tar -xvf Click-7.0. tar .gz

cd Click-7.0

python setup.py install

yum install https: //dl .bintray.com /bahmni/rpm/rpms/bahmni-installer-0 .91-89.noarch.rpm

till here there is no problem but when i use this below command

bahmni --help

then ill get the error like this,

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/pkg_resources.py”, line 299, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File “/usr/lib/python2.6/site-packages/pkg_resources.py”, line 2229, in load_entry_point return ep.load() File “/usr/lib/python2.6/site-packages/pkg_resources.py”, line 1948, in load entry = import(self.module_name, globals(),globals(), [‘name’]) File “/usr/lib/python2.6/site-packages/bahmni-0.1-py2.6.egg/bahmni.py”, line 1, in import click File “/usr/lib/python2.6/site-packages/click-7.1.2-py2.6.egg/click/init.py”, line 7, in from .core import Argument File “/usr/lib/python2.6/site-packages/click-7.1.2-py2.6.egg/click/core.py”, line 21, in from .formatting import HelpFormatter File “/usr/lib/python2.6/site-packages/click-7.1.2-py2.6.egg/click/formatting.py”, line 4, in from .parser import split_opt File “/usr/lib/python2.6/site-packages/click-7.1.2-py2.6.egg/click/parser.py”, line 228 self._opt_prefixes = {"-", “–”} ^ SyntaxError: invalid syntax

Please give me a solution for this. And thanks in advance.

@goutham564, I noticed you are using a link for version 0.91 not 0.90. See the right link yum install https: //dl .bintray.com /bahmni/rpm/rpms/bahmni-installer-0 .90-308.noarch.rpm. Maybe you should start again with a fresh installation of CentOS.

yeah I got it but can anyone explain how to install bahmni on AWS im struck here.

there is no different between installing on your local system, or a server wherever that may be. So AWS can not be the reason. Much of our CI/CD, including our demos run on AWS.

Seems like you are facing issues with a particular python 2.6 lib dependencies. Please search the talk for pythong egg … also while manually it might be possible to pull the library from some server, any reason you are trying with 0.90? Why not 0.92? 0.92 runs on CentOS 7.x and its quite possible that the errors are due to some missing dependencies on yum repos that previously used to exist.

yeah Thank you i have installed bhamni on AWS with centos 7.x and version 0.92

But openelis is not working , its showing

Not Found

The requested URL /openelis was not found on this server.

Apache/2.4.6 (CentOS) Server at 3.17.66.178 Port 443

how can i solve it? please give me any solution for it.

Confirm if /openmrs and :8069 are also working

For openelis im getting this error,

Not Found

The requested URL /openelis was not found on this server.

Apache/2.4.6 (CentOS) Server at 3.17.66.178 Port 443

And for Inventory Stock im getting this error,

:8069

This site can’t be reached

Openelis and Stock Inventory Billing :8069 Both are not working

how can i solve the issue?

Most likely the db wasn’t installed or not started. can you do a service postgresql-9.6 status and paste the output

yeah i have run this command and i got this one…

Is there any problem?

[root@ip-172-31-21-245 bahmniapps]# service postgresql-9.6 status Redirecting to /bin/systemctl status postgresql-9.6.service ● postgresql-9.6.service - PostgreSQL 9.6 database server Loaded: loaded (/usr/lib/systemd/system/postgresql-9.6.service; enabled; vend or preset: disabled) Active: active (running) since Tue 2020-08-25 14:40:01 IST; 7h ago Docs: https://www.postgresql.org/docs/9.6/static/ Main PID: 25716 (postmaster) CGroup: /system.slice/postgresql-9.6.service ├─21541 postgres: clinlims clinlims 127.0.0.1(39524) idle ├─21681 postgres: clinlims clinlims 127.0.0.1(39576) idle ├─21684 postgres: clinlims clinlims 127.0.0.1(39584) idle ├─21685 postgres: clinlims clinlims 127.0.0.1(39586) idle ├─25716 /usr/pgsql-9.6/bin/postmaster -D /var/lib/pgsql/9.6/data/ ├─25718 postgres: logger process ├─25720 postgres: checkpointer process ├─25721 postgres: writer process ├─25722 postgres: wal writer process ├─25723 postgres: autovacuum launcher process ├─25724 postgres: archiver process failed on 0000000100000000000… └─25725 postgres: stats collector process

Aug 25 14:40:01 ip-172-31-21-245.us-east-2.compute.internal systemd[1]: Start… Aug 25 14:40:01 ip-172-31-21-245.us-east-2.compute.internal postmaster[25716]: . … Aug 25 14:40:01 ip-172-31-21-245.us-east-2.compute.internal postmaster[25716]: . … Aug 25 14:40:01 ip-172-31-21-245.us-east-2.compute.internal systemd[1]: Start… Aug 25 14:40:02 ip-172-31-21-245.us-east-2.compute.internal systemd[1]: Reloa… Aug 25 14:40:02 ip-172-31-21-245.us-east-2.compute.internal systemd[1]: Reloa… Aug 25 14:42:21 ip-172-31-21-245.us-east-2.compute.internal systemd[1]: Reloa… Aug 25 14:42:21 ip-172-31-21-245.us-east-2.compute.internal systemd[1]: Reloa… Hint: Some lines were ellipsized, use -l to show in full.

Ok, Postgres is active. Check service odoo status

When i try start the odoo its sholwing like this,

[root@ip-172-31-21-245 bahmniapps]# sudo service odoo start Starting odoo (via systemctl): Job for odoo.service failed. See “systemctl status odoo.service” and “journalctl -xe” for details. [FAILED]

and i try to get the status but the file doesn’t exists…

is there any solution for it?

[root@ip-172-31-21-245 bahmniapps]# service odoo status mkdir: cannot create directory ‘odoo’: File exists odoo-server is stopped