Hi there,
I’ve installed the OpenMRS core 2.6.3 using Docker. I’m able to access it on localhost:8080/openmrs/
Now my issue is when I want to send some requests to it.
I use JMeter and I’m sure about the script (it was successfully tested on OpenMRS 2.2.1 which was installed manually).
The error I’m getting from JMeter:
HTTP Status 404 – Not Found: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
The error I’m getting from openmrs container logs:
WARN - DispatcherServlet.noHandlerFound(1283) |2024-01-18T14:59:11,179| No mapping for POST /openmrs/ws/rest/v1/person
WARN - DispatcherServlet.noHandlerFound(1283) |2024-01-18T14:59:11,334| No mapping for GET /openmrs/ws/rest/v1/person/dda9c66c-1691-11df-97a5-7038c432aabf
The OpenMRS Core Docker image is just the OpenMRS WAR file without any modules whatsoever. There is no user interface (other than the wizard) nor is there any other web interface, such as REST. That is almost certainly not the container you want to be using. You probably want to be using some variation of the Reference Application, which is probably what you used in the past.
The OpenMRS Core Docker image is primarily intended for developers working on the core itself.
I would run docker compose down -v in the same directory. While Docker may run under root, newer versions of OpenMRS no longer do and it seems like you may have an existing volume (openmrs-data) that requires root permissions rather than those associated with the limited user we use.