bahmni mart installation error

Hello All,

I am newbie in this bahmni software community, i am trying to install bahmni-mart by following the instructions from this link https://github.com/bahmni-msf/bahmni-mart#deployment-steps but I received the following error

TASK [pg_hba : Add postgres authentication(pg_hba.conf) for replication] ******* fatal: [localhost]: FAILED! => {“failed”: true, “msg”: “the field ‘args’ has an invalid value, which appears to include a variable that is undefined. The error was: ‘dict object’ has no attribute u’bahmni-mart-db-slave’\n\nThe error appears to have been in ‘/etc/bahmni-mart-playbook/roles/pg_hba/tasks/main.yml’: line 19, 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- name: Add postgres authentication(pg_hba.conf) for replication\n ^ here\n”} to retry, use: --limit @/etc/bahmni-mart-playbook/all.retry

PLAY RECAP ********************************************************************* localhost : ok=23 changed=7 unreachable=0 failed=1

when I run the following command ansible-playbook -i /etc/bahmni-mart-playbook/inventories/bahmni-mart /etc/bahmni-mart-playbook/all.yml --extra-vars ‘@/etc/bahmni-mart-playbook/setup.yml’ --skip-tags “custom_ssl,lets_encrypt_ssl,authentication” -vv

Hello Ally,

I think you have not updated parameters correctly in your /etc/bahmni-mart-playbook/setup.yml file. You can have a look at this pdf https://bahmni.atlassian.net/wiki/spaces/BAH/pages/695959553/Bahmni+Mart?preview=/695959553/1685061633/BAH-220920-0457%202.pdf

The above pdf is given at https://bahmni.atlassian.net/wiki/spaces/BAH/pages/695959553/Bahmni+Mart as Bahmni-mart PDF Documentation

Hello Sonar,

Thank you very much for your quick response I managed to overcome that error but now I am receiving another error

TASK [bahmni-mart : Install bahmni-mart using URL] ***************************** task path: /etc/bahmni-mart-playbook/roles/bahmni-mart/tasks/main.yml:25 fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “msg”: “Failure downloading https://stable.s3.ap-south-1.am1-.noarch.rpm, ‘NoneType’ object has no attribute ‘read’”} to retry, use: --limit @/etc/bahmni-mart-playbook/all.retry

Please help @sonarvanashri .

@allybitebo

In /etc/bahmni-mart-playbook/setup.yml file just update bahmni_mart_version: “2.0.4” and add below line

bahmni_mart_url: “https://github.com/bahmni-msf/bahmni-mart/releases/download/2.0.4/bahmni-mart-2.0.4.noarch.rpm

@sonarvanashri

Thank you very much for your help. I added the line and now I am getting another error.

Please find attached screen capture image.

Please Help!

@allybitebo

Could you please share contents of your bahmn-mart inventory file and setup.yml file?

@sonarvanashri

The contents for the setup.yml file are

bahmni_mart_version: “2.0.4” openmrs_db_password: P@ssw0rd metabase_db_password: password analytics_db_password: password analytics_db_user: analytics metabase_db_user: metabase analytics_db_name: analytics metabase_db_name: metabase metabase_with_ssl: false postgres_password: password analytics_db_user: analytics metabase_db_user: metabase

This parameter is specific to msf and should be updated at the point of release to fetch the latest stable artifact

msf_release_version: “”

When metabase_with_ssl is true you can choose for one of the following

lets’encrypt ssl: where bahmni_lets_encrypt_cert_dir and metabase_keystore_password are mandatory

custom ssl: where primary_custom_keystore_location and metabase_keystore_password are mandatory

let’s encrypt ssl

bahmni_lets_encrypt_cert_dir: “”

custom ssl

custom_keystore_location: “”

metabase_keystore_password: “” bahmni_mart_url: “https://github.com/bahmni-msf/bahmni-mart/releases/download/2.0.4/bahmni-mart-2.0.4.noarch.rpm

==============

Incase they are not presented well see attached image

The contents for the inventory file are bahmni-mart

===================

localhost ansible_connection=local

[bahmni-emr-db] localhost

[bahmni-mart] localhost

[bahmni-mart-db] localhost

[bahmni-mart-db-slave]

[bahmni-mart-scdf]

[metabase] localhost

[metabase-db] localhost

[metabase-db-slave]

[local:children] bahmni-mart bahmni-mart-db bahmni-mart-db-slave bahmni-mart-scdf bahmni-emr-db metabase metabase-db metabase-db-slave

=====================

@allybitebo

I do not know the exact cause of the error you are getting but I can suggest that try commenting below parameters in setup.yml file and see if it works

custom_keystore_location: “”
bahmni_lets_encrypt_cert_dir: “”
metabase_keystore_password: “”