Hi guys! (Bahmni Team)
I am trying to install Bahmni EMR only on a remote machine with the Bahmni installer package. I have followed all the steps detailed in the doc
I am using a custom inventory file in which I set:
/etc/bahmni-installer/my_hosts
localhost ansible_connection=local
...
[bahmni-emr]
52.123.456.111
[bahmni-emr-db]
52.123.456.111
...
Where 52.123.456.111 is my remote CentOS machine (6.8) All the other host groups are empty.
Now when I run:
bahmni -i my_hosts install
it runs for a while then returns the following Ansible error:
TASK [bahmni-emr : Backup openmrs markers, failed_events tables] ***************
task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-emr/tasks/main.yml:81
fatal: [52.123.456.111 â 52.123.456.111]: FAILED! => {âchangedâ: true, âfailedâ: true, ârcâ: 2, âstderrâ: ââ, âstdoutâ: â+ . /etc/bahmni-installer/bahmni.conf\r\n++ IMPLEMENTATION_NAME=default\r\n++ OPENMRS_DB_USERNAME=openmrs-user\r\n++ OPENMRS_DB_PASSWORD=password\r\n++ OPENMRS_DB_SERVER=52.123.456.111\r\n++ MYSQL_ROOT_USER=root\r\n++ MYSQL_ROOT_PASSWORD=password\r\n++ date +%Y%m%d_%H%M%S\r\n+ TIME=20160912_191946\r\n+ mysqldump -uroot -ppassword openmrs markers failed_events\r\nWarning: Using a password on the command line interface can be insecure.\r\nmysqldump: Got error: 1049: Unknown database âopenmrsâ when selecting the database\r\nâ, âstdout_linesâ: [â+ . /etc/bahmni-installer/bahmni.confâ, â++ IMPLEMENTATION_NAME=defaultâ, â++ OPENMRS_DB_USERNAME=openmrs-userâ, â++ OPENMRS_DB_PASSWORD=passwordâ, â++ OPENMRS_DB_SERVER=52.123.456.111â, â++ MYSQL_ROOT_USER=rootâ, â++ MYSQL_ROOT_PASSWORD=passwordâ, â++ date +%Y%m%d_%H%M%Sâ, â+ TIME=20160912_191946â, â+ mysqldump -uroot -ppassword openmrs markers failed_eventsâ, âWarning: Using a password on the command line interface can be insecure.â, âmysqldump: Got error: 1049: Unknown database âopenmrsâ when selecting the databaseâ]}
âmysqldump: Got error: 1049: Unknown database âopenmrsâ when selecting the databaseâ
Indeed, the âopenmrsâ database does not exist:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
Any idea of whatâs the problem ? Thanks
Romain