# Starting modules from terminal

**URL:** <https://talk.openmrs.org/t/starting-modules-from-terminal/33795>\
**Category:** Bahmni\
**Created:** [June 16, 2021, 2:21pm UTC](https://talk.openmrs.org/t/starting-modules-from-terminal/33795 "2021-06-16T14:21:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tapologo](https://talk.openmrs.org/letter_avatar/tapologo/32/6_449c533f586939b6e5f246632a46421f.png) [@tapologo](https://talk.openmrs.org/u/tapologo)\
**Post date:** [June 16, 2021, 2:21pm UTC](https://talk.openmrs.org/t/starting-modules-from-terminal/33795/1 "2021-06-16T14:21:21Z")

</div>

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

![image](https://talk.openmrs.org/uploads/default/original/2X/8/8c294bb15277ca038a414848af2177b6fd934d1f.png)

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [June 16, 2021, 4:09pm UTC](https://talk.openmrs.org/t/starting-modules-from-terminal/33795/2 "2021-06-16T16:09:05Z")

</div>

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](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/openmrs-runtime.properties** file and set

> module.allow\_web\_admin=false

also check the “application\_data\_directory” in the file, it should be

> application\_data\_directory=/opt/openmrs/

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](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.

---

<div class="post-metadata">

**Author:** ![tapologo](https://talk.openmrs.org/letter_avatar/tapologo/32/6_449c533f586939b6e5f246632a46421f.png) [@tapologo](https://talk.openmrs.org/u/tapologo)\
**Post date:** [June 17, 2021, 6:27am UTC](https://talk.openmrs.org/t/starting-modules-from-terminal/33795/3 "2021-06-17T06:27:17Z")

</div>

> [@angshuonline](#):
>
> 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”](https://your-serverr/openmrs%E2%80%9D)? and you can login?

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

 ![image](https://talk.openmrs.org/uploads/default/original/2X/8/897a1a077276bc10061872ac6b3e841ccf8ac83c.png)

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [June 17, 2021, 6:45am UTC](https://talk.openmrs.org/t/starting-modules-from-terminal/33795/4 "2021-06-17T06:45:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tapologo](https://talk.openmrs.org/letter_avatar/tapologo/32/6_449c533f586939b6e5f246632a46421f.png) [@tapologo](https://talk.openmrs.org/u/tapologo)\
**Post date:** [June 17, 2021, 10:02am UTC](https://talk.openmrs.org/t/starting-modules-from-terminal/33795/5 "2021-06-17T10:02:13Z")

</div>

> [@tapologo](#):
>
> PageNotFound - No mapping found for HTTP request with URI [/openmrs/ws/rest/v1/session] in DispatcherServlet with name ‘openmrs’

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

 ![image](https://talk.openmrs.org/uploads/default/original/2X/1/1c1135c6ce390570f1edc60489eea56fd9aa6b26.png)

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [June 17, 2021, 10:09am UTC](https://talk.openmrs.org/t/starting-modules-from-terminal/33795/6 "2021-06-17T10:09:51Z")

</div>

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

> [http://your-ip-address/openmrs](http://your-ip-address/openmrs)

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.
