TFS 2008 upgrade to 2010 failed upgrade pre tfs 2010 database failed - tfs

I'm currently in the process of upgrading the TFS server from 2008 to 2010 for trial. So basically, here is the following steps i have done:
back up database
restore the database on a new db server, DB.
install TFS 2010 on another server, TFS.
select the upgrade scenario
failed with the following error:
[Info #00:33:55.170] [2010-07-27
07:43:48Z][Informational] Step
Performer: Build
[Info #00:33:55.170] [2010-07-27
07:43:48Z][Informational] Step Type:
MigrateBuildDefinitionSchedules
[Info #00:33:55.170] [2010-07-27
07:43:48Z][Informational] Step Data
Text:
[Error #00:33:55.170] [2010-07-27
07:43:49Z][Error] Object reference not
set to an instance of an object.
[Info #00:33:55.170] [2010-07-27
07:43:49Z][Informational]
System.NullReferenceException: Object
reference not set to an instance of an
object.
at
Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobSchedule.Validate(String
topLevelParamName, Int32
minimumScheduleInterval)
at
Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobDefinition.Validate(String
topLevelParamName, Int32
minimumJobInterval)
at
Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobService.UpdateJobDefinitions(TeamFoundationRequestContext
requestContext, IEnumerable1
jobsToDelete, IEnumerable1
jobUpdates, Boolean allowRunOnceJobs,
Boolean repairQueueOnly)
at
Microsoft.TeamFoundation.Build.Server.TeamFoundationBuildService.UpdateBuildDefinitions(TeamFoundationRequestContext
requestContext, IList`1 updates)
at
Microsoft.TeamFoundation.Server.Servicing.TFCollection.BuildStepPerformer.MigrateBuildDefinitionSchedules(String
stepData, ServicingContext
servicingContext, Boolean
validateOnly)
at
Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.Microsoft.TeamFoundation.Framework.Server.IStepPerformer.PerformStep(String
servicingOperation, String stepType,
String stepData, ServicingContext
servicingContext)
at
Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep
step, ServicingContext
servicingContext, ServicingStepGroup
group, ServicingOperation
servicingOperation, Boolean
validateOnly)
[Info #00:33:55.170] [2010-07-27
07:43:49Z] Servicing step Migrate
Build Definition Schedules failed.
(ServicingOperation:
UpgradePreTfs2010Databases; Step
group: Upgrade.TfsTeamBuild)
[Info #00:33:55.170] [2010-07-27
07:43:49Z][Informational] Clearing
dictionary, removing all items.
[Error #00:33:55.170] The servicing
operation failed.
I can't move on and have no idea what went wrong.
Please help.
Thanks,
Chen

Was your TFS 2008 server updated to Service Pack 1?
If not you need to update first. YOu can try following:
http://blog.hinshelwood.com/archive/2010/05/03/upgrading-team-foundation-server-2008-to-2010.aspx

Related

Docker and Visual Studio for Mac: "PrepareForBuild": task failed... Permission denied

Visual Studio for Mac v17.0.6
MacOS Monterey v12.4
Docker v20.10.7
Docker Desktop v3.5.2
I am trying to run my project in a Docker container on my Mac using Visual Studio for Mac. At work, I run this on a Windows 10 machine without issue, and I did not set it up myself on my work machine so I am not sure if there are any steps or settings I'm missing.
What I have tried:
Adding /Users/Blake/Desktop/WOF/WOFFirebase to the list of file sharing paths as suggested by the troubleshooting link provided in the stack trace. I am not surprised this didn't work because the documentation says this is only for Visual Studio, not Visual Studio For Mac.
Restarting visual studio
Changing permissions to the WOF and WOFFirebase directories to be as permissive as possible.
I am wondering if I need to explicitly run this as the root user, but I am not sure how I would do that. What should I do next?
Please let me know if any more info is needed. Here is the full stack trace:
/Applications/Visual Studio.app/Contents/MonoBundle/AddIns/MonoDevelop.Docker/MSbuild/Sdks/Microsoft.Docker.Sdk/build/Microsoft.VisualStudio.Docker.Compose.targets(5,5): Error MSB4018: The "PrepareForBuild" task failed unexpectedly.
Microsoft.VisualStudio.Containers.Tools.Common.ContainerToolsException: An error occurred trying to start process '/Users/Blake/Desktop/WOF/WOFFirebase/docker' with working directory '/Users/Blake/Desktop/WOF/WOFFirebase'. Permission denied.
For more troubleshooting information, go to https://aka.ms/DockerToolsTroubleshooting
---> System.ComponentModel.Win32Exception (13): An error occurred trying to start process '/Users/Blake/Desktop/WOF/WOFFirebase/docker' with working directory '/Users/Blake/Desktop/WOF/WOFFirebase'. Permission denied
at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.Docker.Utilities.CommandLineClient.<>c__DisplayClass0_0.<ExecuteAsync>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at Microsoft.Docker.DockerClient.ExecuteAsync(CommandLineParameters cmdParameters, IDockerLogger logger, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.Docker.DockerClient.ExecuteAsync(CommandLineParameters cmdParameters, IDockerLogger logger, CancellationToken cancellationToken)
at Microsoft.Docker.DockerClientExtensions.GetServerOperatingSystemAsync(IDockerClient client, IDockerLogger logger, CancellationToken cancellationToken)
at Microsoft.Docker.Prerequisites.DockerTargetOSCheckPrerequisite.EvaluateAsync(CancellationToken cancellationToken)
at Microsoft.Docker.Prerequisites.DockerCompositePrerequisite.EvaluateAsync(CancellationToken cancellationToken)
at Microsoft.Docker.BuildTasks.DockerBuildTask.EvaluateBuildPrerequisitesAsync(Exception ex, DockerBuildTaskContext context)
at Microsoft.Docker.BuildTasks.DockerBuildTask.ExecuteAsync(DockerBuildTaskContext context)
at Microsoft.Docker.BuildTasks.DockerBuildTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
Error code: DT1003
Severity: Error
Command line: docker version --format {{.Server.Os}}
(MSB4018) (docker-compose)

TF221122: An error occurred running job Test Management Warehouse Sync, ResultFailureTypeName (type IndexOutOfRangeException)

We have upgraded out TFS server 2012 update 2 to TFS 2012 Update 4. After update we found below error in event viewer. Now we cannot create new team project or cannot delete existing project. Now all the deleted project state showing as 'Deleted(Pending)'
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 4/6/2018 5:23:09 AM
Machine: TFS
Application Domain: TfsJobAgent.exe
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319
Service Host:
Process Details:
Process Name: TFSJobAgent
Process Id: 4660
Thread Id: 4348
Account name: DOMAIN\TFSService
Detailed Message: TF221122: An error occurred running job Test Management Warehouse Sync for team project collection or Team Foundation server Default Collection.
Exception Message: ResultFailureTypeName (type IndexOutOfRangeException)
Exception Stack Trace: at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
at System.Data.SqlClient.SqlDataReader.get_Item(String name)
at Microsoft.TeamFoundation.TestManagement.Warehouse.AdapterFormatHelper.FormatDimensionData(DimensionMember dm, Column col, SqlDataReader reader)
at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.CreateDimensionEntries(Mapping mapping, SqlDataReader reader)
at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.CallbackCreateFactAndDimensionEntries(Mapping mapping, SqlDataReader reader)
at Microsoft.TeamFoundation.TestManagement.Warehouse.WarehouseResultDatabase.QueryTestResults(SqlBinary watermark, Int32 limit, ProcessRowCallback resetCallback, ProcessMappingDataCallback dataCallback)
at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.QueryForResults(WarehouseResultDatabase wrd, SqlBinary waterMark, Int32 limit)
at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.ProcessIntegratedResults(WarehouseRowVersionQueryDelegate wqd, String highWaterMarkProperty, String processLimitProperty, Int32 defaultLimit)
at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.MakeDataChanges()
at Microsoft.TeamFoundation.Warehouse.WarehouseSyncJobExtension`1.MakeDataChanges(TeamFoundationRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, String& resultMessage)
at Microsoft.TeamFoundation.Warehouse.WarehouseSyncJobExtension`1.RunInternal(TeamFoundationRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage)
at Microsoft.TeamFoundation.Warehouse.WarehouseJobExtension.Run(TeamFoundationRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage)
Try to clean the cache files by following the steps below:
Clean the Cache folder on client computer. The folder path is: C:\Users\username\AppData\Local\Microsoft\Team Foundation\4.0\Cache.
Clean the Cache folder on Server machine. The folder path is: C:\ProgramData\Microsoft\Team Foundation\Web Access\Cache_v11.0
After cleaned, on Server machine, click Start and select Run… to open the dialog box, then input iisreset.exe and click OK, wait it run completely.

TFS vNext build agent fails with 407 proxy authentication error

Triggering a build from Visual Studio Team Services on an on-premise vNext build agent fails at the point of getting sources from the repo, presumably because of a corporate proxy.
The build log on VSTS shows:
2016-01-28T12:35:03.7688078Z Syncing repository: MyProject (TFVC)
2016-01-28T12:35:03.7688078Z workspaceName=ws_3_3
2016-01-28T12:35:05.0730362Z ##[error]HTTP code 407: Proxy Authentication Required
2016-01-28T12:35:05.3257849Z ##[error]Prepare repository failed with exception.
On the build server the agent log shows the following exception:
16:17:14.895983 System.AggregateException: One or more errors occurred. ---> Microsoft.TeamFoundation.DistributedTask.Agent.Common.AgentExecutionTerminationException: Prepare repository failed with exception. ---> Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException: HTTP code 407: Proxy Authentication Required ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
16:17:14.895983 at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
16:17:14.895983 at System.Net.HttpWebRequest.GetRequestStream()
16:17:14.895983 at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequestAndGetResponse(HttpWebRequest webRequest, WebException& webException)
16:17:14.895983 --- End of inner exception stack trace ---
16:17:14.895983 at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.ReadResponse(HttpWebResponse webResponse, WebException webException)
16:17:14.895983 at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.IsAuthenticationChallenge(TfsMessage requestMessage, HttpWebResponse webResponse, WebException webException, TfsMessage& responseMessage)
16:17:14.895983 at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest()
16:17:14.895983 at Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout)
16:17:14.895983 at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
16:17:14.895983 at Microsoft.TeamFoundation.Framework.Client.LocationWebService.Connect(Int32 connectOptions, Int32 lastChangeId, Int32 features)
16:17:14.895983 at Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.Connect(ConnectOptions connectOptions)
16:17:14.895983 at Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.EnsureConnected(ConnectOptions optionsNeeded)
16:17:14.895983 at Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.get_AuthorizedIdentity()
16:17:14.895983 at Microsoft.TeamFoundation.VersionControl.Client.Client.ResolveUserUniqueName(String user)
16:17:14.895983 at Microsoft.TeamFoundation.VersionControl.Client.Client.GetLocalWorkspace(String workspaceName, String workspaceOwner)
16:17:14.895983 at Microsoft.TeamFoundation.DistributedTask.Task.Internal.Core.TfvcHelper.SyncRepository(VersionControlServer server, Uri repositoryUrl, String workspaceName, String rootPath, WorkingFolder[] workingFolders, String sourceVersion, Boolean cleanRepository, String shelveset, CancellationToken cancellationToken)
16:17:14.895983 at Microsoft.TeamFoundation.DistributedTask.Task.Internal.Core.TfvcHelper.Sync(ITaskEndpoint endpoint, String localPath, Dictionary`2 serverPathMapping, String sourceVersion, Boolean cleanRepository, String workspaceName, String shelveset, String& actualSourceVersion, CancellationToken cancellationToken)
16:17:14.895983 at Microsoft.TeamFoundation.DistributedTask.Plugin.Build.TfvcSourceProvider.<>c__DisplayClass3_0.<PrepareRepositoryAsync>b__0()
16:17:14.895983 --- End of inner exception stack trace ---
There are a lot of similar questions about the 407 proxy authentication error, with suggestions of config files to change, but none specific to the problem of the vNext build agent. Is there a config file somewhere that I can edit to fix this problem?
The config file you need to change is VsoWorker.exe.config, which can be found in the following kind of location C:\BuildAgent\TFS_Build\agent\agent\Worker.
Within the <configuration> block add the following code:
<system.net>
<defaultProxy useDefaultCredentials="true">
</defaultProxy>
</system.net>
I'm using VSTS behind a corporate proxy but have already set my git proxy up globally. If I've done this (so can pull from the collection from the command line) then using the latest vso agent it just works:
https://github.com/Microsoft/vsts-agent

