Migrating YouTrack to a new server

We currently have YouTrack on a Windows system, we now need to migrate YouTrack to a linux system. What steps do we need to carry out? Can we simply copy over the database from the Windows systems or is there a migration wizard that allows us to point the Linux instance at the Windows instance an import all issues and users?

Any advice on this would be great.

Cheers

6 comments
Comment actions Permalink

Just copy the database files.

0
Comment actions Permalink

Hi!

We use youtrack project on YouTrack :: Hosted server. But now we want to use our own youtrack server.

We use Caucho Resin 3.1.11 to run youtrack.

I follow the instruction "Restoring Database from a Backup", but when I unpack database and start resin - I recieve next exception:

500 Servlet Exception  [show] javax.servlet.ServletException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transientEntityStore' defined in file [/usr/local/resin/webapps/youtrack/WEB-INF/classes/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 [/usr/local/resin/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 [/usr/local/resin/webapps/youtrack/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: Can't get lock. Release previous lock.  javax.servlet.ServletException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transientEntityStore' defined in file [/usr/local/resin/webapps/youtrack/WEB-INF/classes/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 [/usr/local/resin/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 [/usr/local/resin/webapps/youtrack/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: Can't get lock. Release previous lock.      at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:771)      at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:94)      at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:92)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)      at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:133)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)      at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)      at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)      at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)      at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)      at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)      at java.lang.Thread.run(Thread.java:662) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transientEntityStore' defined in file [/usr/local/resin/webapps/youtrack/WEB-INF/classes/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 [/usr/local/resin/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 [/usr/local/resin/webapps/youtrack/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: 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.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:70)      at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:833)      at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:735)      at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:94)      at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:92)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)      at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:133)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)      at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)      at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)      at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)      at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)      at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)      at java.lang.Thread.run(Thread.java:662) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistentEntityStore' defined in file [/usr/local/resin/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 [/usr/local/resin/webapps/youtrack/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: Can't get lock. Release previous lock. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistentDataEnvironment' defined in file [/usr/local/resin/webapps/youtrack/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: Can't get lock. Release previous lock.      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:823)      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)      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)      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:70)      at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:833)      at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:735)      at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:94)      at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:92)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)      at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:133)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)      at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)      at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)      at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)      at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)      at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)      at java.lang.Thread.run(Thread.java:662) 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: Can't get lock. Release previous lock.      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)      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:823)      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)      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)      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:70)      at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:833)      at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:735)      at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:94)      at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:92)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)      at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:133)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)      at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)      at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)      at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)      at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)      at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)      at java.lang.Thread.run(Thread.java:662) Caused by: jetbrains.exodus.exceptions.ExodusException: Exodus 1.0.0: Can't get lock. Release previous lock.      at jetbrains.exodus.log.Log.tryLock(Log.java:564)      at jetbrains.exodus.log.Log.(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.(Environment.java:60)      at sun.reflect.GeneratedConstructorAccessor57.newInstance(Unknown Source)      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:823)      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)      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)      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:70)      at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:833)      at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:735)      at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:94)      at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:92)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)      at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:133)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)      at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)      at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)      at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)      at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)      at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)      at java.lang.Thread.run(Thread.java:662)

What am I doing wrong?

Thanks

0
Comment actions Permalink

I tried to migrate using youtrack2youtrack.py, but again get errors.

This is output from  youtrack2youtrack.py script:

Traceback (most recent call last):   File "youtrack2youtrack.py", line 223, in      main()   File "youtrack2youtrack.py", line 33, in main     youtrack2youtrack(source_url, source_login, source_password, target_url, target_login, target_password, project_ids)   File "youtrack2youtrack.py", line 75, in youtrack2youtrack     print target.createUser(lead)   File "/usr/src/python/youtrack/connection.py", line 162, in createUser     self.importUsers([user])   File "/usr/src/python/youtrack/connection.py", line 188, in importUsers     return self._reqXml('PUT', '/import/users', xml, 400).toxml()   File "/usr/src/python/youtrack/connection.py", line 46, in _reqXml     response, content = self._req(method, url, body, ignoreStatus)   File "/usr/src/python/youtrack/connection.py", line 39, in _req     raise youtrack.YouTrackException(url, response, content) youtrack.YouTrackException: Error for [/import/users]: 500: Internal Server Error

20:17:37,876 INFO  [MainServlet                   ] [st/import/users] Start processing request /rest/import/users 20:17:37,878 DEBUG [BaseApplication               ] [st/import/users] Created bean for session variables 20:17:38,025 ERROR [RestRequestProcessor          ] [st/import/users] Error while rest request processing java.lang.IllegalArgumentException: property "javax.xml.stream.isReplacingEntityReferences" not supported      at com.caucho.xml.stream.XMLInputFactoryImpl.setProperty(XMLInputFactoryImpl.java:265)      at com.sun.jersey.core.impl.provider.xml.XMLStreamReaderContextProvider.getInstance(XMLStreamReaderContextProvider.java:63)      at com.sun.jersey.core.impl.provider.xml.XMLStreamReaderContextProvider.getInstance(XMLStreamReaderContextProvider.java:48)      at com.sun.jersey.core.impl.provider.xml.ThreadLocalSingletonContextProvider$1.initialValue(ThreadLocalSingletonContextProvider.java:61)      at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)      at java.lang.ThreadLocal.get(ThreadLocal.java:131)      at com.sun.jersey.core.impl.provider.xml.ThreadLocalSingletonContextProvider$2.getValue(ThreadLocalSingletonContextProvider.java:74)      at com.sun.jersey.core.impl.provider.entity.XMLListElementProvider.getXMLStreamReader(XMLListElementProvider.java:115)      at com.sun.jersey.core.provider.jaxb.AbstractListElementProvider.readFrom(AbstractListElementProvider.java:197)      at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:410)      at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:137)      at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:43)      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:126)      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:173)      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:208)      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:115)      at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:73)      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:115)      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:67)      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:771)      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:736)      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:727)      at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:368)      at jetbrains.mps.webr.rpc.rest.runtime.RestRequestProcessor.processRequest(RestRequestProcessor.java:100)      at jetbrains.mps.webr.runtime.servlet.MainServlet.processRequest(MainServlet.java:198)      at jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:93)      at jetbrains.mps.webr.runtime.servlet.MainServlet.doPut(MainServlet.java:171)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:156)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)      at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)      at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:92)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)      at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:170)      at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)      at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)      at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)      at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)      at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)      at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)      at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)      at java.lang.Thread.run(Thread.java:662) 20:17:38,126 INFO  [MainServlet                   ] [est: /Exception] Start processing request /Exception 20:17:38,156 INFO  [ResourceBundle                ] [est: /Exception] Create new resource budle [text/css] 20:17:38,186 INFO  [ResourceBundle                ] [est: /Exception] Create new resource budle [text/javascript

Will be grateful for any help.

Thanks.

0
Comment actions Permalink

Hello, Yuriy!

Looks like your problem is not in database backup, but in running
YouTrack under Resin, so using python script couldn't help. We'll
investigate your problem and let you know how to solve it as soon as
possible.

0
Comment actions Permalink

Yuriy, please, ensure that all the field in your database directory (which contains backup), are accessible by user, which YouTrack is running under.

Also, can you say, is there xd.lck file, when you extrac your backup?

0
Comment actions Permalink

Yuriy, please, ensure that all the field in your database directory (which contains backup), are accessible by user, which YouTrack is running under.

I'm dummy! I unpacked backup under root and forgot to change owner.

After changing owner to resin  - all works fine.

Thank you very much.

0

Please sign in to leave a comment.