lock db after power loss

  • 0
  • 7

After power loss YouTrac 5.0 wont start
error logs:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistentEntityStore' defined in file http://forum.jetbrains.com/var/lib/tomcat7/webapps/youtrack/WEB-INF/classes/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 http://forum.jetbrains.com/var/lib/tomcat7/webapps/youtrack/WEB-INF/classes/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: Can't get lock. Release previous lock.
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
 at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:479)
 at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
 at org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:302)
 at webr.framework.controller.WebLocalScope.get(WebLocalScope.java:33)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 37 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistentDataEnvironment' defined in file http://forum.jetbrains.com/var/lib/tomcat7/webapps/youtrack/WEB-INF/classes/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: Can't get lock. Release previous lock.
 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
 at org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:302)
 at webr.framework.controller.WebLocalScope.get(WebLocalScope.java:33)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 52 more
Caused by: 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: Can't get lock. Release previous lock.
 at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
 at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
... 64 more
Caused by: jetbrains.exodus.exceptions.ExodusException: Can't get lock. Release previous lock.
 at jetbrains.exodus.log.Log.tryLock(Log.java:680)
 at jetbrains.exodus.log.Log.tryLock(Log.java:680)
 at jetbrains.exodus.log.Log.<init>(Log.java:72)
 at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:75)
 at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:69)
 at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:49)
 at jetbrains.exodus.env.Environments.newInstance(Environments.java:19)
 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:601)
 at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
... 65 more