Error on docker-compose up with Reference Application - a port conflict - 80.

Hi,

We are brand new to the OpenMRS landscape. We are trying to standup an instance to navigate its API.

Here is what we did -

  1. Cloned this repo - GitHub - openmrs/openmrs-distro-referenceapplication

  2. The build went on fine - running on ubuntu so had to $ export DOCKER_BUILDKIT=1, before the build.

  3. On docker-compose up - getting this error - here is the tail - … Status: Downloaded newer image for mariadb:10.8.2 Creating openmrs-distro-referenceapplication_db_1 … done Creating openmrs-distro-referenceapplication_backend_1 … done Creating openmrs-distro-referenceapplication_frontend_1 … done Creating openmrs-distro-referenceapplication_gateway_1 … Creating openmrs-distro-referenceapplication_gateway_1 … error

ERROR: for openmrs-distro-referenceapplication_gateway_1 Cannot start service gateway: driver failed programming external connectivity on endpoint openmrs-distro-referenceapplication_gateway_1 (01c19729b1a3a8d643e56a8ed2c45d45b3aa2013a2ce4f8c5b13ceee49954c73): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use

ERROR: for gateway Cannot start service gateway: driver failed programming external connectivity on endpoint openmrs-distro-referenceapplication_gateway_1 (01c19729b1a3a8d643e56a8ed2c45d45b3aa2013a2ce4f8c5b13ceee49954c73): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use ERROR: Encountered errors while bringing up the project.

These are the only containers running.

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

47f2f21c359c openmrs/openmrs-reference-application-3-frontend:qa “/docker-entrypoint.…” About a minute ago Up About a minute (healthy) 80/tcp openmrs-distro-referenceapplication_frontend_1

910530afb1f2 openmrs/openmrs-reference-application-3-backend:qa “/usr/bin/tini – /o…” About a minute ago Up About a minute (healthy) 8080/tcp openmrs-distro-referenceapplication_backend_1

1644f9d3f187 mariadb:10.8.2 “docker-entrypoint.s…” 2 minutes ago Up About a minute (healthy) 3306/tcp openmrs-distro-referenceapplication_db_1

Any assistance is appreciated.

Thanks,

Ravi

Teqbahn Labs

Closing this as we had a stubborn Apache2 webserver running in the background!

Hi @ravimadhu,

It seems that an application is already running on port 80 of your machine. Either terminate the application or use a different port for the gateway to resolve this issue. Alternatively, you can visit dev3.openmrs.org to try it out.

1 Like

Thanks Jayasanka! That was the realization as soon as I created the post. Closed the post soon after - or so I thought! Now it is running fine after terminating the offending apache2 webserver.

I am sure we will have more questions as we work through the API layers.

2 Likes