PLAY RECAP *********************************************************************
localhost : ok=38 changed=9 unreachable=0 failed=1
Traceback (most recent call last):
File “/bin/bahmni”, line 9, in
load_entry_point(‘bahmni==0.1’, ‘console_scripts’, ‘bahmni’)()
File “/usr/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/usr/lib/python2.7/site-packages/bahmni-0.1-py2.7.egg/bahmni.py”, line 91, 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 2
Sorry i wipe the centos box and want to reinstall from fresh. And I will
follow all the steps on will. But there is something that I need to
install before Bahmni??
@ethical You need to follow the instructions that mentioned in this wiki page if you give implementation_name other than default. Have you done that ??
yes i follow the Wiki but still not success . i use the command << bahmni -i install local >> and i also keep the implementation name to bahmni-emr-TDD. but this asking me to check my inventory file, and i don’t know how to create it , can some one help how to create it???
PS: im using CenOS 6.8 (50G and 4G Ram ) on virtualbox and Kali Linux is the host box
i just copy and paste without change any variable but it still now working .
now i have this error message ERROR! ‘role’ is not a valid attribute for a Play
The error appears to have been in ‘/opt/bahmni-installer/bahmni-playbooks/all.yml’: line 210, column 3, but maybe elsewhere in the file depending on the exact syntax problem.
@ethical looks like while editing the inventory file something got messed up. Can you download the inventory file again and trigger bahmni install command. You don’t have to replace 127.0.0.1 with localhost in inventory file. localhost and 127.0.0.1 are same and they are generally mapped to each other unless you change/specify something else for localhost in /etc/hosts file.
dear Members please this where i have an issue kindly help me.
TASK [oracle-java : set_fact] *********************************************************************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml:5
fatal: [127.0.0.1]: FAILED! => {“msg”: “The task includes an option with an undefined variable. The error was: ‘dict object’ has no attribute ‘md5’\n\nThe error appears to have been in ‘/opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml’: line 5, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- set_fact:\n ^ here\n”}
to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry
PLAY RECAP *********************************************************
This is the output of the file /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml
name: check if java is already downloaded
stat: path={{java_rpm_location}}
register: downloaded_java
set_fact: //this the error reply the compilator during installation of bahmni//
force_new_java_download: “{{ downloaded_java.stat.md5 != md5_checksum_of_java }}”
when: downloaded_java.stat.exists
name: Delete java rpm if checksum does not match
file: path={{ java_rpm_location }} state=absent
when: “{{ force_new_java_download == true }}”
name: Make java available for system
command: ‘alternatives --install “/usr/bin/java” “java” “/usr/java/default/bin/java” 2000’
name: Make javac available for system
command: ‘alternatives --install “/usr/bin/javac” “javac” “/usr/java/default/bin/javac” 2000’
when: java_runtime == “jdk”
name: Make jar available for system
command: ‘alternatives --install “/usr/bin/jar” “jar” “/usr/java/default/bin/jar” 2000’
when: java_runtime == “jdk”
name: Set the JAVA_HOME variable
set_fact: java_home = “{{ java_home_location }}”
name: set java_role_ran fact
set_fact:
java_role_ran: true
@ethical looks like you have ansible version which is greater than 2.2.0.0. We only support ansible-2.2.0.0 version. If this is the case, can you please install ansible-2.2.0.0 and try the installation again.
@binduak i installed the version 2.2.0.0 of ansible and my installation is still not going. and this is the new error massage
PLAY [bahmni-emr] **************************************************************
ERROR! Unexpected Exception: ‘module’ object has no attribute ‘HAVE_DECL_MPZ_POWM_SEC’
to see the full traceback, use -vvv
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 250
Please dear all kindly help me to install bahmni 0.90 on my box centos 6.9 . I’m feeling shame when I read other who are succed to install the bahmni software. I don’t I m stupid or not to smart. I have wipe my box several time. I remember yoy that I install centos 6.9 on virtualbox 5.2.0. And my host is a linux distribution named kali ( 1TB 16G 2.7GHz) I don’t why I failed the installation even though i follow the wiki step by step.l
I want to try before take to my administration for discussion. Cause I’m IT health working in a hospital.