I’ve done my best read all all the previous cases of “unable to edit openmrs-runtime.properties”, but I have not found any solution. I thank you in advance if you can follow me with the next facts. (Since new user can’t post too many urls, I also had to modify them hereinafter)
My aim:
test and evaluate OpenMRS
Software stack:
Ubuntu 22.04.3 LTS (VM under kvm/libvirt) with standard software on this version of distro
tomcat9 9.0.58
openjdk-8-jre 8u392
mysql 8.0.36
I have tested the first installation with:
openmrs-2.0.5.war
openmrs-2.1.5.war
openmrs-2.3.6.war
openmrs-2.5.0.war
openmrs-2.6.1.war
I’ve been using this guide at openmrs wiki /display/docs/Installing+OpenMRS and tomcat has “SECURITY_MANAGER=false” flag set.
Also “cat /etc/passwd | grep tomcat” says that home directory is “/var/lib/tomcat”.
When opening deployment url hostname:8080/openmrs the first 4 war-packages end up with error straight after language selection (example from 2.5.0):
“OpenMRS Core 2.5.0 Installation Wizard”
OpenMRS cannot edit the file: /var/lib/OpenMRS/openmrs-runtime.properties
You must correct this before continuing.
The last version does not get that far and ends up with 404 status code with different messages in error logs. So I focused on versions 2.0.5 until 2.5.0.
/usr/share/tomcat7/.OpenMRS (as a symlink to /usr/share/tomcat9/.OpenMRS/)
But no changes and the error message still persists. It is also strange that /var/lib/OpenMRS is a directory where tomcat should not be allowed to write anything (maybe even to read from it).
Actually I’ve tested both with openmrs-runtime.properties ready-made and empty directories. The error is still the same.
OpenMRS cannot edit the file: /var/lib/OpenMRS/openmrs-runtime.properties
You must correct this before continuing.
Just in case… also double-checked this - removed again everything under /var/lib/tomcat9/webapps/openmrs, applied correct ownership and attempted again from deployment from /opemnrs url. But still the same error.
Did you ever solve this? Im having the exact same issue with the exact same setup. Except im using platform 2.4.3. Ive tried installing multiple different ways and nothing seems to work. I even tried the docker method and that got me further but would never get past 99% on setting up the database. Logs just kept saying patient notifications arent configured. Id rather not use the docker method if i dont have to anyways.