dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #43212
Re: DHIS 2 failure to start
Hi Calle,
sounds like a corrupt WAR file. Did you try downloading a fresh WAR file
from http://ci.dhis2.org/ , and clear out any existing folders under tomcat
> webapps directory ?
regards,
Lars
On Thu, Feb 11, 2016 at 4:28 PM, Calle Hedberg <calle.hedberg@xxxxxxxxx>
wrote:
> Hi,
>
> I've been battling with a serious problem for some days now, after a DHIS
> 2 session crashed - presumably due to external reasons like a power
> fluctuation or something. I went out for a while after starting that
> process - when I got back, I had a black screen of death with a message
> about partition table problem. Turned out that message was caused by Win7
> boot sequence having changed, so easy to fix - but a subsequent hard disk
> partition scan did indicate a number of file fragments etc that were
> cleaned out.
>
> DHIS 2 refused to start after that, and it seems like at least one of the
> problems was that the PostgreSQL connection pool somehow had become
> damaged (or Hibernate).
>
> So I completely uninstalled PostgreSQL 9.5, Java (both 7 and 8), and
> Tomcat, even cleaning up the registry of relevant keys and references, and
> then re-installed pgSQL 9.5, Java 7-79, and Tomcat 8.0.30. That cleared up
> some of the error messages, but DHIS still refuse to start. The tomcat log
> indicates a SEVERE error just after exploding the war file, and the
> catalina log looks as follows (war file is 2.21)
>
> I have no idea what
> "Exception fixing docBase for context [/dhis] java.util.zip.ZipException:
> invalid CEN header (bad signature)"
> actually means. The war file is the same as before, so it looks like
> something else got corrupted during that crash. But WHAT?
>
> Any pointers as to what I need to repair or re-install would be
> appreciated....
>
> Regards
> Calel
>
> 11-Feb-2016 11:48:43.677 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
> archive C:\Program Files (x86)\Apache Software Foundation\Tomcat
> 8.0\webapps\dhis.war
> 11-Feb-2016 11:48:43.717 SEVERE [localhost-startStop-1]
> org.apache.catalina.startup.ContextConfig.beforeStart Exception fixing
> docBase for context [/dhis]
> java.util.zip.ZipException: invalid CEN header (bad signature)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at java.util.jar.JarFile.<init>(Unknown Source)
> at java.util.jar.JarFile.<init>(Unknown Source)
> at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
> at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
> at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
> at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
> at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)
> at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:130)
> at
> org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:618)
> at
> org.apache.catalina.startup.ContextConfig.beforeStart(ContextConfig.java:744)
> at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
> at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1795)
> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
>
> 11-Feb-2016 11:48:43.727 SEVERE [localhost-startStop-1]
> org.apache.catalina.core.ContainerBase.addChildInternal
> ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/dhis]]
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
> at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1795)
> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component [org.apache.catalina.webresources.StandardRoot@1422757]
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> at
> org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4928)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5058)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> ... 10 more
> Caused by: org.apache.catalina.LifecycleException: Failed to initialize
> component [org.apache.catalina.webresources.JarResourceSet@a62ac5]
> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
> at
> org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:690)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> ... 13 more
> Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException:
> invalid CEN header (bad signature)
> at
> org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96)
> at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
> ... 16 more
> Caused by: java.util.zip.ZipException: invalid CEN header (bad signature)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at java.util.jar.JarFile.<init>(Unknown Source)
> at java.util.jar.JarFile.<init>(Unknown Source)
> at
> org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88)
> ... 17 more
>
> *******************************************
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedberg@xxxxxxxxx
>
> Skype: calle_hedberg
>
> *******************************************
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
--
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org <https://www.dhis2.org/>
References