# Process to update the demo server

**URL:** <https://talk.openmrs.org/t/process-to-update-the-demo-server/8692>\
**Category:** Infrastructure\
**Created:** [November 14, 2016, 5:28pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692 "2016-11-14T17:28:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [November 14, 2016, 5:28pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/1 "2016-11-14T17:28:59Z")

</div>

Per [Reference Application 2.5 Released](https://talk.openmrs.org/t/reference-application-2-5-released/8655), Reference Application 2.5 has been released, and we have to get it up on [demo.openmrs.org](http://demo.openmrs.org).

I understand there was some confusion about who will do this (and how). I presume that the infrastructure team owns and maintains [demo.openmrs.org](http://demo.openmrs.org); or does someone else?

In practice I guess that (1) we need to deploy the new code, and (2) we need a new database snapshot so that on the (daily?) database reset, we go to the right state.

@pascal, @dkayiwa

---

<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:** [November 14, 2016, 10:03pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/2 "2016-11-14T22:03:35Z")

</div>

I see some changes on the downloads page and i do not know who is actually making them. I just wanted to add that the latest platform release is 2.0.1 instead of 1.11.6 or 2.0.0

---

<div class="post-metadata">

**Author:** ![pascal](https://talk.openmrs.org/letter_avatar/pascal/32/5_5575768a8748004e209b776fc1b2916d.png) [@pascal](https://talk.openmrs.org/u/pascal)\
**Post date:** [November 15, 2016, 5:33pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/3 "2016-11-15T17:33:09Z")

</div>

I believe @jeffneiman made the changes to the web page, and it looks like this CI plan might be relevant: [https://ci.openmrs.org/browse/DEMO](https://ci.openmrs.org/browse/DEMO).

---

<div class="post-metadata">

**Author:** ![cintiadr](https://talk.openmrs.org/user_avatar/talk.openmrs.org/cintiadr/32/8081_2.png) [@cintiadr](https://talk.openmrs.org/u/cintiadr)\
**Post date:** [November 15, 2016, 8:59pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/4 "2016-11-15T20:59:25Z")

</div>

I don’t know if there was a ticket on helpdesk for that (I can pretty much only see unresolved cases), so I don’t know any history.

This is everything I’ve found about the demo server:

- [https://ci.openmrs.org/browse/DEMO-DEMODB](https://ci.openmrs.org/browse/DEMO-DEMODB) runs twice every day (an arbitrary cron expression), and in theory cleans the database. I don’t particularly know if it works, but it’s very green 😃
- [https://ci.openmrs.org/deploy/viewEnvironment.action?id=78839810](https://ci.openmrs.org/deploy/viewEnvironment.action?id=78839810) appears to deploy demo-stg
- [https://ci.openmrs.org/deploy/viewEnvironment.action?id=45056002](https://ci.openmrs.org/deploy/viewEnvironment.action?id=45056002) appears to deploy demo prod

What exactly is preventing me (or anyone with enough permissions, of course) to hit the button and deploy in Bamboo?

As per whose responsibility is that, I don’t particularly mind, but really it should be OK for release managers or anyone with enough knowledge to run the Bamboo deploy (if that’s working, of course). It’s better than waiting for us 😉

I updated our wiki to reflect those builds too.

---

<div class="post-metadata">

**Author:** ![taremwatadeo](https://talk.openmrs.org/user_avatar/talk.openmrs.org/taremwatadeo/32/17685_2.png) [@taremwatadeo](https://talk.openmrs.org/u/taremwatadeo)\
**Post date:** [November 15, 2016, 10:59pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/5 "2016-11-15T22:59:29Z")

</div>

I have tried to deploy the ref-app 2.5 but after successful deploy , i get 404 when i try [demo.openmrs.org/openmrs](http://demo.openmrs.org/openmrs). which has forced me to redeploy ref-app 2.4 and it works perfectly well, anything wrong.@dkayiwa i was deploying the same build that was deployed to the UAT

---

<div class="post-metadata">

**Author:** ![jeffneiman](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jeffneiman/32/3590_2.png) [@jeffneiman](https://talk.openmrs.org/u/jeffneiman)\
**Post date:** [November 15, 2016, 11:20pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/6 "2016-11-15T23:20:23Z")

</div>

I updated the main webpage, but I don’t have access to [demo.openmrs.org](http://demo.openmrs.org).

---

<div class="post-metadata">

**Author:** ![taremwatadeo](https://talk.openmrs.org/user_avatar/talk.openmrs.org/taremwatadeo/32/17685_2.png) [@taremwatadeo](https://talk.openmrs.org/u/taremwatadeo)\
**Post date:** [November 15, 2016, 11:25pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/7 "2016-11-15T23:25:02Z")

</div>

@jeffneiman are you the one who updated the downloads page? The current platform release is 2.0.1 not 2.0.0 and also ref-app 2.5 is built on platform 2.0.1 not 1.11.6

---

<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:** [November 16, 2016, 8:17am UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/8 "2016-11-16T08:17:49Z")

</div>

@taremwatadeo isn’t refapp 2.5 already released? 🙂

---

<div class="post-metadata">

**Author:** ![cintiadr](https://talk.openmrs.org/user_avatar/talk.openmrs.org/cintiadr/32/8081_2.png) [@cintiadr](https://talk.openmrs.org/u/cintiadr)\
**Post date:** [November 16, 2016, 10:18am UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/9 "2016-11-16T10:18:47Z")

</div>

Problem with demo is the version of java installed. It has java 7, and it’s complaining about not having java 8 when starting.

I’m fairly sure we have a smoke test set somewhere, I can replicate that to demo deployment. Also I can print the tomcat logs to the build logs in case it fails.

But on the meanwhile, I have to discover how exactly we install java in demo 😃

---

<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:** [November 16, 2016, 3:11pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/10 "2016-11-16T15:11:11Z")

</div>

I guess by now you have Java upgraded. 😄

---

<div class="post-metadata">

**Author:** ![taremwatadeo](https://talk.openmrs.org/user_avatar/talk.openmrs.org/taremwatadeo/32/17685_2.png) [@taremwatadeo](https://talk.openmrs.org/u/taremwatadeo)\
**Post date:** [November 16, 2016, 11:28pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/11 "2016-11-16T23:28:50Z")

</div>

@dkayiwa refapp 2.5 is already released! i just said i was trying to deploy to the demo server the same build you had deployed on UAT

---

<div class="post-metadata">

**Author:** ![cintiadr](https://talk.openmrs.org/user_avatar/talk.openmrs.org/cintiadr/32/8081_2.png) [@cintiadr](https://talk.openmrs.org/u/cintiadr)\
**Post date:** [November 17, 2016, 9:29am UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/12 "2016-11-17T09:29:36Z")

</div>

Well, I broke it 😃

I’ve installed jdk8, restart tomcat in stage, the initial page loaded, did some database migrations.

I thought it was good and fine, but I had the following problem in demo:

2016-11-17 03:46:42,980 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1512 2016-11-17 03:46:42,984 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1513 2016-11-17 03:46:42,989 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1514 2016-11-17 03:46:42,993 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1517 2016-11-17 03:46:42,997 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1518 2016-11-17 03:46:43,001 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1519 2016-11-17 03:46:43,005 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1520 2016-11-17 03:46:43,009 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1521 2016-11-17 03:46:43,013 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1522 2016-11-17 03:46:43,017 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1523 2016-11-17 03:46:43,022 [pool-3-thread-1] INFO conf.BootStrap - Generated new download URL for Release id=1524 2016-11-17 03:46:46,831 [pool-3-thread-1] INFO conf.BootStrap - Performing bulk index 2016-11-17 03:47:29,562 [pool-3-thread-1] INFO conf.BootStrap - Starting mirror service Nov 17, 2016 3:47:30 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT Nov 17, 2016 3:47:30 AM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131) at org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60) at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209) at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119) at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2032) at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1923) at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1891) at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1877) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1270) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:345) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) … 10 more

Nov 17, 2016 3:47:30 AM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory /var/lib/tomcat7/webapps/ROOT java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:898) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

Nov 17, 2016 3:47:30 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler [“http-bio-8080”] Nov 17, 2016 3:47:30 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 265877 ms

Googling it, it appeared to be the version of tomcat we are using ([http://stackoverflow.com/questions/6751920/tomcat-7-servlet-3-0-invalid-byte-tag-in-constant-pool/12730059#12730059](http://stackoverflow.com/questions/6751920/tomcat-7-servlet-3-0-invalid-byte-tag-in-constant-pool/12730059#12730059) and [https://bz.apache.org/bugzilla/show\_bug.cgi?id=53735](https://bz.apache.org/bugzilla/show_bug.cgi?id=53735)), but it wasn’t not trivial to upgrade. Also, several other test servers have the same version of tomcat!

So, I changed tomcat back to JAVA 7, and rollback 2.4 again. Of course it didn’t come alive 😕 😕 😕

Well, I just decided to roll forward to 2.5 again, but the application is down now 😕

Can someone please help? @darius @raff @pascal @maany @burke

---

<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:** [November 17, 2016, 9:42am UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/13 "2016-11-17T09:42:11Z")

</div>

Am assuming that after upgrading to Java 8, you also changed tomcat to point to it. 🙂What is the exact version of tomcat that you are using?

---

<div class="post-metadata">

**Author:** ![cintiadr](https://talk.openmrs.org/user_avatar/talk.openmrs.org/cintiadr/32/8081_2.png) [@cintiadr](https://talk.openmrs.org/u/cintiadr)\
**Post date:** [November 17, 2016, 12:14pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/14 "2016-11-17T12:14:11Z")

</div>

LOL yes, tomcat is updated to use java 8, I made this mistake first!

7.0.26 tomcat, java 1.8.0\_111, JRE only, headless.

---

<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:** [November 17, 2016, 12:56pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/15 "2016-11-17T12:56:19Z")

</div>

@cintiadr is this in any way related to? [Apache Tomcat/7.0.26 fails to run OpenMRS Platform 2.0 with the legacyui module](https://talk.openmrs.org/t/apache-tomcat-7-0-26-fails-to-run-openmrs-platform-2-0-with-the-legacyui-module/8496)

---

<div class="post-metadata">

**Author:** ![cintiadr](https://talk.openmrs.org/user_avatar/talk.openmrs.org/cintiadr/32/8081_2.png) [@cintiadr](https://talk.openmrs.org/u/cintiadr)\
**Post date:** [November 17, 2016, 1:40pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/16 "2016-11-17T13:40:24Z")

</div>

Maybe… is it ok to uninstall it for demo? If so, how can I do without causing drama, just deleting a couple of files?

---

<div class="post-metadata">

**Author:** ![cintiadr](https://talk.openmrs.org/user_avatar/talk.openmrs.org/cintiadr/32/8081_2.png) [@cintiadr](https://talk.openmrs.org/u/cintiadr)\
**Post date:** [November 17, 2016, 1:42pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/17 "2016-11-17T13:42:12Z")

</div>

If that’s the case, it would explain why some other environments work on the same tomcat version

---

<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:** [November 17, 2016, 2:09pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/18 "2016-11-17T14:09:00Z")

</div>

I think its ok to uninstall it for demo.

---

<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:** [November 17, 2016, 3:32pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/19 "2016-11-17T15:32:22Z")

</div>

@taremwatadeo since 2.5 is already released, when you did run the release again, you ended up by releasing reference application version 2.6, which should not be, and hence these failures: [https://ci.openmrs.org/browse/RA-RA-2353](https://ci.openmrs.org/browse/RA-RA-2353). So i have deleted the 2.6 tag, which was a result of this, and changed from 2.7-SNAPSHOT back to 2.6-SNAPSHOT at [https://github.com/openmrs/openmrs-distro-referenceapplication/commit/f7bbdad023a8230bd58974769a6dc7ef661c26ac](https://github.com/openmrs/openmrs-distro-referenceapplication/commit/f7bbdad023a8230bd58974769a6dc7ef661c26ac)

---

<div class="post-metadata">

**Author:** ![taremwatadeo](https://talk.openmrs.org/user_avatar/talk.openmrs.org/taremwatadeo/32/17685_2.png) [@taremwatadeo](https://talk.openmrs.org/u/taremwatadeo)\
**Post date:** [November 17, 2016, 9:25pm UTC](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692/20 "2016-11-17T21:25:24Z")

</div>

sorry about that @dkayiwa my bad.

[Next page](https://talk.openmrs.org/t/process-to-update-the-demo-server/8692.md?page=2)
