I am trying to get the 2.7.0 platform to run with the O2 UI.
My underlying goal is to try to update our current installation with the recommended security fixes, preferably with minimal changes to the UI and database. Basically, our current installation is 2.4.3 Build 0ff0ed + add-ons from referenceapplication-addons-2.11.0.zip + order entry + one custom module.
What I have working so far is the OpenMRS 2.7.0 docker + a list of modules based on the 2.13 reference application add-ons (see below for list). The problem I have now is that I canāt get the referenceapplication module to work, therefore I donāt have the O2 UI. It gives a null pointer exception, and when I reload the page it gives a UI Framework Error. I have tried updating all modules to the latest versions; for the modules that are not on the latest version, the latest version does not work. I have tried rolling the UI Framework Module back to 3.22 (the version listed in the add-ons) but then the UI Framework module does not load (see errors) . I suspect the problem is that I donāt yet have a working combination of versions of modules. Does anyone have 2.7+ running with the O2 UI, and if so, what combination of modules/versions are you using to get it to work?
I have some log files:
9:25: uploaded referenceapplication-2.13.0.omod (not in log); got errors
Thanks for your very fast reply! I was able to install the new versions of both modules, but when I add the referenceapplication omod, I get the error:
The page isnāt redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
I tried clearing cookies/cache; this did not help.
I also tried refreshing the docker (which resulted in a working system with no modules) and copying the .omod files back to the modules directory. This got the same result. Removing referenceapplication-2.13.0.omod and restarting the Docker gets things working again (but of course without the O2 UI). I have not tried upgrading any of the other modules.
Where should I download the 2.7.3 war? I donāt see it on the Downloads page or Docker hub. I see thereās a war file here, is that the one I should try?
The 2.7.3 war deployed with no problems, but this did not fix the problem with referenceapplication-2.13.0.omod .
It looks like exactly the same problem, to my eye, but hereās the newest log file just in case something changed that I didnāt notice: openmrs.log.
Thereās a module called formentry app that the referenceapplication module depends on, but which isnāt in your list of modules. Maybe try adding the latest version of that.
Thanks for your reply. The Form Entry App is not listed as a dependency of the referenceapplication or any of its dependencies. It is included in the 2.13 reference application modules, but it threw an error when I tried to load it, and since it wasnāt in the dependency tree I did not try to install it again.
This time Form Entry App loaded without errors, but I am still getting the same error as in my last post. Upon installing, referenceapplication gives an error: https://pastebin.com/L2HUzsRX.
When I restart the Docker and try to go back to the login page, I get the same error as in my last post:
The page isnāt redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
In the Tomcat logs, I can see that thereās about 20 entries that look like this:
[28/Apr/2025:09:40:23 +0000] "GET /openmrs/login.htm HTTP/1.1" 302 -
/openmrs/login.htm works with the legacy UI, so I guess what is happening is that the O2 front end is trying to redirect from the standard login.htm to the O2 login screen, and failing. I donāt know why, though.
And, in case you need it, the OpenMRS log file: openmrs.log.
@abertnamanya, I think your problem is different from mine. I was able to load the App Framework module with no problems. I am running the 2.7.3 platform and had the following modules already installed: uiframework-3.23.0.omod, uicommons-2.23.0.omod, uilibrary-2.0.7.omod, webservices.rest-2.47.0.omod, owa-1.15.0.omod. It might be a good idea to make a separate post, so that replies to your question and replies to my question donāt get confused.
Interestingly, today, when I uploaded the referenceapplication-2.13.0.omod file, the module does start and Iām able to see that all modules are running. I can also get to the O2 login screen. However, when I restart the container and try to log in, I get the āThe page isnāt redirecting properlyā error again. What changed between yesterday and today is that I disabled the reverse proxy, so today I am connecting via http: rather than https: with a reverse proxy. Needless to say, I canāt view the modules list, since I canāt log in. /openmrs/ tries to redirect to openmrs/login.htm . Navigating to openmrs/referenceapplication/login.page also redirects to openmrs/login.htm. So, getting rid of the reverse proxy seemed to get rid of this error, but not the redirect error.
I should probably have done this before starting the container, but I did it here: podman cp csrfguard.properties openmrs-platform:/usr/local/tomcat/webapps/openmrs/WEB-INF/csrfguard.properties using this file
podman start openmrs-platform
At this point I get the LegacyUI login. I can log in, and see that all modules are running except Reference Metadata and Reference Application. I click Start All, which works⦠I can log in to the O2 UI. However, the situation is not stable⦠restarting the containers will result in the aforementioned error.