Skip to content

Manage integrator service

Vivek Singh edited this page Aug 18, 2021 · 8 revisions

Start, stop service

systemctl [start/stop/restart] abi.service

Check errors in bugsnag

  • Login to https://app.bugsnag.com
  • Emails will also be sent to the email registered in above account

Check logs

  • Directory: /var/log/abi

Configuration of the background service

  • Check /root/source/abi-host/start-ab-integrator.sh
  • It contains schedule, server configuration, the tasks that are being run

Integration tasks

  • AvniSubject for saving Avni subjects into Bahmni
  • AvniEnrolment for saving enrolments created in Avni into Bahmni
  • AvniProgramEncounter for saving program encounters created in Avni into Bahmni
  • AvniErrorRecords for processing any records which was in error earlier when saving Avni* tasks
  • BahmniErrorRecords for processing any records which was in error earlier when saving Bahmni* tasks
  • BahmniVisitDateFix for fixing visits and encounter dates in Bahmni. This is run everytime after the above finishes. The date fixing is required because OpenMRS doesn't allow creation of visits and encounters in the past.

Database

  • Under PostgreSQL find the database name bahmni_avni. It has user/role of bahmni_avni_admin.
  • For taking database backup from abi-host directory run make backup-db

Finding sync status information

  • There are two tables which contain the sync status - avni_entity_status and bahmni_entity_status
Clone this wiki locally