Failed to associate build with promotion, promotion was not persisted

Hi,

We recently migrated TeamCity 7.15 to a new server and database (on the same machine). The server is Windows Server 2012 and the database is SQL Server 2012 - same as on the old server. Things appear similar, except when we go to try and do a build. In the server log (with debug turned on) we get the stack trace below. Any idea what might be going on? Thanks for any insight.


Peter


[2013-08-26 16:37:53,469]  DEBUG -   jetbrains.buildServer.SERVER - Initializing Running build bt3 on XXXX, build id: 1163
[2013-08-26 16:37:53,671]  DEBUG -   jetbrains.buildServer.SERVER - Associating build promotion 1008 with build 1163
[2013-08-26 16:37:53,709]   WARN -   jetbrains.buildServer.SERVER - Failed to start build: null, error: java.lang.RuntimeException: Failed to associate build with promotion, promotion was not persisted
[2013-08-26 16:37:53,709]  DEBUG -   jetbrains.buildServer.SERVER - Failed to start build: null, error: java.lang.RuntimeException: Failed to associate build with promotion, promotion was not persisted
java.lang.RuntimeException: Failed to associate build with promotion, promotion was not persisted
 at jetbrains.buildServer.serverSide.impl.BuildPromotionImpl.setAssociatedBuild(BuildPromotionImpl.java:170)
 at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.initialize(RunningBuildImpl.java:269)
 at jetbrains.buildServer.serverSide.impl.RunningBuildImpl.<init>(RunningBuildImpl.java:282)
 at jetbrains.buildServer.serverSide.impl.auth.SecuredRunningBuild.<init>(SecuredRunningBuild.java:32)
 at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory.createRunningBuild(SecuredBuildFactory.java:32)
 at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.newRunningBuild(BuildTypeImpl.java:195)
 at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:12)
 at jetbrains.buildServer.serverSide.impl.FlushQueueForConnectedAgents.chooseBuildAndAgent(FlushQueueForConnectedAgents.java:44)
 at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.flushRealAgents(FlushQueueTemplate.java:14)
 at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate.access$100(FlushQueueTemplate.java:44)
 at jetbrains.buildServer.serverSide.impl.FlushQueueTemplate$2.run(FlushQueueTemplate.java)
 at jetbrains.buildServer.serverSide.impl.FlushQueueAction$QueueAction.run(FlushQueueAction.java:6)
 at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl.executeWithInactiveCleanup(ServerCleanupManagerImpl.java:119)
 at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$FastClassByCGLIB$$ba2c8525.invoke(<generated>)
 at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
 at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
 at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:1)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:572)
 at jetbrains.buildServer.serverSide.impl.cleanup.ServerCleanupManagerImpl$$EnhancerByCGLIB$$68d0596f.executeWithInactiveCleanup(<generated>)
 at jetbrains.buildServer.serverSide.impl.BuildServerImpl.flushQueue(BuildServerImpl.java:142)
 at jetbrains.buildServer.serverSide.impl.BuildServerRunner$2.doSomething(BuildServerRunner.java:1)
 at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:12)
 at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:32)
 at java.lang.Thread.run(Unknown Source)

Please sign in to leave a comment.