Installing bahmni in centOS7 Error


(Govind Sharma) #1

Hello, I am Installing Bahmni in CentOS7 :-

[root@localhost tattva]# bahmni install Installing Ansible from https://dl.bintray.com/bahmni/rpm/ansible-2.2.0.0-3.el6.noarch.rpm… Loaded plugins: fastestmirror, langpacks Examining /var/tmp/yum-root-HaXk_6/ansible-2.2.0.0-3.el6.noarch.rpm: ansible-2.2.0.0-3.el6.noarch Marking /var/tmp/yum-root-HaXk_6/ansible-2.2.0.0-3.el6.noarch.rpm to be installed Resolving Dependencies –> Running transaction check —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch Loading mirror speeds from cached hostfile

  • base: centos.excellmedia.net
  • epel: ftp.yz.yamagata-u.ac.jp
  • extras: centos.excellmedia.net
  • updates: centos.excellmedia.net –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: PyYAML for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-httplib2 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-keyczar for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-paramiko for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-simplejson for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: sshpass for package: ansible-2.2.0.0-3.el6.noarch –> Running transaction check —> Package PyYAML.x86_64 0:3.10-11.el7 will be installed –> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-11.el7.x86_64 —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch —> Package python-httplib2.noarch 0:0.9.2-1.el7 will be installed —> Package python-keyczar.noarch 0:0.71c-2.el7 will be installed –> Processing Dependency: python-crypto for package: python-keyczar-0.71c-2.el7.noarch –> Processing Dependency: python-pyasn1 for package: python-keyczar-0.71c-2.el7.noarch —> Package python-paramiko.noarch 0:2.1.1-2.el7 will be installed –> Processing Dependency: python-cryptography for package: python-paramiko-2.1.1-2.el7.noarch —> Package python2-simplejson.x86_64 0:3.10.0-1.el7 will be installed —> Package sshpass.x86_64 0:1.06-2.el7 will be installed –> Running transaction check —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch —> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed —> Package python2-crypto.x86_64 0:2.6.1-15.el7 will be installed –> Processing Dependency: libtomcrypt.so.0()(64bit) for package: python2-crypto-2.6.1-15.el7.x86_64 —> Package python2-cryptography.x86_64 0:1.7.2-1.el7_4.1 will be installed –> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-1.el7_4.1.x86_64 –> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-1.el7_4.1.x86_64 –> Processing Dependency: python-ipaddress for package: python2-cryptography-1.7.2-1.el7_4.1.x86_64 –> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-1.el7_4.1.x86_64 —> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed –> Running transaction check —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch —> Package libtomcrypt.x86_64 0:1.17-26.el7 will be installed –> Processing Dependency: libtommath >= 0.42.0 for package: libtomcrypt-1.17-26.el7.x86_64 –> Processing Dependency: libtommath.so.0()(64bit) for package: libtomcrypt-1.17-26.el7.x86_64 —> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed –> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64 —> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed —> Package python-idna.noarch 0:2.4-1.el7 will be installed —> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed –> Running transaction check —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch —> Package libtommath.x86_64 0:0.42.0-6.el7 will be installed —> Package python-pycparser.noarch 0:2.14-1.el7 will be installed –> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch –> Running transaction check —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch —> Package python-ply.noarch 0:3.4-11.el7 will be installed –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Finished Dependency Resolution You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest Error: Package: ansible-2.2.0.0-3.el6.noarch (/ansible-2.2.0.0-3.el6.noarch) Requires: /usr/bin/python2.6 Error: Package: ansible-2.2.0.0-3.el6.noarch (/ansible-2.2.0.0-3.el6.noarch) Requires: python(abi) = 2.6 Installed: python-2.7.5-58.el7.x86_64 (@anaconda) python(abi) = 2.7 python(abi) = 2.7 Available: python34-3.4.5-5.el7.x86_64 (epel) python(abi) = 3.4 Available: python36-3.6.3-7.el7.x86_64 (epel) python(abi) = 3.6 python(abi) = 3.6 Error: Package: ansible-2.2.0.0-3.el6.noarch (/ansible-2.2.0.0-3.el6.noarch) Requires: python-crypto2.6 Error: Package: ansible-2.2.0.0-3.el6.noarch (/ansible-2.2.0.0-3.el6.noarch) Requires: python-jinja2-26

