Installing OpenMRS 1.9.9-SNAPSHOT on Windows 8

2 views
Skip to first unread message

Mark Goodrich

unread,
Feb 17, 2015, 11:12:42 AM2/17/15
to implem...@openmrs.org
Hello all--

Has anyone, by chance, tried to install the latest snapshot of the 1.9.x branch (or 1.10.x, for that matter?) on Windows 8.  We've got an implementer who has been able to successfully install 1.9.8, but installing 1.9.9-SNAPSHOT fails for him.

Thanks,
Mark


-------- Forwarded Message --------
Subject: Re: Unable to establish a stable Mirebalais OpenMRS development environment
Date: Mon, 16 Feb 2015 14:16:26 -0500
From: Alan Simmons <asim...@pih.org>
To: Ellen Ball <elle...@alumni.rutgers.edu>, Mark Goodrich <mgoo...@pih.org>


I tried again after completely backing out tomcat.


I reinstalled tomcat, deleted the OpenMRS folder in Application Data, and deleted the OpenMRS database.

I reinstalled the 1.9.9 WAR. The install again failed at the updating database step at 65%. The error message in the log was that it could not start logic v0.5.2.


I then stopped tomcat, deleted the work and temp folders in tomcat, deleted the openmrs web app, and then restarted tomcat. When I tried to start openmrs, I got the same error.


I have done this at least three times so far.


I believe that I have demonstrated definitively that the 1.9.9 WAR installation program does not work for Windows, or at least Windows 8. I recommend that someone else try installing OpenMRS 1.9 on another Windows machine to replicate the problem.



J. Alan Simmons
Medical Informatics Implementation Manager

Hôpital Universitaire de Mirebalais | Partners In Health
US cell: (01) 773.220.5018
Skype: asimmons.pih
email: asim...@pih.org


From: elln...@gmail.com <elln...@gmail.com> on behalf of Ellen Ball <elle...@alumni.rutgers.edu>
Sent: Friday, February 13, 2015 1:38 PM
To: Alan Simmons; Mark Goodrich
Subject: Re: Unable to establish a stable Mirebalais OpenMRS development environment
 
Dear Alan -

I'm battling a few Haiti fires today (HIV and OpenBoxes), so not able to help with this.  I don't use Windows for OpenMRS installations.  Not sure if you would find anyone else who does on our team.

e

On Fri, Feb 13, 2015 at 12:45 PM, Alan Simmons <asim...@pih.org> wrote:

Has anyone actually deployed a 1.9.9 OpenMRS WAR successfully in Windows?


1.9.8 deploys with no problem, every time.

1.9.9 has not yet deployed cleanly for me, any time. I've tried at least 10 times, even after reinstalling/installing tomcat.


If it is a cleanup problem, then it may be a bug in the installer.



J. Alan Simmons
Medical Informatics Implementation Manager

Hôpital Universitaire de Mirebalais | Partners In Health
US cell: (01) 773.220.5018
Skype: asimmons.pih
email: asim...@pih.org


From: Alan Simmons
Sent: Friday, February 13, 2015 11:58 AM
To: Ellen Ball

Subject: Re: Unable to establish a stable Mirebalais OpenMRS development environment
 

No dice. I still got the errors. When I tried to start and stop openmrs, I got a permgen error. When I bounced tomcat, I got the logic error.


I suppose that I can try wiping the openmrs deployment and retrying. I've done that a few times already.



J. Alan Simmons
Medical Informatics Implementation Manager

Hôpital Universitaire de Mirebalais | Partners In Health
US cell: (01) 773.220.5018
Skype: asimmons.pih
email: asim...@pih.org


From: elln...@gmail.com <elln...@gmail.com> on behalf of Ellen Ball <elle...@alumni.rutgers.edu>
Sent: Friday, February 13, 2015 11:32 AM
To: Alan Simmons
Subject: Re: Unable to establish a stable Mirebalais OpenMRS development environment
 
Try again.  Stop tomcat.  Remove those 3 directories.  Restart tomcat.

The error about the logic module is usually about improper cleanup.

e

On Fri, Feb 13, 2015 at 11:28 AM, Alan Simmons <asim...@pih.org> wrote:
The only thing that I had not been doing in my prior attempts was deleting the temp and work directories of my tomcat instance.

When I did this and deployed the 1.9.9 WAR, the initial setup made it past the 65% stopping point in the database update of previous installs. However, it appeared to hang after reaching 100%.

I closed the browser window and opened again. It appears that OpenMRS was deployed; however, for some reason, it did not create the admin user with the password that I gave in the setup. I was able to log in using admin/test.

I then tried to change the password using Administration/Manage user. It initially threw an error, complaining about being unable to load a class; however, I've noticed that OpenMRS seems to throw errors the first time you do something after a deployment, so I reclicked and it seemed to work.

I then restarted tomcat. This time, openmrs failed to load with the error that it could not start logic v0.5.2, which is the error that I have been getting with 1.9.9 deployments.

So removing the temp and work directories resulted in further progress in the 1.9.9 deployment, but did not result in a stable deployment.

