# Issues on running openelis in Bahmni

**URL:** <https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542>\
**Category:** Ask OpenMRS\
**Tags:** community, developers, bahmni\
**Created:** [February 9, 2023, 8:21am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542 "2023-02-09T08:21:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunny123](https://talk.openmrs.org/letter_avatar/sunny123/32/5_5575768a8748004e209b776fc1b2916d.png) [@sunny123](https://talk.openmrs.org/u/sunny123)\
**Post date:** [February 9, 2023, 8:21am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/1 "2023-02-09T08:21:06Z")

</div>

Bahmni Application  
Running bahmni on docker

**Question:** Openelis is not working in bahmni. here are the details of error I am getting.

After running the bahmni on docker.

 ![bahmni](https://talk.openmrs.org/uploads/default/original/3X/a/2/a2f9a8cda8139567815304e77f76889520fc9fe8.png)

Error getting after clicking on laboratory icon.

 ![openelis error](https://talk.openmrs.org/uploads/default/original/3X/d/f/df324221b8b1e81e092ac58018aee4ec4c1f4579.png)

---

<div class="post-metadata">

**Author:** ![sunny123](https://talk.openmrs.org/letter_avatar/sunny123/32/5_5575768a8748004e209b776fc1b2916d.png) [@sunny123](https://talk.openmrs.org/u/sunny123)\
**Post date:** [February 9, 2023, 8:22am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/2 "2023-02-09T08:22:39Z")

</div>

@mohant please help

---

<div class="post-metadata">

**Author:** ![mohant](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mohant/32/15443_2.png) [@mohant](https://talk.openmrs.org/u/mohant)\
**Post date:** [February 9, 2023, 8:32am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/3 "2023-02-09T08:32:34Z")

</div>

Please make sure that you have started `openelis` profile as well. You can start that by running `docker compose --profile openelis up -d` (or) you can edit COMPOSE\_PROFILE in [.env](https://github.com/Bahmni/bahmni-docker/blob/master/bahmni-standard/.env#L2) as `emr,openelis` and then run `docker compose up -d`

---

<div class="post-metadata">

**Author:** ![sunny123](https://talk.openmrs.org/letter_avatar/sunny123/32/5_5575768a8748004e209b776fc1b2916d.png) [@sunny123](https://talk.openmrs.org/u/sunny123)\
**Post date:** [February 10, 2023, 10:04am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/4 "2023-02-10T10:04:28Z")

</div>

@mohant Thanks a lot it worked.

---

<div class="post-metadata">

**Author:** ![sunny123](https://talk.openmrs.org/letter_avatar/sunny123/32/5_5575768a8748004e209b776fc1b2916d.png) [@sunny123](https://talk.openmrs.org/u/sunny123)\
**Post date:** [February 13, 2023, 7:19am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/5 "2023-02-13T07:19:10Z")

</div>

Hi @mohant if I create the new patient in bahmni I am getting error.

 ![patientdashboard](https://talk.openmrs.org/uploads/default/original/3X/d/3/d3148c62d0a3263f5cbc9f2cde5c1574aba553b2.png)

Error I am getting.

 ![patient reg error](https://talk.openmrs.org/uploads/default/original/3X/e/7/e75095bbcfa0368c5ab2ef899372cb1229739a3b.png)

---

<div class="post-metadata">

**Author:** ![mohant](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mohant/32/15443_2.png) [@mohant](https://talk.openmrs.org/u/mohant)\
**Post date:** [February 13, 2023, 9:32am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/6 "2023-02-13T09:32:07Z")

</div>

@sunny123 Thanks for reporting. This will be fixed soon. For now you follow the steps below

[https://localhost/openmrs](https://localhost/openmrs) → Login → Administration → Manage Patient Identifier Sources → Click on Configure for `GAN` and set `Max Length` to 10.

---

<div class="post-metadata">

**Author:** ![sunny123](https://talk.openmrs.org/letter_avatar/sunny123/32/5_5575768a8748004e209b776fc1b2916d.png) [@sunny123](https://talk.openmrs.org/u/sunny123)\
**Post date:** [February 13, 2023, 9:45am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/7 "2023-02-13T09:45:02Z")

</div>

yeah ok, Thank you @mohant

---

<div class="post-metadata">

**Author:** ![sunny123](https://talk.openmrs.org/letter_avatar/sunny123/32/5_5575768a8748004e209b776fc1b2916d.png) [@sunny123](https://talk.openmrs.org/u/sunny123)\
**Post date:** [March 1, 2023, 10:17am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/8 "2023-03-01T10:17:42Z")

</div>

Hi @mohant could you tell me if I do the lab test/result from bahmni (openelis) running on docker then where the data get store?

These are the running containers.

 ![image](https://talk.openmrs.org/uploads/default/original/3X/7/2/7298dad371b4331accc5173cf8b0023544b6be4f.png)

These are the result of patient in openelis.

 ![image](https://talk.openmrs.org/uploads/default/original/3X/3/f/3fa50be045947ed065b34f90d9e44153c073b37f.png)

I checked the openelisdb as a postgres user, Here are the details

 ![image](https://talk.openmrs.org/uploads/default/original/3X/5/b/5b7db263f533246da9943fa1a5b6723ad55a781d.png)

I checked the databases of openelisdb but there is any tables in any database.

 ![image](https://talk.openmrs.org/uploads/default/original/3X/f/d/fdc37535547f00acbcdb76efacaed7e2454dbd8a.png)

Kindly help!

---

<div class="post-metadata">

**Author:** ![mohant](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mohant/32/15443_2.png) [@mohant](https://talk.openmrs.org/u/mohant)\
**Post date:** [March 2, 2023, 5:15am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/9 "2023-03-02T05:15:41Z")

</div>

It will be stored in the `openelisdb` container. Exec into the container and run the following command: `psql -U clinlims`. Then you can run `\dt` to see all the tables.

 ![Screenshot 2023-03-02 at 10.42.47 AM](https://talk.openmrs.org/uploads/default/original/3X/8/a/8a3b4812a04afcedd6c57611bdb1c2c6c4e4a168.jpeg)

Thanks

---

<div class="post-metadata">

**Author:** ![sunny123](https://talk.openmrs.org/letter_avatar/sunny123/32/5_5575768a8748004e209b776fc1b2916d.png) [@sunny123](https://talk.openmrs.org/u/sunny123)\
**Post date:** [July 13, 2023, 10:01am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/10 "2023-07-13T10:01:42Z")

</div>

@mohant Hi mohan, I need some help…I am not able to figure out why this port of openmrsdb is not bound coming…I am not able to make the connection of mysql outside docker as e.g workbench and in cmd also it’s not showing the 3306 port as running

 ![openmrsdb](https://talk.openmrs.org/uploads/default/original/3X/a/a/aa706be940bde2922c04740b8fdc5a42ee899309.png)sql server running inside the docker container and the openmrs application is working fine.

sql log :

 ![sqllog](https://talk.openmrs.org/uploads/default/original/3X/3/7/37ca7e9aa2feac376e4cd6541e70d9a27cb80b23.png)

In cmd 3306 port is not showing:

 ![cmdlog](https://talk.openmrs.org/uploads/default/original/3X/0/2/025f7c9a973913a88f758b283b2a2c85f93583c4.png)

---

<div class="post-metadata">

**Author:** ![sunny123](https://talk.openmrs.org/letter_avatar/sunny123/32/5_5575768a8748004e209b776fc1b2916d.png) [@sunny123](https://talk.openmrs.org/u/sunny123)\
**Post date:** [July 13, 2023, 3:23pm UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/11 "2023-07-13T15:23:39Z")

</div>

Hi @mohant could you please help me here…got stuck badly

---

<div class="post-metadata">

**Author:** ![mohant](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mohant/32/15443_2.png) [@mohant](https://talk.openmrs.org/u/mohant)\
**Post date:** [July 14, 2023, 1:20am UTC](https://talk.openmrs.org/t/issues-on-running-openelis-in-bahmni/38542/12 "2023-07-14T01:20:23Z")

</div>

Binding the DB ports on the host machine has been removed for improved security. If you need it you can add the ports option to `openmrsdb` service in docker-compose.yml.

```auto
     ports:
       - '3306:3306'

```
