error 503

Dear all,

I tried to log in to dhis2-live today (version 2.22, database: postgresql), which worked fine on friday, and got an error 503 message. Here is log for when I type java -jar dhis2-live.jar in cmd:

C:\Users\Thomas Lavreys\Documents\dhis-live>java -jar dhis2-live.jar

  • INFO 14:07:19,508 Environment variable DHIS2_HOME: C:\Users\Thomas Lavreys\Documents\dhis-live\conf (TrayApp.java [main])

  • INFO 14:07:19,586 Initialising DHIS 2 Live… (TrayApp.java [main])

  • INFO 14:07:19,665 Loading DHIS 2 on port: 8082 (WebAppServer.java [main])

2016-01-25 14:07:19.680:INFO::main: Logging initialized @292ms

  • INFO 14:07:19,727 Setting DHIS 2 web app context to: /C:/Users/Thomas Lavreys/Documents/dhis-live/webapps/dhis (WebAppServer.java [main])

  • INFO 14:07:19,743 Lifecycle: server starting (TrayApp.java [Thread-2])

2016-01-25 14:07:19.758:INFO:oejs.Server:Thread-2: jetty-9.2.z-SNAPSHOT

2016-01-25 14:07:21.027:WARN:oejw.WebAppContext:Thread-2: Failed startup of context o.e.j.w.WebAppContext@951137{/,file:/C:/Users/Thomas%20Lavreys/Documents/dhis-live/webapps/dhis/,null}{/dhis}

java.lang.IllegalStateException: Duplicate fragment name: spring_web for jar:file:/C:/Users/Thomas%20Lavreys/Documents/dhis-live/webapps/dhis/WEB-INF/lib/spring-web-4.1.7.RELEASE.jar!/META-INF/web-fragment.xml and jar:file:/C:/Users/Thomas%20Lavreys/Documents/dhis-live/webapps/dhis/WEB-INF/lib/spring-web-4.1.9.RELEASE.jar!/META-INF/web-fragment.xml

at org.eclipse.jetty.webapp.MetaData.addFragment(MetaData.java:286)

at org.eclipse.jetty.webapp.FragmentConfiguration.findWebFragments(FragmentConfiguration.java:75)

at org.eclipse.jetty.webapp.FragmentConfiguration.preConfigure(FragmentConfiguration.java:44)

at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:462)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:498)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

at org.eclipse.jetty.server.Server.start(Server.java:387)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

at org.eclipse.jetty.server.Server.doStart(Server.java:354)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.hisp.dhis.WebAppServer.run(WebAppServer.java:92)

2016-01-25 14:07:21.137:INFO:oejs.ServerConnector:Thread-2: Started ServerConnector@19f84cc{HTTP/1.1}{0.0.0.0:8082}

2016-01-25 14:07:21.152:INFO:oejs.Server:Thread-2: Started @1763ms

  • INFO 14:07:21,157 Lifecycle: server started (TrayApp.java [Thread-2])

Since i read that this might have something to do with the database, last friday i did make a backup of my dhis2 db in postgresql (by rightclicking the db and then clicking on backup). Don’t know if that info might help.

Thanks in advance,

Thomas Lavreys
Maisha Consulting bvba
Bisschoppenhof 9
3150 Tildonk
Belgium
Tel: +32-16-850242
Cell phone: +32-474-71-76-41

Thomas, did you find any work-around?
Regards Franz-Josef

1 Like