Why does the `bahmni install` command fail?

The error message I get is:

Installing pgbackrest dependent libraries] ********** task path: /opt/bahmni-installer/bahmni-playbooks/roles/pgbackrest-install/tasks/main.yml:28 failed: [localhost] (item=[u’perl-DBD-Pg’, u’perl-JSON’, u’perl-Digest-SHA.x86_64’, u’centos-release-scl’, u’perl516-perl-Thread-Queue.noarch’, u’perl516-perl-JSON-PP.noarch’, u’perl516-perl-DBD-Pg.x86_64’, u’perl516-perl-Time-HiRes.x86_64’, u’perl516-perl-Digest-SHA.x86_64’]) => {“changed”: false, “failed”: true, “item”: [“perl-DBD-Pg”, “perl-JSON”, “perl-Digest-SHA.x86_64”, “centos-release-scl”, “perl516-perl-Thread-Queue.noarch”, “perl516-perl-JSON-PP.noarch”, “perl516-perl-DBD-Pg.x86_64”, “perl516-perl-Time-HiRes.x86_64”, “perl516-perl-Digest-SHA.x86_64”], “msg”: “No package matching ‘perl516-perl-Thread-Queue.noarch’ found available, installed or updated”, “rc”: 126, “results”: [“perl-DBD-Pg-2.15.1-4.el6_3.x86_64 providing perl-DBD-Pg is already installed”, “perl-JSON-2.15-5.el6.noarch providing perl-JSON is already installed”, “perl-Digest-SHA-1:5.47-144.el6.x86_64 providing perl-Digest-SHA.x86_64 is already installed”, “centos-release-scl-10:7-4.el6.centos.noarch providing centos-release-scl is already installed”, “No package matching ‘perl516-perl-Thread-Queue.noarch’ found available, installed or updated”]} to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry

PLAY RECAP ********************************************************************* localhost : ok=279 changed=108 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-7.0-py2.6.egg/click/core.py”, line 764, in call return self.main(*args, **kwargs) File “/usr/lib/python2.6/site-packages/Click-7.0-py2.6.egg/click/core.py”, line 717, in main rv = self.invoke(ctx) File “/usr/lib/python2.6/site-packages/Click-7.0-py2.6.egg/click/core.py”, line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File “/usr/lib/python2.6/site-packages/Click-7.0-py2.6.egg/click/core.py”, line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File “/usr/lib/python2.6/site-packages/Click-7.0-py2.6.egg/click/core.py”, line 555, in invoke return callback(*args, **kwargs) File “/usr/lib/python2.6/site-packages/Click-7.0-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

can you mention which version of Bahmni, which build, which OS, which OS distro etc?

  • bahmni 0.90
  • CentOS 6.9
  • command bahmni install

I am also getting similar python errors while installing Bahmni 0.92 following ( Steps for Installing Bahmni v0.92 described here https://bahmni.atlassian.net/wiki/spaces/BAH/pages/33128505/Install+Bahmni+on+CentOS).

CentOS 7.6 Bahmni 0.92

I am installing it on EC2 instance in AWS.