[root@localhost tattva]# bahmni install Installing Ansible from https://dl.bintray.com/bahmni/rpm/ansible-2.2.0.0-3.el6.noarch.rpm… Loaded plugins: fastestmirror, langpacks Examining /var/tmp/yum-root-HaXk_6/ansible-2.2.0.0-3.el6.noarch.rpm: ansible-2.2.0.0-3.el6.noarch Marking /var/tmp/yum-root-HaXk_6/ansible-2.2.0.0-3.el6.noarch.rpm to be installed Resolving Dependencies –> Running transaction check —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch Loading mirror speeds from cached hostfile

  • base: centos.excellmedia.net
  • epel: ftp.yz.yamagata-u.ac.jp
  • extras: centos.excellmedia.net root@localhost tattva]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: enforcing Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 28 [root@localhost tattva]# python -c ‘import crypt; print crypt.crypt(“bahmnisupport0000password”, “$1$SomeSaltOfMyChoice$”)’ $1$SomeSalt$c6iGLDl1x1LCEp.Sjah8O/ [root@localhost tattva]# vi /etc/bahmni-installer/setup.yml [root@localhost tattva]# vi /etc/bahmni-installer/setup.yml [root@localhost tattva]# cat /etc/bahmni-installer/local localhost ansible_connection=local

[nagios-server]

[bahmni-emr] localhost

[bahmni-emr-db] localhost

[bahmni-emr-db-slave]

[bahmni-erp] localhost

[bahmni-erp-db] localhost

[bahmni-erp-db-slave]

[bahmni-lab] localhost

[bahmni-lab-db] localhost

[bahmni-lab-db-slave]

[bahmni-reports] localhost

[bahmni-reports-db] localhost

[bahmni-reports-db-slave]

[atomfeed-console] localhost

[pacs-integration]

[pacs-integration-db]

[pacs-integration-db-slave]

[dcm4chee]

[dcm4chee-db]

[dcm4chee-db-slave]

[bahmni-event-log-service]

[bahmni-offline]

[mysql-backup-tool] localhost

[postgres-backup-tool] localhost

[bahmni-backup-artifacts] localhost

[local:children] nagios-server bahmni-emr bahmni-emr-db bahmni-emr-db-slave bahmni-lab bahmni-lab-db bahmni-lab-db-slave bahmni-erp bahmni-erp-db bahmni-erp-db-slave bahmni-reports bahmni-reports-db bahmni-reports-db-slave pacs-integration pacs-integration-db pacs-integration-db-slave dcm4chee dcm4chee-db dcm4chee-db-slave bahmni-event-log-service bahmni-offline atomfeed-console mysql-backup-tool postgres-backup-tool bahmni-backup-artifacts root@localhost tattva]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: enforcing Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 28 [root@localhost tattva]# python -c ‘import crypt; print crypt.crypt(“bahmnisupport0000password”, “$1$SomeSaltOfMyChoice$”)’ $1$SomeSalt$c6iGLDl1x1LCEp.Sjah8O/ [root@localhost tattva]# vi /etc/bahmni-installer/setup.yml [root@localhost tattva]# vi /etc/bahmni-installer/setup.yml [root@localhost tattva]# cat /etc/bahmni-installer/local localhost ansible_connection=local

[nagios-server]

[bahmni-emr] localhost

[bahmni-emr-db] localhost

[bahmni-emr-db-slave]

[bahmni-erp] localhost

[bahmni-erp-db] localhost

[bahmni-erp-db-slave]

[bahmni-lab] localhost

[bahmni-lab-db] localhost

[bahmni-lab-db-slave]

[bahmni-reports] localhost

[bahmni-reports-db] localhost

[bahmni-reports-db-slave]

[atomfeed-console] localhost

[pacs-integration]

[pacs-integration-db]

[pacs-integration-db-slave]

[dcm4chee]

[dcm4chee-db]

[dcm4chee-db-slave]

[bahmni-event-log-service]

[bahmni-offline]

[mysql-backup-tool] localhost

[postgres-backup-tool] localhost

[bahmni-backup-artifacts] localhost

