Hi,
We're trialling an upgrade from TFS 2008 to 2012.4. New TFS has been set up on new hardware with new slq and build boxes. Then we imported 2008 backups and used TFSConfig to import / upgrade them. No errors or warnings where shown.
Unfortunately we can't queue any builds on the collection. Even a brand new definition in a new team project building "hello world". Builds in other collections work OK.
The error we're getting is
"TF246021: An error occurred while processing your request. Technical information (for administrator): SQL Server Error: 2601"
Exception Message: Cannot insert duplicate key row in object 'dbo.tbl_BuildQueue' with unique index 'PK_tbl_BuildQueue'. The duplicate key value is (2, 1). (type SqlException)
SQL Exception Class: 14
SQL Exception Number: 2601
SQL Exception Procedure: prc_iiQueueBuilds
SQL Exception Line Number: 553
SQL Exception Server: TFSSQL001\INST1
SQL Exception State: 1
SQL Error(s):
Exception Data Dictionary:
HelpLink.ProdName = Microsoft SQL Server
HelpLink.ProdVer = 10.50.4000
HelpLink.EvtSrc = MSSQLServer
HelpLink.EvtID = 2601
HelpLink.BaseHelpUrl = http://go.microsoft.com/fwlink
HelpLink.LinkId = 20476
Exception Stack Trace: at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.MapException(SqlException ex, QueryExecutionState queryState)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.HandleException(Exception exception)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.Execute(ExecuteType executeType, CommandBehavior behavior)
at Microsoft.TeamFoundation.Build.Server.DataAccess.BuildQueueComponent5.QueueBuilds(IEnumerable`1 requests, QueueOptions options)
at Microsoft.TeamFoundation.Build.Server.TeamFoundationBuildService.QueueBuilds(TeamFoundationRequestContext requestContext, IList`1 requests, QueueOptions options)
at Microsoft.TeamFoundation.Server.WebAccess.Build.ApiBuildController.QueueBuild(String definitionUri, String controllerUri, String whatToBuild, String shelveset, Nullable`1 checkin, String priority, String dropFolder, String msbuildArgs)
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I found a thread with similar error but it doesn't help us.
http://social.msdn.microsoft.com/Forums/en-US/ec3f9a9d-0c93-422b-bbc4-959e1e6bfe59/tf246021-an-error-occurred-while-processing-your-request-technical-information-for?forum=TFService
Any help will be much appreciated.