Troubleshooting Installation Issues

R

OpenERP Sync Issue

If there is an issue with syncing data from OpenMRS to OpenERP. 

Step 1: Check service status

After installation, If you see openmrs to openerp sync not working. Firstly, you need to check if bahmni-erp-connect is running. 

Step 2: Check markers table

If you still see the sync issue, try to check the markers table in openerp if there is an entry for reading the corresponding feed from openmrs.

Example: This entry in openerp database is for reading patient feed from openmrs to openerp
 Entry in Markers table for patient feed from openmrs to openerp

Step 3: Check failed_events table

Check the failed_events table for any entries recorded. 


Services stopped after system reboot


If you see that some services are always stopped after system reboot, then you can choose to automatically start the services at the time of system start. Please use the below command to enable the service start.

Example:

Using the above command, lets say you would like to start openerp service, use the following command.

Installation failing at "Download postgres yum repo rpm if not present"

Since the older rpm is deprecated, the below fix has to be manually applied to get the installation running. 


Openmrs startup issue after installation

If you have issue with openmrs not starting up even though the installation went well, then look at openmrs logs located at /var/log/openmrs/openmrs/log. If the issue is something below, then follow the instructions mentioned below.

 failed to run command /usr/java/jre1.7.0_79/bin/java': No such file or directory

Problem accessing OpenERP from Landing Page

If you have any issues accessing OpenERP through the landing page or if you find the url incorrectly configured on the landing page, Please refer and find the solution from here 


Bahmni Installation Failure at  task "Remove crontab jobs for upload directories"

If bahmni installation fails with the below  error message, then follow the below mentioned steps to fix it.


Steps to fix the issue 

Goto the modules directory


Download and replace the existing cron.py 
Compile the file locally
Rerun the installation command for installing Bahmni

Installation failing at task "Start httpd"

If the installation fails at the task "Start httpd" with the message "Could not open configuration file.." as shown in the screenshot below, then follow the below steps to fix the issue.

Solution

Remove httpd
Rerun the installation command for installing Bahmni

Bahmni 0.92 Release - Installation Issues :

Problem 1: Bahmni installation fails because of non-availability of ansible-2.4.2.0 - This happens with the 

While trying to install bahmni-installer.noarch 0:0.92-142 and the following issue is encountered.
"No package ansible-2.4.2.0 available."
[Errno 14] HTTP Error 404 - Not Found

Analysis: The rpm is no longer available in the specified ulr’s

Solution Proposed:

Kindly use the RPM found in the link mentioned below.
https://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.4.6.0-1.el7.ans.noarch.rpm

Steps

Please execute this step before bahmni installation

yum install https://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.4.6.0-1.el7.ans.noarch.rpm 


Problem 2: Installing Bahmni 0.92 on my new CentOS 7 server. It fails on the TASK [postgres : Download postgres yum repo rpm if not present]

Proposed Workaround: - modify the local file in the path mentioned below, and change the postgres rpm to the working version.

Step1 - cd /opt/bahmni-installer/bahmni-playbooks/group_vars 

Step 2 - vi local

Step 3 - Update the available and working rpm against the configs.

  1. postgres_repo_rpm_name: pgdg-redhat-repo-latest.noarch.rpm
  2. postgres_repo_download_url: https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/{{postgres_repo_rpm_name}}

Re-install bahmni