Bahmni Installation Error For V 0.90

Hi I am trying to install bahmni V 0.90 on my local machine CentOS 6.8. I followed the steps mentioned here https://bahmni.atlassian.net/wiki/spaces/BAH/pages/33128505/Install+Bahmni+on+CentOS from wiki but I am unable to install bahmni .

After yum upgrade python-setuptools Command It says No packages marked for update. After using cmd Bahmni --help it says command not found.

thats because Bahmni installation was not done. In your machine, try installing setuptools first as below, and then run bahmni installation again

yum install python-setuptools

Hi @angshuonline I have already tried that it says package python-setuptools-0.6.10-4el6_9.noarch already installed and latest version. But still I cannot proceed with installation

Hi @nawazshaikh, We are no longer supporting Bahmni installation on CentOS 6.8. Please choose either CentOS 6.7 or CentOS 6.9(recommended version).

Running yum upgrade python-setuptools command will upgrade setuptools to 0.6.10-4el6_9 version. If you already have that version installed you can ignore that command.(would recommend running it on CentOS 6.7).

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

Hi,

 yum upgrade python-setuptools

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

after I used centos terminal command’

bahmni --help getting Error in

-bash:bahmni:command not found

and after I reused that command

yum install python-setuptools

then after getting same Error

-bash:bahmni:command not found

Is this same issue that you posted here? If so, the last solution given in that thread should work.

when I hit command (CentOS6.9 server Machine)

 bahmni -i local install

getting Error

You will have to reboot machine to have selinux enabled. Reboot and trigger installation again. 
      If you wish to disable selinux,
set 'selinux_state' to permissive or disabled in /etc/bahmni-installer/setup.yml

https://hastebin.com/oqolinezuj.rb

[WARNING]: Consider using ‘become’, ‘become_method’, and ‘become_user’ rather than running sudo

changed: [localhost] => {“changed”: true, “name”: “postgresql-9.2”, “state”: “started”}

TASK [pgbackrest-install : Creating postgres stanza] ******************************************************************************************************************************************************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/pgbackrest-install/tasks/main.yml:112 [WARNING]: Consider using ‘become’, ‘become_method’, and ‘become_user’ rather than running sudo

fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “sudo -u postgres pgbackrest --stanza=bahmni-postgres --log-level-console=info stanza-create”, “delta”: “0:00:00.458524”, “end”: “2018-05-11 16:03:00.911535”, “msg”: “non-zero return code”, “rc”: 2, “start”: “2018-05-11 16:03:00.453011”, “stderr”: “Can’t locate parent.pm in @INC (@INC contains: /usr/bin/…/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/perl5/pgBackRest/ArchiveInfo.pm line 9.\nBEGIN failed–compilation aborted at /usr/share/perl5/pgBackRest/ArchiveInfo.pm line 9.\nCompilation failed in require at /usr/share/perl5/pgBackRest/Archive.pm line 21.\nBEGIN failed–compilation aborted at /usr/share/perl5/pgBackRest/Archive.pm line 21.\nCompilation failed in require at /usr/bin/pgbackrest line 21.\nBEGIN failed–compilation aborted at /usr/bin/pgbackrest line 21.”, “stderr_lines”: [“Can’t locate parent.pm in @INC (@INC contains: /usr/bin/…/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/perl5/pgBackRest/ArchiveInfo.pm line 9.”, “BEGIN failed–compilation aborted at /usr/share/perl5/pgBackRest/ArchiveInfo.pm line 9.”, “Compilation failed in require at /usr/share/perl5/pgBackRest/Archive.pm line 21.”, “BEGIN failed–compilation aborted at /usr/share/perl5/pgBackRest/Archive.pm line 21.”, “Compilation failed in require at /usr/bin/pgbackrest line 21.”, “BEGIN failed–compilation aborted at /usr/bin/pgbackrest line 21.”], “stdout”: “”, “stdout_lines”: []} to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry

PLAY RECAP ************************************************************************************************************************************************************************************************************* localhost : ok=302 changed=119 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/core.py”, line 722, in call return self.main(*args, **kwargs) File “/usr/lib/python2.6/site-packages/click/core.py”, line 697, in main rv = self.invoke(ctx) File “/usr/lib/python2.6/site-packages/click/core.py”, line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File “/usr/lib/python2.6/site-packages/click/core.py”, line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File “/usr/lib/python2.6/site-packages/click/core.py”, line 535, in invoke return callback(*args, **kwargs) File “/usr/lib/python2.6/site-packages/click/decorators.py”, line 17, in new_func return f(get_current_context(), *args, **kwargs) File “build/bdist.linux-x86_64/egg/bahmni.py”, line 91, in install 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

Open cpan interrupter.

cpan

install YAML

install YAML

Exit from cpan and try the installation again.