I have noticed that the logic module is not normally loaded in the C:\Application Data\openmrs\modules folder (or in the equivalent folder path in Linux). So it appears that the 1.9.9 installer either does not include the logic module or actively removes it from the deployment.



J. Alan Simmons
Medical Informatics Implementation Manager

Hôpital Universitaire de Mirebalais | Partners In Health
US cell: (01) 773.220.5018
Skype: asimmons.pih
email: asim...@pih.org


From: Ellen Ball <elln...@gmail.com>
Sent: Friday, February 13, 2015 10:56 AM
To: d...@openmrs.org
Cc: Alan Simmons; Mark Goodrich
Subject: Re: Unable to establish a stable Mirebalais OpenMRS development environment
 
This happens sometimes when files are left behind in the tomcat directories.  Alan should try deleting the [TOMCAT_HOME]/webapps/openmrs directory along with the [TOMCAT_HOME]/temp and [TOMCAT_HOME]/work directories.  
  • Stop tomcat
  • Remove those directories
  • Restart tomcat
Ellen Ball
Partners In Health

On Thursday, February 12, 2015 at 5:15:28 PM UTC-5, Mark Goodrich wrote:
Hello all--

We have an implementer that's having trouble getting OpenMRS 1.9.9-SNAPSHOT running... he's seeing the errors listed below... has anyone else run into similar issues?

Thanks,
Mark


On 02/12/2015 12:38 PM, Alan Simmons wrote:

I will summarize below technical details of the some of the problems that I encountered most recently.


My configuration currently runs a new, clean install of TomCat (6.0.29), along with Java 7 and MySQL. In other words, I am ready to bring in OpenMRS and the Mirebalais modules. Perhaps it is possible to establish a stable implementation by means of Maven and git; I don't know. I have both Maven and git installed on my development machine. I need assistance or recommendations for the next step.


---

Technical details:

  1. In order to develop HTML forms, I need the htmlformentry modules, which are not part of the vanilla OpenMRS install.
  2. The htmlformentry modules depend on other modules, which--at least in the Mirebalais configuration--wind up depending on 1.9.9 snapshot, which means that I have to install the 1.9.9 WAR.
  3. I can deploy the 1.9.8 WAR with no problem. However, I cannot drop in the mirebalis modules because of the dependency on 1.9.9.
  4. I cannot deploy the 1.9.9 WAR from scratch. The initial setup hangs in the "updating database" step (at 65%). If I exit the initial setup (after waiting as long as 4 hours), I can't start OpenMRS; it complains that the logic v0.52 module is missing.
  5. I cannot deploy the 1.9.9 WAR over a 1.9.8 deployment, which I have done per recommendations as follows:
    1. Deploy 1.9.8 from scratch.
    2. Delete the C:\Application Data\openmrs folder (which contains the runtime properties file).
    3. Replace the 1.9.8 WAR in the tomcat webapps folder with the 1.9.9 WAR.
    4. Bounce TomCat.
    5. OpenMRS fails, again complaining that the logic module is missing. It appears that the OpenMRS 1.9.9 setup actually removes the logic module.
  6. I considered deploying 1.9.8, making a backup copy of the logic omod, deploying 1.9.9, and then copying the logic omod back in, but then realized that this was turning into more of a rabbit hole than it already was.



J. Alan Simmons
Medical Informatics Implementation Manager

Hôpital Universitaire de Mirebalais | Partners In Health
US cell: (01) 773.220.5018
Skype: asimmons.pih
email: asim...@pih.org





--
“Tout moun se moun”
Every person is a person



--
“Tout moun se moun”
Every person is a person


Daniel Kayiwa

unread,
Feb 17, 2015, 12:37:27 PM2/17/15
to implem...@openmrs.org
As we wait for some one with Windows 8, a tomcat log would be great to snack on in the meantime :)

--
OpenMRS Implementers: http://om.rs/implist
Post: implem...@openmrs.org | Unsubscribe: implementers...@openmrs.org
Manage your OpenMRS subscriptions: http://om.rs/id
 
Visit OpenMRS Talk at http://om.rs/talk for chat and discussions!

To unsubscribe from this group and stop receiving emails from it, send an email to implementers...@openmrs.org.



--
If we keep uppermost in our minds the unkind and unjust acts of others, we shall find it impossible to love them as Christ has loved us; but if our thoughts dwell upon the wondrous love and pity of Christ for us, the same spirit will flow out to others.

Gibril Gómez

unread,
Feb 17, 2015, 5:33:40 PM2/17/15
to implem...@openmrs.org
Hi Alan,

In my own case am using Windows 8.1 OS and i was able to successfully deploy OpenMRS on Apache Tomcat/7.0.55 and am at this time running OpenMRS 1.10.0 WAR. I didn't experience the issue you raise but try deleting your tomcat directories make sure you stop tomcat before cleaning then start again..


Regards
Gibril Gómez

*Faith makes everything possible ..!!

OpenMRS on windows 8.1.jpg

Alan Simmons

