# unable to create openmrs-runtime.properties file after redeploying openmrs

**URL:** <https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247>\
**Category:** Implementing\
**Created:** [April 25, 2021, 2:16pm UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247 "2021-04-25T14:16:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 25, 2021, 2:17pm UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/1 "2021-04-25T14:17:00Z")

</div>

I was using openmrs 2.3.2 on linux (ubuntu) which I had upgrade from openms 2.0.6. I was upgrading the modules and I started getting errors then I decided to undeploy and deploy openmrs 2.3.2 but after undeploying I deleted the folder /usr/share/tomcat7/.OpenMRS . Now when I deploy openmrs.war and start installation it cannot create openmrs-runtime.properties file. What can I do to fix this? Also I am using tomcat7, java version 1.8.0 and mysql 5.5.62.

 ![unable to create runtime properties file](https://talk.openmrs.org/uploads/default/original/2X/6/6a4b354202e0503186bee7ecacef85e3c7e4c582.png)[unable to create openmrs runtime properties - Pastebin.com](https://pastebin.com/LYy3vyw8)

---

<div class="post-metadata">

**Author:** ![gcliff](https://talk.openmrs.org/user_avatar/talk.openmrs.org/gcliff/32/8783_2.png) [@gcliff](https://talk.openmrs.org/u/gcliff)\
**Post date:** [April 25, 2021, 5:59pm UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/2 "2021-04-25T17:59:21Z")

</div>

@jerome24 you can try to create the folder manually with the right path `:/var/lib/OpenMRS` and then deploy the openmrs war file to see if it can generate the run-time properties file in that path

---

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 27, 2021, 7:05am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/3 "2021-04-27T07:05:29Z")

</div>

I have created the folder /usr/share/tomcat7/.OpenMRS but still it cannot create runtime properties file. [Openmrs runtime properties error1 - Pastebin.com](https://pastebin.com/iZbGn6bL)

---

<div class="post-metadata">

**Author:** ![gcliff](https://talk.openmrs.org/user_avatar/talk.openmrs.org/gcliff/32/8783_2.png) [@gcliff](https://talk.openmrs.org/u/gcliff)\
**Post date:** [April 27, 2021, 7:39am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/5 "2021-04-27T07:39:34Z")

</div>

@jerome24 what is in `/var/lib/OpenMRS/` ? because it where its expecting the properties file

---

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 27, 2021, 8:00am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/6 "2021-04-27T08:00:41Z")

</div>

My openmrs-runtime.properties was in /usr/share/tomcat7/.OpenMRS , I have recreated this folder and try deploy openmrs.war but there is nothing on the folder /usr/share/tomcat7/.OpenMRS. I have also try to create the folder /var/lib/OpenMRS (as per your suggestion) and deploy openmrs.war but still the folder /var/lib/OpenMRS is empty.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 27, 2021, 8:03am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/7 "2021-04-27T08:03:39Z")

</div>

Is this of help? [What's the recommended OpenMRS application directory? - #6 by whiscard](https://talk.openmrs.org/t/whats-the-recommended-openmrs-application-directory/3461/6)

---

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 27, 2021, 8:46am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/8 "2021-04-27T08:46:39Z")

</div>

Thanks after typing this “sudo chown -R tomcat7:tomcat7 /usr/share/tomcat7/.OpenMRS/” it has created the runtime properties file. But I have stuck somewhere else [https://pastebin.com/NbztDTVi!](https://pastebin.com/NbztDTVi!) [Openmrs Installation wizard error1|690x387](https://talk.openmrs.org/uploads/short-url/1MDLxhn27NuLvZvsUThMJac3dr9.png)

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 27, 2021, 8:57am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/9 "2021-04-27T08:57:00Z")

</div>

This looks like a mismatch between the database you are pointing to and the openmrs platform version that you are trying to run. If you have a database backup, restore the database and restart openmrs.

---

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 27, 2021, 9:08am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/10 "2021-04-27T09:08:34Z")

</div>

I already have the database openmrs database on mysql and it has a lot of data that I don’t want to drop the database because it takes a long time to restore (like 26hrs). Do you mean the database has the different version from the one I have deployed?

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 27, 2021, 9:26am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/11 "2021-04-27T09:26:07Z")

</div>

It looks like you are running a platform version older than the one which was used for this database.

---

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 27, 2021, 9:36am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/12 "2021-04-27T09:36:43Z")

</div>

Ok let me try to download another war file and deploy it again.

---

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 27, 2021, 11:30am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/13 "2021-04-27T11:30:14Z")

</div>

I have download and deploy a new copy of openmrs.war 2.3.2 and restart tomcat. I have run into another challenge which got me in trouble in the first place which is missing user interface. This challenge leads me to this page [User Interface Modules - Documentation - OpenMRS Wiki](https://wiki.openmrs.org/display/docs/User+Interface+Modules) which inform me to install legacyui modules. But I have already copy legacyui module in /usr/share/tomcat7/.OpenMRS/modules. Is there other solution to this? [user interface error - Pastebin.com](https://pastebin.com/Kjtu4CJL)

 ![user interface error](https://talk.openmrs.org/uploads/default/original/2X/8/85bd90a2a669e611b92fc2a1107c71169977fef2.png)

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 27, 2021, 11:38am UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/14 "2021-04-27T11:38:29Z")

</div>

After pasting the legacyui module into the modules folder, you need to again restart OpenMRS.

---

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 27, 2021, 12:02pm UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/15 "2021-04-27T12:02:13Z")

</div>

I still get the same page with no user interface

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 27, 2021, 12:14pm UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/16 "2021-04-27T12:14:31Z")

</div>

Try clear the browser cache or test with another browser.

---

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 27, 2021, 12:26pm UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/17 "2021-04-27T12:26:37Z")

</div>

I still get the same problem. I have try it with chrome and mozilla

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 27, 2021, 12:33pm UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/18 "2021-04-27T12:33:58Z")

</div>

Share the current tomcat log via [pastebin.com](http://pastebin.com)

---

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 27, 2021, 12:38pm UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/19 "2021-04-27T12:38:12Z")

</div>

Here is the current tomcat log file [user interface error2 - Pastebin.com](https://pastebin.com/AgmkfAvi)

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 27, 2021, 12:56pm UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/20 "2021-04-27T12:56:39Z")

</div>

Remove all modules and leave only the legacyui module. Then restart OpenMRS.

---

<div class="post-metadata">

**Author:** ![jerome24](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jerome24/32/16232_2.png) [@jerome24](https://talk.openmrs.org/u/jerome24)\
**Post date:** [April 27, 2021, 1:10pm UTC](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247/21 "2021-04-27T13:10:55Z")

</div>

I have removed all modules and remain with legacyui then restart openmrs but i still get the same error. [user interface error3 - Pastebin.com](https://pastebin.com/K1t50AfD)

[Next page](https://talk.openmrs.org/t/unable-to-create-openmrs-runtime-properties-file-after-redeploying-openmrs/33247.md?page=2)
