YouTrack no longer working after upgrading to 3.0 (Exodus 1.0.0: Failed to lock file xd.lck.)

We need your help!

We've just upgraded our YouTrack installation to Version 3.0. The database converted successfully, running moses.jar. However, when we try to use YouTrack, we only see a blank page.

errors.log shows:

Constructor threw exception; nested exception is jetbrains.exodus.exceptions.ExodusException: Exodus 1.0.0: Failed to lock file xd.lck.

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.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

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:32)

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.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)

at webr.framework.controller.WebClasspathXmlServiceLocator.getBean(WebClasspathXmlServiceLocator.java:104)

at jetbrains.springframework.configuration.runtime.ServiceLocator.getBean(ServiceLocator.java:55)

at jetbrains.charisma.persistent.AddDNQSessionListenerServiceLocatorListener.onAfterInit(AddDNQSessionListenerServiceLocatorListener.java:15)

at jetbrains.springframework.configuration.runtime.ServiceLocator.fireLocalAfterInit(ServiceLocator.java:101)

at jetbrains.charisma.main.ServletImpl.init(ServletImpl.java:67)

at javax.servlet.GenericServlet.init(GenericServlet.java:211)

at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431)

at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:330)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:510)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1351)

at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)

at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:111)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)

at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)

at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:133)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:514)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)

at org.eclipse.jetty.server.Server.handle(Server.java:352)

at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)

at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1066)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)

at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)

at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)

at java.lang.Thread.run(Thread.java:636)

Caused by: 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-3.0.jar--any-/webapp/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 [/home/youtrack/.youtrack/work/jetty-0.0.0.0-8080-youtrack-3.0.jar--any-/webapp/WEB-INF/classes/jetbrains/charisma/persistent/exodusDataEnvironmentConfiguration.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [jetbrains.exodus.env.Environment]: Constructor threw exception; nested exception is jetbrains.exodus.exceptions.ExodusException: Exodus 1.0.0: Failed to lock file xd.lck.

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:32)

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)

... 51 more

Caused by: 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-3.0.jar--any-/webapp/WEB-INF/classes/jetbrains/charisma/persistent/exodusDataEnvironmentConfiguration.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [jetbrains.exodus.env.Environment]: Constructor threw exception; nested exception is jetbrains.exodus.exceptions.ExodusException: Exodus 1.0.0: Failed to lock file xd.lck.

at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)

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:32)

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)

... 66 more

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [jetbrains.exodus.env.Environment]: Constructor threw exception; nested exception is jetbrains.exodus.exceptions.ExodusException: Exodus 1.0.0: Failed to lock file xd.lck.

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)

at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)

at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)

... 78 more

Caused by: jetbrains.exodus.exceptions.ExodusException: Exodus 1.0.0: Failed to lock file xd.lck.

at jetbrains.exodus.io.LockingManager.lock(LockingManager.java:59)

at jetbrains.exodus.io.FileDataWriter.lock(FileDataWriter.java:40)

at jetbrains.exodus.log.Log.tryLock(Log.java:563)

at jetbrains.exodus.log.Log.<init>(Log.java:55)

at jetbrains.exodus.env.Environment.createLog(Environment.java:111)

at jetbrains.exodus.env.Environment.createDefaultLog(Environment.java:92)

at jetbrains.exodus.env.Environment.<init>(Environment.java:60)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:532)

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)

... 80 more

Caused by: java.io.FileNotFoundException: /home/youtrack/teamsysdata/xd.lck (Permission denied)

at java.io.RandomAccessFile.open(Native Method)

at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)

at jetbrains.exodus.io.LockingManager.lock(LockingManager.java:39)

... 91 more

Any help is greatly appreciated.

1 comment
Comment actions Permalink

Hello Ralf,

seems this is your case: http://devnet.jetbrains.net/thread/305062

Sergey.

0

Please sign in to leave a comment.