unread,
Feb 17, 2015, 6:30:15 PM2/17/15
to implem...@openmrs.org
Interesting. I'm using Tomcat 6.0.29 at the recommendation of the Implementer's Guide. I understand that OpenMRS isn't certified for Tomcat 7 yet.

Maybe I'll try Tomcat 7. It can't hurt.
...

Gibril Gómez

unread,
Feb 17, 2015, 7:01:11 PM2/17/15
to implem...@openmrs.org, west-africa-op...@googlegroups.com
Likewise you might not want to upgrade your jdk if you're already using java 6, also if it persists try increasing the [Perm Gen heap memory] in tomcat/bin

--
OpenMRS Implementers: http://om.rs/implist
Post: implem...@openmrs.org | Unsubscribe: implementers...@openmrs.org
Manage your OpenMRS subscriptions: http://om.rs/id
 
Visit OpenMRS Talk at http://om.rs/talk for chat and discussions!

To unsubscribe from this group and stop receiving emails from it, send an email to implementers...@openmrs.org.

Alan Simmons

unread,
Feb 17, 2015, 10:30:49 PM2/17/15
to implem...@openmrs.org, west-africa-op...@googlegroups.com
So I uninstalled Tomcat 6.0.29 and installed Tomcat 7.0.59. No luck. Same problem--the initial setup fails to start logic v0.5.2. Even after I delete the openmrs webapp folder and clear the temp and work folders in tomcat, I get the same problem. I also am running Windows 8.1.
...

Gibril Gómez

unread,
Feb 18, 2015, 3:32:50 AM2/18/15
to implem...@openmrs.org, west-africa-op...@googlegroups.com
Did you check the "Perm Gen heap memory" in tomcat/bin? i figured out that the default tomcat heap memories exhaust while deploying, besides if you're running tomcat as a service try increase your java runtime parameters: goto control panel - java; 


Regards
Gibril Gómez

--
OpenMRS Implementers: http://om.rs/implist
Post: implem...@openmrs.org | Unsubscribe: implementers...@openmrs.org
Manage your OpenMRS subscriptions: http://om.rs/id
 
Visit OpenMRS Talk at http://om.rs/talk for chat and discussions!

To unsubscribe from this group and stop receiving emails from it, send an email to implementers...@openmrs.org.

Alan Simmons

unread,
Feb 18, 2015, 12:16:20 PM2/18/15
to implem...@openmrs.org, mgoo...@pih.org
Everyone,

I believe that I have resolved the problem--at least, I resolved the error that was being thrown with the logic module. I believe that the initial setup of OpenMRS for 1.9.9 running under Windows (8 definitely) has a defect that deletes the TOMCAT_HOME\webapps\openmrs\WEB-INF\bundledModules folder that contains logic-0.5.2.omod. This problem appears to have nothing to do with permgen settings.

As I mentioned in my original email, I have always been able to deploy 1.9.8. After all of my recent troubles, I decided to back out my 1.9.9 deployment and perform a fresh deployment of 1.9.8, to see how it configured the logic module. After deploying the 1.9.8 WAR, I found the logic module in the bundledModules folder. Note that this is not the modules folder where OpenMRS stores any omods that you add via Administration\Manage Modules: that folder is in C:\Application Data\openmrs\modules on Windows and in ~/.OpenMRS/modules in Linux.

I copied the bundledModules folder to a location outside of the Tomcat folder tree and then deployed 1.9.9 over the 1.9.8 deployment. To do this, I did the following:

1. Stopped Tomcat.
2. Cleared the Tomcat temp and work folders.
3. Deleted the openmrs folder from webapps.
4. Deleted the 1.9.8 openmrs.war from webapps.
5. Copied to the webapps folder the 1.9.9 openmrs.war.
6. Started Tomcat.
7. Started openmrs.

OpenMRS failed to load as before, throwing the same error about not being able to start the logic module. I checked the TOMCAT_HOME\webapps\openmrs\WEB-INF folder: the bundledModules folder was gone.

I stopped Tomcat, copied the version of the bundledModules folder that I had saved from the 1.9.8 deployment over to the WEB-INF folder, and then restarted Tomcat. This time, OpenMRS started with an error (blank page with red text) about not being able to load a class; however, when I went back to tomcat manager and clicked the openmrs link again, OpenMRS started without an error. In the Administration\Manage Modules activity, I now see the logic 0.5.2 module, shown with a lock icon.

I would like to thank everyone for their suggestions and support. As far as I can tell, this problem is resolved for me; however, I still think that we should fix the problem with the installer for 1.9.9.

I know that I can deploy 1.9.8 on a Windows 8.1 machine without a problem. Gibril stated that he was able to deploy 1.10.0 on a Windows 8.1, so I am confident that the problem is with the 1.9.9 installer. If someone else could try to deploy 1.9.9 on a Windows 8 (or probably even 7) machine, they could see if the problem is replicable.

Regards,

Alan


On Tuesday, February 17, 2015 at 10:12:42 AM UTC-6, Mark Goodrich wrote:
Hello all--

...
Reply all
Reply to author
Forward
0 new messages