tfs53010 error. TFS Build agent does nothing

just installed a fresh version of TFS 2015 on a box, everything is working fine and now i'm trying to get builds working, but I'm getting the below error repeating on me over and over.
I'm using the default local service auth for the build service, but i get the same error with a custom user as well. The VSO agent is shown as running in services and the TFS admin console, but any time i start a queue it just sits there, waiting for the build service.
All the errors that i find online have stacktraces that seem much more informative than mine. If you're interested here is a gist of the most recent log entry in D:\Program Files\Microsoft Team Foundation Server 14.0\Build_diag .
Does anyone have any ideas?
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 12/3/2015 1:24:00 AM
Machine:
Application Domain: TfsJobAgent.exe
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319
Service Host:
Process Details:
Process Name: TfsJobAgent
Process Id: 1584
Thread Id: 2216
Account name: NT AUTHORITY\LOCAL SERVICE
Detailed Message: There was an error during job agent execution. The operation will be retried. Similar errors in the next five minutes may not be logged.
Exception Message: Exception has been thrown by the target of an invocation. (type TargetInvocationException)
Exception Stack Trace: at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance[T]()
at Microsoft.TeamFoundation.Framework.Server.ComponentCreator`1.Create(ISqlConnectionInfo connectionInfo, Int32 commandTimeout, Int32 deadlockPause, Int32 maxDeadlockRetries, ITFLogger logger)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationResourceManagementService.CreateComponentRaw[TComponent](ISqlConnectionInfo connectionInfo, Int32 commandTimeout, Int32 deadlockPause, Int32 maxDeadlockRetries, Boolean handleNoResourceManagementSchema, Boolean verifyServiceVersion, Boolean throwExceptions, ITFLogger logger)
at Microsoft.TeamFoundation.Framework.Server.JobApplication.SetupInternal()
at Microsoft.TeamFoundation.Framework.Server.JobServiceUtil.RetryOperationsUntilSuccessful(RetryOperations operations, Int32 maxTries, Int32& delayOnExceptionSeconds)
Inner Exception Details:
Exception Message: External component has thrown an exception. (type SEHException)
Exception Stack Trace: at Microsoft.TeamFoundation.Framework.Server.DatabaseManagementComponent15..ctor()

TFS 2010 installation: prc_SaveCatalogChanges returned the wrong number of rows

I've been attempting to install TFS2010 onto Windows 7 Ultimate but when I get to the Basic Configuration screen I get an the error message:
*TF255356: The following error occurred when configuring the Team Foundation databases: Error occurred while executing servicing step Install the catalog roots for component Install.TfsFramework during Install: TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows.. For more information, see the configuration log.*
Previously, I had succesfully installed TFS2010 onto the same machine and had also created some projects. However it subsequently prevented me from creating new projects (for reasons that I was not able to diagnose) and so I unstalled the app and then re-installed it hoping the error would go away. The error I was getting before the uninstall was also contained the message "The database procedure prc_SaveCatalogChanges returned the wrong number of rows"
Any ideas would be much appreciated
EXTRACT FROM ERROR LOG:
[Error #12:07:57.652] TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows.
[Info #12:07:57.654] Microsoft.TeamFoundation.Framework.Server.UnexpectedDatabaseResultException: TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows.
at Microsoft.TeamFoundation.Framework.Server.ResultCollection.NextResult()
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationCatalogService.BuildResources(TeamFoundationRequestContext requestContext, ResultCollection rc, CatalogQueryOptions queryOptions)
at Microsoft.TeamFoundation.Framework.Server.CatalogTransactionContext.Save(TeamFoundationRequestContext requestContext, CatalogQueryOptions queryOptions, Boolean preview, List1& deletedResources, List1& deletedNodes)
at Microsoft.TeamFoundation.Admin.FrameworkStepPerformer.InstallCatalogRoots(String stepData, ServicingContext servicingContext, Boolean validateOnly)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.Microsoft.TeamFoundation.Framework.Server.IStepPerformer.PerformStep(String servicingOperation, String stepType, String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Boolean validateOnly)
[Info #12:07:57.654] [2011-01-05 12:07:57Z] Servicing step Install the catalog roots failed. (ServicingOperation: Install; Step group: Install.TfsFramework)
[Info #12:07:57.686] Clearing dictionary, removing all items.
[Error #12:07:57.688] TF255184: An error occurred during operation. Message=TF255356: The following error occurred when configuring the Team Foundation databases: Error occurred while executing servicing step Install the catalog roots for component Install.TfsFramework during Install: TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows.. For more information, see the configuration log..
[Error #12:07:57.689]
Exception Message: Error occurred while executing servicing step Install the catalog roots for component Install.TfsFramework during Install: TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows. (type CollectionServicingException)
Exception Stack Trace: at Microsoft.TeamFoundation.Framework.Server.ServicingContext.FinishStep(Exception exception)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Boolean validateOnly)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformOperations(Boolean validateOnly, Int32 stepsToPerform)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.Execute(Int32 numberOfStepsToPerform)
at Microsoft.TeamFoundation.Admin.ApplicationConfigurationDriver.Execute()
at Microsoft.TeamFoundation.Admin.ApplicationDataTier.Apply(OperationContext context)
Inner Exception Details:
Exception Message: TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows. (type UnexpectedDatabaseResultException)
Exception Stack Trace: at Microsoft.TeamFoundation.Framework.Server.ResultCollection.NextResult()
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationCatalogService.BuildResources(TeamFoundationRequestContext requestContext, ResultCollection rc, CatalogQueryOptions queryOptions)
at Microsoft.TeamFoundation.Framework.Server.CatalogTransactionContext.Save(TeamFoundationRequestContext requestContext, CatalogQueryOptions queryOptions, Boolean preview, List1& deletedResources, List1& deletedNodes)
at Microsoft.TeamFoundation.Admin.FrameworkStepPerformer.InstallCatalogRoots(String stepData, ServicingContext servicingContext, Boolean validateOnly)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.Microsoft.TeamFoundation.Framework.Server.IStepPerformer.PerformStep(String servicingOperation, String stepType, String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Boolean validateOnly)
[Error #12:07:57.690] TF255248: The process applying the configuration must be terminated due to an error.
[Error #12:07:57.692] TF255247: An error occurred while applying the following configuration: Microsoft.TeamFoundation.Admin.ConfigurationApplyException: TF255356: The following error occurred when configuring the Team Foundation databases: Error occurred while executing servicing step Install the catalog roots for component Install.TfsFramework during Install: TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows.. For more information, see the configuration log. (Error occurred while executing servicing step Install the catalog roots for component Install.TfsFramework during Install: TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows.) ---> Microsoft.TeamFoundation.Framework.Server.CollectionServicingException: Error occurred while executing servicing step Install the catalog roots for component Install.TfsFramework during Install: TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows. ---> Microsoft.TeamFoundation.Framework.Server.UnexpectedDatabaseResultException: TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows.
at Microsoft.TeamFoundation.Framework.Server.ResultCollection.NextResult()
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationCatalogService.BuildResources(TeamFoundationRequestContext requestContext, ResultCollection rc, CatalogQueryOptions queryOptions)
at Microsoft.TeamFoundation.Framework.Server.CatalogTransactionContext.Save(TeamFoundationRequestContext requestContext, CatalogQueryOptions queryOptions, Boolean preview, List1& deletedResources, List1& deletedNodes)
at Microsoft.TeamFoundation.Admin.FrameworkStepPerformer.InstallCatalogRoots(String stepData, ServicingContext servicingContext, Boolean validateOnly)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.Microsoft.TeamFoundation.Framework.Server.IStepPerformer.PerformStep(String servicingOperation, String stepType, String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Boolean validateOnly)
--- End of inner exception stack trace ---
at Microsoft.TeamFoundation.Framework.Server.ServicingContext.FinishStep(Exception exception)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Boolean validateOnly)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformOperations(Boolean validateOnly, Int32 stepsToPerform)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.Execute(Int32 numberOfStepsToPerform)
at Microsoft.TeamFoundation.Admin.ApplicationConfigurationDriver.Execute()
at Microsoft.TeamFoundation.Admin.ApplicationDataTier.Apply(OperationContext context)
--- End of inner exception stack trace ---
at Microsoft.TeamFoundation.Admin.ErrorList.HandleError(IResult result)
at Microsoft.TeamFoundation.Admin.ErrorList.Add(IResult result)
at Microsoft.TeamFoundation.Admin.OperationResult.Add(IResult result)
at Microsoft.TeamFoundation.Admin.ApplicationDataTier.Apply(OperationContext context)
at Microsoft.TeamFoundation.Admin.ConfigurationNode.ApplyIfReady(OperationContext context)
at Microsoft.TeamFoundation.Admin.ApplicationTier.Install(OperationContext context)
at Microsoft.TeamFoundation.Admin.ApplicationTier.Apply(OperationContext context)
at Microsoft.TeamFoundation.Admin.ConfigurationNode.ApplyIfReady(OperationContext context)
at Microsoft.TeamFoundation.Admin.LogicalTier.Apply(OperationalMode mode).
[Info #12:07:57.695]
[Info #12:07:57.695] -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
First install or have you tried with a couple of failures?
Did you make it through and then install any SP's before uninstalling?
I had a situation that I just got passed where the following happened.
Windows 7 Ultimate
TFS 2010 Basic Edition
TFS 2010 SP1
Windows 7 SP1
Uninstall Windows 7 SP1 (this is where all hell broke loose).
Slam head against desk for hours
Uninstall TFS 2010
Reapply Windows 7 SP1 (that or a rebuild. not in the mood).
Install TFS 2010
Install TFS 2010 SP1
Configure TFS
Then it worked. Tried every other combination. SP1 causes some new problems (sleeping locks up a lot. other random things).
Hopefully this help someone

Resources