OpenMRS Enterprise keeps going to initial setup after system restart

Hello all,

I installed OpenMRS Enterprise version few days ago and notice that anytime the server restarts due to power outage or something, the installation keeps reverting back to initialsetup. Is this normal?

Server log: https://pastebin.com/RG6mDKii

Version 1.8.3 WAR

Ubuntu 14.04 LTS

It entered setup mode: http://localhost:8080/openmrs/initialsetup

Instead of http://localhost:8080/openmrs

What can i do to fix this bug?

It now stops here.

Server log: https://pastebin.com/Vmh44m93

Can you share the contents of other log files? This does not seem to have any errors related to what you are reporting.

I have same issues, but using docker installation. I restarted the docker container, and it fixed by it self. My guess is the openmrs failed to connect to the database at the first run.

I have fixed the issue. The problem was from the directory, I gave permission to the tomcat dir so as to allow tomcat to create the openmrs-runtime.properties file. I restarted the tomcat service and it registers the file.

@septiadi yes, most times openmrs fail to connect to the database at first run if permission is not granted to the directory.

Regards Gibril Gomez