Backup IO exception on startup with .lock in target directory

There is a ".lock" file in windows at data path which is currently used by another process at application startup so i get an IOException (in eclipse and PROD environment too).

INFO AApplication         Backing up application data dir: C:\Documents and Settings\lmolnar\webapp into C:\Documents and Settings\lmolnar\webapp\backups\webapp-data_2012-08-31_10-36-33.zip | app:webapp
INFO AApplication             Zipping C:\Documents and Settings\lmolnar\webapp\.lock                                          | app:webapp

    ERROR AApplication           Backup error:  
java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: A folyamat nem fér hozzá a fájlhoz, mert egy másik folyamat zárolta a fájl egy részét
    at ilarkesto.io.IO.zip(IO.java:863)
    at ilarkesto.io.IO.zip(IO.java:836)
    at ilarkesto.io.IO.zip(IO.java:827)
    at ilarkesto.di.app.AApplication.backupApplicationDataDir(AApplication.java:164)
    at scrum.server.ScrumWebApplication.backupApplicationDataDir(ScrumWebApplication.java:365)
    at ilarkesto.di.app.AApplication.start(AApplication.java:110)
    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:470)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:95)

You can resolve it by adding a filter to AApplication.backupApplicationDataDir().accept

if (name.indexOf("lock") >= 0) return false;

Statement from Kunagi Team

This is a bug which affects all users of the windows version. We will publish a bugfix release for this in the next days.

If you need a quicker solution, you can not the Windows .exe version of Kunagi. You have to install Apache Tomcat 6 yourself and then deploy kunagi.war.

Status

Issue is closed for Release 0.24.1.

Comments

Post a comment



optional
optional