Remove epel-release rpm before installing bahmni-installer rpm
yum remove epel-release
Instructions to bahmni installation using bahmni-installer rpm is available in Install Bahmni on CentOS using bahmni-installer rpm. Proceed till step 5 as mentioned in the link. After Step 5, following things have to be done manually to migrate from old sh based installation to bahmni-installer rpm based installation:
After installation of bahmni-installer rpm
Stop all services
service tomcat stop
service openerp stop
service nagios stop
switch off chkconfig for tomcat, openerp.
chkconfig tomcat off
chkconfig openerp off
Move bahmni related webapps from tomcat's webapps directory to some other directory.
Uninstall mysql if it is 5.6.12 since mysqld service is not present. To see the list of mysql components installed, run the following command:
yum list installed | grep MySQL
Uninstall the listed components. But be aware of the dependencies which might get removed by removing mysql components as well.
check whether pg_basebackup command is available. If it is not available, use alternatives to make /usr/pgsql-9.2/bin/pg_basebackup available to /usr/bin
Now the installation can be continued from Step 7 as mentioned in the link - Trigger Installation
Some common errors during deployment and steps to resolve them
When any yum operation fails with the error - 'Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again', execute the following:
rpm -e jdk or yum remove jdk(If JAVA conflict occurs.)
On starting the installation, if it fails saying that ansible could not be installed or ansible-playbook command is not found, epel-release rpm has to be reinstalled.
yum remove epel-release
yum install epel-release
After deployment
Check whether mysql and psql replication works.
Move patient_images, uploaded-files, uploaded_results, document_images from old tomcat user home folder to /home/bahmni folder. In the below snippet, We have assumed that 'jss' user had tomcat deployed in it. This step is not applicable if 'bahmni' was the old tomcat user.