Starting modules from terminal

Hello community

Is there a way to start modules from command line? I can’t access UI and a DB query shows that some of the modules are not started


There isn’t anything like start module from command line. There are only 2 ways

  1. You upload the module from openmrs admin page (https://your-server/openmrs/admin/modules/module.list). In Bahmni, by default this is disabled, if you want to enable that - you have to change the /home/bahmni/.OpenMRS/ file and set


also check the “application_data_directory” in the file, it should be


  1. If the path is set alright, OpenMRS will load modules at startup.

So, I am little confused

  1. Are you saying OMRS is started and the modules are not loaded? even if the paths in the runtime file is correct? Have you verified the server is really up at “https://your-serverr/openmrs”? and you can login?
  2. If the OMRS is not started, then you need to find why not first. Chances are module dependencies are causing other modules to not get loaded. you need to identify the error first. Chcek the logs in /var/log/openmrs/openmrs.log - keep tailing/checking to identify the root cause.

I am able to hit the bahmni home page, but when I try to access clinical service I get an error. I can’t access /openmrs page either.

The log shows this entry multiple times

PageNotFound - No mapping found for HTTP request with URI [/openmrs/ws/rest/v1/session] in DispatcherServlet with name 'openmrs'

Everything was working perfectly until when I tried to update some modules shown below

Bahmni does not work because EMR API is not loaded. Click the error shown on screen, check the logs for reasons of not loading EMR API … thats as much as I can say at this point.

The log shows this error multiple times

PageNotFound - No mapping found for HTTP request with URI [/openmrs/ws/rest/v1/session] in DispatcherServlet with name 'openmrs'

…and this is what I see on the login page

can you just use the OMRS admin interface to check? …


The above does not use Bahmni UI, but simple OMRS Admin UI. Please go to modules section like above, and click the error for “not loaded” modules to figure out why so? Correlate with the logs that you get in /var/log/openmrs/openmrs.log …

Its obvious Bahmni UI is not wokring because EMR API and potentially other OMODS (I would suspect that WebServices REST) are not loaded properly. So you can try as much hitting the frontend, but its not going to yield anything useful.