Not able to restore database on fresh install of youtrack

Hi,

I am in the process of migrating from youtrack 5.0.3 to youtrack 6.

Currently I am trying to restore our current database in a sandbox youtrack 5.0.3 environment. Afterwards I want to migrate the database to youtrack 6.

I just:
  • installed youtrack 5.0.3 on my laptop,
  • stopped the youtrack service
  • configured the database location to C:\YoutrackDB
  • extracted the backup to C:\YoutrackDB
    - restarted the service
    &nbsp- restarted the service
    When I open a browser and navigate to localhost: 8080 I get the following exception

java.lang.ClassCastException: Role: id = 25-0[up-to-date]' cannot be cast to Entity of type 'User'
    jetbrains.teamsys.dnq.runtime.util.DnqUtils.cast(DnqUtils.java:223)
    jetbrains.charisma.main.CurrentUserResidence.getResident(CurrentUserResidence.java:15)
    jetbrains.charisma.main.YouTrackInit$20$1.invoke(YouTrackInit.java:350)
    jetbrains.teamsys.dnq.runtime.txn._Txn.run(_Txn.java:18)
    jetbrains.charisma.main.YouTrackInit$20.startRequestProcessing(YouTrackInit.java:348)
    webr.framework.controller.BaseApplication$3.visit(BaseApplication.java:92)
    webr.framework.controller.BaseApplication$3.visit(BaseApplication.java:90)
    jetbrains.mps.webr.runtime.servlet.MainServlet.notifyListeners(MainServlet.java:59)
    webr.framework.controller.BaseApplication.notifyListeners(BaseApplication.java:123)
    webr.framework.controller.BaseApplication.startRequestProcessing(BaseApplication.java:90)
    jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:106)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)
    org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:118)
    org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)
    org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:242)

What am I doing wrong?

Many thanks in advance.

Best regards, Bas
1 comment
Comment actions Permalink
Hi again,

Tried to upgrade youtrack 6 in one go, and that does work fine.

This issue can be closed.

Best regards. Bas
0

Please sign in to leave a comment.