Problems starting TeamCity Server

We are seeing following exception when we start the TeamCity server. We have set java maximum heap size to -Xmx1024m and still see the problem.

Any suggestion for additional log settings to help pin down the problem would be appreicated.


[2012-02-16 08:46:36,727]   INFO -   jetbrains.buildServer.SERVER - Loading history of VCS changes...
[2012-02-16 08:48:13,838]  ERROR -   jetbrains.buildServer.SERVER - Failed to load TeamCity configuration. Error processing query result by jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector$1@317d82 params:[], query: 'SELECT h.MODIFICATION_ID, h.USER_NAME, h.DESCRIPTION, h.CHANGE_DATE, h.VCS_ROOT_ID, h.VERSION, h.DISPLAY_VERSION, h.CHANGES_COUNT, h.REGISTER_DATE FROM vcs_history h'
java.lang.RuntimeException: Error processing query result by jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector$1@317d82 params:[], query: 'SELECT h.MODIFICATION_ID, h.USER_NAME, h.DESCRIPTION, h.CHANGE_DATE, h.VCS_ROOT_ID, h.VERSION, h.DISPLAY_VERSION, h.CHANGES_COUNT, h.REGISTER_DATE FROM vcs_history h'
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.processResultSet(GenericQuery.java:375)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.access$500(GenericQuery.java:27)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery$7.action(GenericQuery.java:358)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery$8.apply(GenericQuery.java:392)
    at jetbrains.buildServer.serverSide.db.DBFunctions.withDB(DBFunctions.java:2201)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.underPreparedStatement(GenericQuery.java:388)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.doExecuteQuery(GenericQuery.java:345)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.access$100(GenericQuery.java:27)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery$1.run(GenericQuery.java:106)
    at jetbrains.buildServer.serverSide.db.DBFacade$6.doInConnection(DBFacade.java:409)
    at jetbrains.buildServer.serverSide.db.DBFacade$7.doInConnection(DBFacade.java:433)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:342)
    at jetbrains.buildServer.serverSide.db.DBFacade._runSql(DBFacade.java:429)
    at jetbrains.buildServer.serverSide.db.DBFacade.runSql(DBFacade.java:407)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:109)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.ensureVcsHistoryLoaded(VcsModificationsSelector.java:43)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.getFromCache(VcsModificationsSelector.java:34)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.getFromCacheOrLoad(VcsModificationsSelector.java:16)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.getFromCacheOrLoad(VcsModificationsSelector.java:120)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.getBuildTypesModifications(VcsModificationsSelector.java:88)
    at jetbrains.buildServer.vcs.impl.DBVcsModificationHistory.loadModificationsInCache(DBVcsModificationHistory.java:134)
    at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsModificationHistory.loadModificationsInCache(SecuredVcsModificationHistory.java:34)
    at jetbrains.buildServer.serverSide.impl.BuildTypeChangesPrefetcher.start(BuildTypeChangesPrefetcher.java:4)
    at jetbrains.buildServer.web.impl.BuildServerConfigurator.setupBuildServer(BuildServerConfigurator.java:65)
    at jetbrains.buildServer.web.impl.BuildServerConfigurator.loadConfiguration(BuildServerConfigurator.java:50)
    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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
    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$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    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.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402)
    at jetbrains.buildServer.rootDispatcher.spring.WebDispatcherServlet.createWebApplicationContext(WebDispatcherServlet.java:1)
    at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316)
    at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282)
    at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.createServerServlet(TeamCityDispatcherServlet.java:476)
    at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.processStartupServerInternal(TeamCityDispatcherServlet.java:236)
    at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.processStartupServerSafe(TeamCityDispatcherServlet.java:333)
    at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.access$400(TeamCityDispatcherServlet.java:441)
    at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet$6.run(TeamCityDispatcherServlet.java)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
    at java.util.Arrays.copyOf(Unknown Source)
    at java.util.ArrayList.ensureCapacity(Unknown Source)
    at java.util.ArrayList.add(Unknown Source)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.readModification(VcsModificationsSelector.java:183)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.access$000(VcsModificationsSelector.java:112)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector$1.process(VcsModificationsSelector.java:4)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector$1.process(VcsModificationsSelector.java:6)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.processResultSet(GenericQuery.java:368)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.access$500(GenericQuery.java:27)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery$7.action(GenericQuery.java:358)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery$8.apply(GenericQuery.java:392)
    at jetbrains.buildServer.serverSide.db.DBFunctions.withDB(DBFunctions.java:2201)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.underPreparedStatement(GenericQuery.java:388)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.doExecuteQuery(GenericQuery.java:345)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.access$100(GenericQuery.java:27)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery$1.run(GenericQuery.java:106)
    at jetbrains.buildServer.serverSide.db.DBFacade$6.doInConnection(DBFacade.java:409)
    at jetbrains.buildServer.serverSide.db.DBFacade$7.doInConnection(DBFacade.java:433)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:342)
    at jetbrains.buildServer.serverSide.db.DBFacade._runSql(DBFacade.java:429)
    at jetbrains.buildServer.serverSide.db.DBFacade.runSql(DBFacade.java:407)
    at jetbrains.buildServer.serverSide.db.queries.GenericQuery.execute(GenericQuery.java:109)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.ensureVcsHistoryLoaded(VcsModificationsSelector.java:43)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.getFromCache(VcsModificationsSelector.java:34)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.getFromCacheOrLoad(VcsModificationsSelector.java:16)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.getFromCacheOrLoad(VcsModificationsSelector.java:120)
    at jetbrains.buildServer.serverSide.impl.query.VcsModificationsSelector.getBuildTypesModifications(VcsModificationsSelector.java:88)
    at jetbrains.buildServer.vcs.impl.DBVcsModificationHistory.loadModificationsInCache(DBVcsModificationHistory.java:134)
    at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsModificationHistory.loadModificationsInCache(SecuredVcsModificationHistory.java:34)
    at jetbrains.buildServer.serverSide.impl.BuildTypeChangesPrefetcher.start(BuildTypeChangesPrefetcher.java:4)
    at jetbrains.buildServer.web.impl.BuildServerConfigurator.setupBuildServer(BuildServerConfigurator.java:65)
    at jetbrains.buildServer.web.impl.BuildServerConfigurator.loadConfiguration(BuildServerConfigurator.java:50)

1 comment
Comment actions Permalink

Hello Richard,

Which version of  TeamCity do you use?
What kind of database - internal or external?

If the database is internal - it seems the data file is corrupted.

If the database is external - please attach the 'teamcity-server.log' file.

0

Please sign in to leave a comment.