Unable to restore youtrack database of version 4.0.2 to 5.0.3

Hi,

I am using youtrack version 5.0.3.
Licence Number : fa210d1d87408e18c6cfb9e09991aa5f9781410fcf660e47a366fcf83d5d25085e4b41e7ffd54256424e32a3aac1d5ec7464d98421b1a3068c8642279d0e0d85cb2e569b0f20fc5174331e40fe2e09f4291d14d8058015a71ef2ab64c2847fc82f71e0038b4ebd53b7e0e4d6ec7348fe0a0598d8b78f253914aa4959a59eb997

I am unable to restore the database backup of 4.0.2 to 5.0.3.
I have created the backup directory to D:/Youtrack.

Error message which I am getting in catalina.log file is :
SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.jetbrains.teamsys.dnq.database.TransientEntityImpl
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.jetbrains.teamsys.dnq.database.TransientEntityImpl
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.jetbrains.teamsys.dnq.database.TransientEntityImpl
 at java.io.ObjectInputStream.readObject0(Unknown Source)
 at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
 at java.io.ObjectInputStream.readSerialData(Unknown Source)
 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
 at java.io.ObjectInputStream.readObject0(Unknown Source)
 at java.io.ObjectInputStream.readObject(Unknown Source)
 at java.util.HashMap.readObject(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
 at java.io.ObjectInputStream.readSerialData(Unknown Source)
 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
 at java.io.ObjectInputStream.readObject0(Unknown Source)
 at java.io.ObjectInputStream.readObject(Unknown Source)
 at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1470)
 at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:972)
 at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
 at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
 at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
 at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4396)
 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:546)
 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
 at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
 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:785)
 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:519)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.io.NotSerializableException: com.jetbrains.teamsys.dnq.database.TransientEntityImpl
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeObject(Unknown Source)
 at java.util.HashMap.writeObject(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeObject(Unknown Source)
 at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1546)
 at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:989)
 at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
 at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
 at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
 at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4611)
 at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
 at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1319)
 at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1290)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:323)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
 at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
 at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
 at org.apache.catalina.core.StandardService.stop(StandardService.java:587)
 at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:615)
 ... 6 more


Thanks
Dipankar
1 comment
Comment actions Permalink
Hello Dipankar,

Please, try to disable session persistence across Tomcat restarts.
In general, you may find tomcat_dir/conf/context.xml and an area:
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
prettyPrint();

Thank you.
0

Please sign in to leave a comment.