[local:children] nagios-server bahmni-emr bahmni-emr-db bahmni-emr-db-slave bahmni-lab bahmni-lab-db bahmni-lab-db-slave bahmni-erp bahmni-erp-db bahmni-erp-db-slave bahmni-reports bahmni-reports-db bahmni-reports-db-slave pacs-integration pacs-integration-db pacs-integration-db-slave dcm4chee dcm4chee-db dcm4chee-db-slave bahmni-event-log-service bahmni-offline atomfeed-console mysql-backup-tool postgres-backup-tool bahmni-backup-artifacts

  • updates: centos.excellmedia.net –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: PyYAML for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-httplib2 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-keyczar for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-paramiko for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-simplejson for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: sshpass for package: ansible-2.2.0.0-3.el6.noarch Running transaction check —> Package PyYAML.x86_64 0:3.10-11.el7 will be installed –> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-11.el7.x86_64 —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch —> Package python-httplib2.noarch 0:0.9.2-1.el7 will be installed —> Package python-keyczar.noarch 0:0.71c-2.el7 will be installed –> Processing Dependency: python-crypto for package: python-keyczar-0.71c-2.el7.noarch –> Processing Dependency: python-pyasn1 for package: python-keyczar-0.71c-2.el7.noarch —> Package python-paramiko.noarch 0:2.1.1-2.el7 will be installed –> Processing Dependency: python-cryptography for package: python-paramiko-2.1.1-2.el7.noarch —> Package python2-simplejson.x86_64 0:3.10.0-1.el7 will be installed —> Package sshpass.x86_64 0:1.06-2.el7 will be installed –> Running transaction check —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch —> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed —> Package python2-crypto.x86_64 0:2.6.1-15.el7 will be installed –> Processing Dependency: libtomcrypt.so.0()(64bit) for package: python2-crypto-2.6.1-15.el7.x86_64 —> Package python2-cryptography.x86_64 0:1.7.2-1.el7_4.1 will be installed –> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-1.el7_4.1.x86_64 –> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-1.el7_4.1.x86_64 –> Processing Dependency: python-ipaddress for package: python2-cryptography-1.7.2-1.el7_4.1.x86_64 –> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-1.el7_4.1.x86_64 —> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed –> Running transaction check —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch —> Package libtomcrypt.x86_64 0:1.17-26.el7 will be installed –> Processing Dependency: libtommath >= 0.42.0 for package: libtomcrypt-1.17-26.el7.x86_64 –> Processing Dependency: libtommath.so.0()(64bit) for package: libtomcrypt-1.17-26.el7.x86_64 —> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed –> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64 —> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed —> Package python-idna.noarch 0:2.4-1.el7 will be installed —> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed –> Running transaction check —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch —> Package libtommath.x86_64 0:0.42.0-6.el7 will be installed —> Package python-pycparser.noarch 0:2.14-1.el7 will be installed –> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch –> Running transaction check —> Package ansible.noarch 0:2.2.0.0-3.el6 will be installed –> Processing Dependency: python(abi) = 2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-crypto2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Processing Dependency: python-jinja2-26 for package: ansible-2.2.0.0-3.el6.noarch —> Package python-ply.noarch 0:3.4-11.el7 will be installed –> Processing Dependency: /usr/bin/python2.6 for package: ansible-2.2.0.0-3.el6.noarch –> Finished Dependency Resolution You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest Error: Package: ansible-2.2.0.0-3.el6.noarch (/ansible-2.2.0.0-3.el6.noarch) Requires: /usr/bin/python2.6 Error: Package: ansible-2.2.0.0-3.el6.noarch (/ansible-2.2.0.0-3.el6.noarch) Requires: python(abi) = 2.6 Installed: python-2.7.5-58.el7.x86_64 (@anaconda) python(abi) = 2.7 python(abi) = 2.7 Available: python34-3.4.5-5.el7.x86_64 (epel) python(abi) = 3.4 Available: python36-3.6.3-7.el7.x86_64 (epel) python(abi) = 3.6 python(abi) = 3.6 Error: Package: ansible-2.2.0.0-3.el6.noarch (/ansible-2.2.0.0-3.el6.noarch) Requires: python-crypto2.6 Error: Package: ansible-2.2.0.0-3.el6.noarch (/ansible-2.2.0.0-3.el6.noarch) Requires: python-jinja2-26

(ess dee) #2

Well done on getting further than I managed to.

I see that there’s an error at the end with “ansible-2.2.0.0-3.el6.noarch” A few days ago, I pointed out on OpenMRS Talk, that this particular version has been superseded due to a critical security threat posed by versions earlier than 2.6. The current version is 2.7.0. I can’t find any documentation on Bahmni’s Ansible implementation/operation, so I guess I’m about to ask if anyone knows something about it and maybe I could help with documentation. That would probably help me get to the point where I (and others) could actually install Bahmni.


(Daniel Kayiwa) #3

Moved to the bahmni category.