Can't restore from backup

I migrated to another server and archived 2 last youtrack backups from teamsysdata-backup. I installed youtrack, all worked fine. Then I tried copy backup to teamsysdata directory and got an errors in the log:

ERROR [ServletImpl         ] [init servlet        ] [] Can't init servlet
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transientEntityStore' defined in file [/home/youtrack/.youtrack/work/jetty-0.0.0.0-8080-youtrack-5.2.5-8823.jar--any-/webapp/WEB-INF/classes/jetbrains-spring-configuration/jetbrains/charisma/persistent/storeConfigurationDatabase.xml]: Cannot resolve reference to bean 'persistentEntityStore' while setting bean property 'persistentStore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistentEntityStore' defined in file [/home/youtrack/.youtrack/work/jetty-0.0.0.0-8080-youtrack-5.2.5-8823.jar--any-/webapp/WEB-INF/classes/jetbrains-spring-configuration/jetbrains/charisma/persistent/storeConfigurationDatabase.xml]: Cannot resolve reference to bean 'persistentDataEnvironment' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistentDataEnvironment' defined in file [/home/youtrack/.youtrack/work/jetty-0.0.0.0-8080-youtrack-5.2.5-8823.jar--any-/webapp/WEB-INF/classes/jetbrains-spring-configuration/jetbrains/charisma/persistent/exodusDataEnvironmentConfiguration.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static jetbrains.exodus.database.persistence.Environment jetbrains.exodus.env.Environments.newInstance(java.lang.String,jetbrains.exodus.database.persistence.EnvironmentConfig)] threw exception; nested exception is jetbrains.exodus.exceptions.ExodusException: Unexpected file length, address = 0
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transientEntityStore' defined in file [/home/youtrack/.youtrack/work/jetty-0.0.0.0-8080-youtrack-5.2.5-8823.jar--any-/webapp/WEB-INF/classes/jetbrains-spring-configuration/jetbrains/charisma/persistent/storeConfigurationDatabase.xml]: Cannot resolve reference to bean 'persistentEntityStore' while setting bean property 'persistentStore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistentEntityStore' defined in file [/home/youtrack/.youtrack/work/jetty-0.0.0.0-8080-youtrack-5.2.5-8823.jar--any-/webapp/WEB-INF/classes/jetbrains-spring-configuration/jetbrains/charisma/persistent/storeConfigurationDatabase.xml]: Cannot resolve reference to bean 'persistentDataEnvironment' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistentDataEnvironment' defined in file [/home/youtrack/.youtrack/work/jetty-0.0.0.0-8080-youtrack-5.2.5-8823.jar--any-/webapp/WEB-INF/classes/jetbrains-spring-configuration/jetbrains/charisma/persistent/exodusDataEnvironmentConfiguration.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static jetbrains.exodus.database.persistence.Environment jetbrains.exodus.env.Environments.newInstance(java.lang.String,jetbrains.exodus.database.persistence.EnvironmentConfig)] threw exception; nested exception is jetbrains.exodus.exceptions.ExodusException: Unexpected file length, address = 0
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)

I tried it on Ubuntu 14.04 x64 and Ubuntu 12.04 x64 on both youtrack dumps.
Is it possible to restore database?
2 comments
Comment actions Permalink
I created new bug in the tracker - https://youtrack.jetbrains.com/issue/JT-26759
Is anybody have solutions?
0
Comment actions Permalink
I removed teamsysdata/* before coping backup and all works fine!
0

Please sign in to leave a comment.