Bahmni instalation Error in centos

i am installing Bhamni in centOS 7 :blush: url in bahmni : https://bahmni.atlassian.net/wiki/spaces/BAH/pages/35291242/Install+Bahmni+on+CentOS+Advanced+Installation+Options


i tried all url for installing bahmni but i am getting same error

Install the bahmni command

yum install https://dl.bintray.com/bahmni/rpm/rpms/bahmni-installer-<major_verion>-<minor_version>.noarch.rpm

yum install https://dl.bintray.com/bahmni/rpm/rpms/bahmni-installer-0.90-302.noarch.rpm #version 0.90 yum install https://dl.bintray.com/bahmni/rpm/rpms/bahmni-installer-0.89-193.noarch.rpm #version 0.89 yum install https://dl.bintray.com/bahmni/rpm/rpms/bahmni-installer-0.88-101.noarch.rpm #version 0.88 yum install https://dl.bintray.com/bahmni/rpm/rpms/bahmni-installer-0.87-81.noarch.rpm #version 0.87 yum install https://dl.bintray.com/bahmni/rpm/rpms/bahmni-installer-0.86-70.noarch.rpm #version 0.86


[root@localhost tattva]# yum install https://dl.bintray.com/bahmni/rpm/rpms/bahmni-installer-0.86-70.noarch.rpm Loaded plugins: fastestmirror, langpacks bahmni-installer-0.86-70.noarch.rpm | 548 kB 00:00
Examining /var/tmp/yum-root-HaXk_6/bahmni-installer-0.86-70.noarch.rpm: bahmni-installer-0.86-70.noarch /var/tmp/yum-root-HaXk_6/bahmni-installer-0.86-70.noarch.rpm: does not update installed package. Error: Nothing to do

Please see Install Bahmni on CentOS:

CentOS v7 is currently not certified for Bahmni. Please refer to this Jira card. We request you to please choose CentOS v6.9 for running Bahmni.

I am using cuurently Cent OS 6.9 then after i am getting

I am using in root terminal Bahmni install

bahmni -i local install

Error

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 [root@localhost Tattva]#

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 [root@localhost Tattva]#

then use in terminal

yum list installed | grep bahmni

bahmni-installer.noarch 0.90-308 @/bahmni-installer-0.90-308.noarch

this only showing what can i do…

Hi @govindsharma, it is difficult to assist you with this without having more information/context on the issue. Which guide/reference are you using to install Bahmni here? What steps have you taken before this, and what was the output (if relevant) from those steps, that led you to this point?

1 Like

i am downloading bahmni ,i am getting like that structure ,i am unable to open this folder.

I am using minimal centOS 6.9 .i followed this steps;

1 - yum upgrade python-setuptools

2 - yum install https://dl.bintray.com/bahmni/rpm/rpms/bahmni-installer-0.90-308.noarch.rpm

3- bahmni --help

4 - curl -L https://goo.gl/R8ekg5 >> /etc/bahmni-installer/setup.yml

5 - cat /etc/bahmni-installer/setup.yml

6 - echo “export BAHMNI_INVENTORY=local” >> ~/.bashrc

7 - source ~/.bashrc

8 - bahmni install

after this I am getting Tracback Error

9 – yum list installed | grep bahmni

after this i getting bahmni-installer.noarch 0.90-308 @/bahmni-installer-0.90-308.noarch

please help ,how to resolve this error ,

@govindsharma This is hard to follow, please try to group your responses into a single, clear post. Posting screenshots without context adds confusion, and doesn’t clear things up. Error logs and terminal output should be posted to hastebin or pastebin and linked to in your post, rather than posting screenshots or error logs directly in a post. You should also mention what actions were taken when the issue/error occurred.

Which guide/wiki page did you get these steps from, and what was the output when these steps were run:

I am following this steps but unable to installed bahmni .

pastbin url - https://hastebin.com/qinawojuxo.coffeescript

bahmni docs url - https://bahmni.atlassian.net/wiki/spaces/BAH/pages/33128505/Install+Bahmni+on+CentOS

It looks like there’s an issue in your setup.yml file:

The error appears to have been in '/etc/bahmni-installer/setup.yml': line 5, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

implementation_name:default
selinux_state: enforcing
^ here

Did you edit this file at all? Try adding a space after the colon in the implementation_name:default line - i.e. update this line to be:

implementation_name: default

Then run bahmni install again and see what the output is.

I am unable modify selinux_state : disable
to selinux_state: enforcing

when i check using command cat /etc/bhamni-installer/setup/yml

then after i saw

timezone: Asia/Kolkata

implementation_name: default

selinux_state: disabled

for Modifying selinux_state using command

vi /etc/bahmni-installer/setup.yml

i saw :blush:

timezone: Asia/Kolkata

implementation_name: default

selinux_state: enforcing

Hastebin: Send and Save Text or Code Snippets for Free | Toptal®

Please take note of this step from the installation instructions:

# Confirm the contents of the file. It should look like this file: (https://goo.gl/R8ekg5)
cat /etc/bahmni-installer/setup.yml

Your setup.yml file looks like it has the same properties added multiple times, and the hastebin output shows you have a syntax error here:

postgres_repo_rpm_name: pgdg-centos92-9.2-7.noarch.rpm# To see the list of valid variables in Bahmni please refer to:

In this case, the comment starting with # has not been added on a new line, causing a syntax error. Please read up about YAML syntax, and try something like YAML Lint to validate your setup.yml file beforehand.

console log - Hastebin: Send and Save Text or Code Snippets for Free | Toptal®

following this steps https://bahmni.atlassian.net/wiki/spaces/BAH/pages/33128505/Install+Bahmni+on+CentOS

i checked cat /etc/bahmni-installer/setup.ym

selinux_state : enforcing

but when i check

sestatus

then i saw

selinux_state : disable

and also i check it

after installing bahmni

bahmni -i local install command

[root@localhost Tattva]# bahmni -i local install Installing Ansible from https://dl.bintray.com/bahmni/rpm/ansible-2.2.0.0-3.el6.noarch.rpm… Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Cannot open: https://dl.bintray.com/bahmni/rpm/ansible-2.2.0.0-3.el6.noarch.rpm. Skipping. Error: Nothing to do

then after go to mozila and type aur ip adress it got this screen