Can't get Kunagi-data working.

Hi,

We are starting to use Kunagi. We had our userstories enterd, played the poker, ect.

I can not say what happend since (someone else was mingeling with the server) but our Kunagi-data directory doesn't work anymore. This means I can't login using the original user credentials (don't know the admin pass because of this) and I can't request the credentials, because Kunagi says the email addresses do not exist.

When I look in Kunagi-data dir I can see that our project is still there. I tried to do a fresh install of Kunagi and replace the new Kunagi-data with my old (Tomcat was down) yet no succes.

I would really like to acces my data again, are there any tips on how to check your Kunagi-data for corruption? or can someone help me with this? That would be highly appriciated,

Greatings Willem

Statement from Kunagi Team

If the kunagi-data would be corrupt, you would see error messages in the log file on startup.

First make sure Kunagi uses the data directory you think it does. During startup the used data directory is logged very clearly.

If you have lost your admin password, go to kunagi-data/entities/user. There is a xml file for every user. Find the one for your admin user. While Kunagi is stopped, edit the file and remove the password field. On startup Kunagi should give the default password to the user. This password should then be printed as a warning on the login page.

You can also have a look into the xml file in kunagi-data/entities/systemConfig. If you think there is something wrong, delete the file.

Don't forget to create a backup before modifying files.

Status

Issue is closed.

Comments

Wed, Jul 25, 2012, 21:34 by Willem

Dear Kunagi Team,

Thank you for you quick responce it is highly appreciated!

The tomcat catalina.out logs show an error for every file in /kunagi-data/entities/user (I checked it is the right kunagi-data dir). I should have included the logs I am sorry for that. This makes that the restetting the password has no effect (I did try though). Also I removed the systemConfigFile as you suggested with no effect. I still can't login as any user and no email registert is known...

here is my /kunagi-data/error.log:
--------------------------------------------------------------------------------
Wed, 25. July 2012, 15:21 ->
    FATAL AHttpServlet         Init failed: scrum.server.common.StartServlet ->
java.lang.RuntimeException: java.lang.RuntimeException: Application startup failed.
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:64)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.RuntimeException: Application startup failed.
    at ilarkesto.di.app.AApplication.start(AApplication.java:106)
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:58)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.RuntimeException: Application startup failed.
    at ilarkesto.di.app.AApplication.start(AApplication.java:106)
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:58)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.RuntimeException: Loading object from /usr/share/tomcat6/webapps/kunagi-data/entities/projectUserConfig/7d098967-5443-4537-8c05-d7a5a0b91d3e.xml failed
    at ilarkesto.persistence.FileEntityStore.load(FileEntityStore.java:243)
    at ilarkesto.persistence.DaoService.addDao(DaoService.java:49)
    at ilarkesto.persistence.DaoService.initialize(DaoService.java:167)
    at ilarkesto.di.app.AApplication.getDaoService(AApplication.java:342)
    at ilarkesto.di.app.AApplication.ensureIntegrity(AApplication.java:65)
    at scrum.server.ScrumWebApplication.ensureIntegrity(ScrumWebApplication.java:147)
    at ilarkesto.di.app.AApplication.start(AApplication.java:102)
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:58)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: com.thoughtworks.xstream.io.StreamException:  : Premature end of file.
    at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:105)
    at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:77)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)
    at ilarkesto.integration.xstream.XStreamSerializer.deserialize(XStreamSerializer.java:85)
    at ilarkesto.persistence.FileEntityStore.loadObject(FileEntityStore.java:265)
    at ilarkesto.persistence.FileEntityStore.load(FileEntityStore.java:241)
    at ilarkesto.persistence.DaoService.addDao(DaoService.java:49)
    at ilarkesto.persistence.DaoService.initialize(DaoService.java:167)
    at ilarkesto.di.app.AApplication.getDaoService(AApplication.java:342)
    at ilarkesto.di.app.AApplication.ensureIntegrity(AApplication.java:65)
    at scrum.server.ScrumWebApplication.ensureIntegrity(ScrumWebApplication.java:147)
    at ilarkesto.di.app.AApplication.start(AApplication.java:102)
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:58)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.xml.sax.SAXParseException; Premature end of file.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:98)
    at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:77)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)
    at ilarkesto.integration.xstream.XStreamSerializer.deserialize(XStreamSerializer.java:85)
    at ilarkesto.persistence.FileEntityStore.loadObject(FileEntityStore.java:265)
    at ilarkesto.persistence.FileEntityStore.load(FileEntityStore.java:241)
    at ilarkesto.persistence.DaoService.addDao(DaoService.java:49)
    at ilarkesto.persistence.DaoService.initialize(DaoService.java:167)
    at ilarkesto.di.app.AApplication.getDaoService(AApplication.java:342)
    at ilarkesto.di.app.AApplication.ensureIntegrity(AApplication.java:65)
    at scrum.server.ScrumWebApplication.ensureIntegrity(ScrumWebApplication.java:147)
    at ilarkesto.di.app.AApplication.start(AApplication.java:102)
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:58)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
 | app:kunagi
  

Wed, Jul 25, 2012, 21:39 by anonymous

One addictional note, if I try to create a user I get a white screen of death. the error.log shows:

Wed, 25. July 2012, 15:36 -> 
    FATAL AHttpServlet         POST failed: scrum.server.admin.LoginServlet -> 
java.lang.NullPointerException
    at scrum.server.admin.GUser.setEmail(GUser.java:273)
    at scrum.server.admin.UserDao.postUser(UserDao.java:34)
    at scrum.server.admin.LoginServlet.createAccount(LoginServlet.java:185)
    at scrum.server.admin.LoginServlet.onRequest(LoginServlet.java:67)
    at scrum.server.common.AHttpServlet.doPost(AHttpServlet.java:76)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:679)
 | app:kunagi > session:192.168.10.122

Thu, Jul 26, 2012, 09:46 by Witek (SM,T)

The problem seams to be that your Kunagi does fail to start at all. This causes that you can not login.

It fails because the user project config file 7d098967-5443-4537-8c05-d7a5a0b91d3e.xml in directory kunagi-data/entities/projectUserConfig is not valid XML. Please check this file. Perhaps you can correct it.

If not, you will have to delete it.

Please tell us what was wrong with that file.

Thu, Jul 26, 2012, 17:07 by anonymous

The file was 0 bytes big so I removed it, then there was a file in /entities/project/ called 7d098967-5443-4537-8c05-d7a5a0b91d3e.xml that was 0 bytes and caused the same error, so I removed it;-)

At this point I could login as atleast one user, but there where no projects shown. Looking at the error.log ther was also an empty file in the /entities/user that needed to be removed.

After an other restart, still no projects are shown. loggin in as admin showed only example data. Browsing through the files showed me no data of mine, except for config an user date. I have no clue what this other guy had done, so I am giving up on recovering my project..

Thank you very much for your help, even if the out come is sad I still highly appreciate it!

gr w

Post a comment



optional
optional