Install problem Bahmni

Tags: #<Tag:0x00007fceb03b0048>

In Oracal Vm virtual box. 8GB Ram 4 processor

[root@localhost ~]# bahmni install

Installing Ansible from https://dl.bintray.com/bahmni/rpm/ansible-2.4.6.0-1.el7.ans.noarch.rpm… Loaded plugins: fastestmirror, langpacks Examining /var/tmp/yum-root-hZ7Ux4/ansible-2.4.6.0-1.el7.ans.noarch.rpm: ansible-2.4.6.0-1.el7.ans.noarch /var/tmp/yum-root-hZ7Ux4/ansible-2.4.6.0-1.el7.ans.noarch.rpm: does not update installed package. Error: Nothing to do

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’ ansible-playbook 2.9.18 config file = /opt/bahmni-installer/bahmni-playbooks/ansible.cfg configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /opt/bahmni-installer/bahmni-playbooks/ansible.cfg as config file [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details ERROR! ‘sudo’ is not a valid attribute for a Play

The error appears to be in ‘/opt/bahmni-installer/bahmni-playbooks/all.yml’: line 1, column 3, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • name: bahmni-emr-TDD ^ here Traceback (most recent call last): File “/usr/bin/bahmni”, line 11, in load_entry_point(‘bahmni==0.1’, ‘console_scripts’, ‘bahmni’)() File “/usr/lib/python2.7/site-packages/Click-7.0-py2.7.egg/click/core.py”, line 764, in call return self.main(*args, **kwargs) File “/usr/lib/python2.7/site-packages/Click-7.0-py2.7.egg/click/core.py”, line 717, in main rv = self.invoke(ctx) File “/usr/lib/python2.7/site-packages/Click-7.0-py2.7.egg/click/core.py”, line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File “/usr/lib/python2.7/site-packages/Click-7.0-py2.7.egg/click/core.py”, line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File “/usr/lib/python2.7/site-packages/Click-7.0-py2.7.egg/click/core.py”, line 555, in invoke return callback(*args, **kwargs) File “/usr/lib/python2.7/site-packages/Click-7.0-py2.7.egg/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 90, in install File “/usr/lib64/python2.7/subprocess.py”, line 542, 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 4 ================================================================================ How can I solve the problem.? Can you help me anyone?

Can you please mention the steps you performed? Which OS, which vagrant box, etc? You can directly download the vagrant box – by creating a sub-folder in your machine: “bahmni-vagrant”, and following the steps here. It will download a pre-installed bahmni box into your machine.

https://bahmni.atlassian.net/wiki/spaces/BAH/pages/14712841/Bahmni+Virtual+Box#BahmniVirtualBox-Step1:InstallGit,VirtualBoxandVagrantonyourcomputer