问题描述
您好,
无论我怎么做 - 我总是在更新向导中出错。
no matter how I tried - I always ended up in an error in the update wizard.
我试过
更新2013 - > 2017 - >错误
更新2013 - > 2015年 - > OK
2015年更新 - > 2017年 - 与2013年相同的错误
I tried
Update 2013 --> 2017 --> error
Update 2013 --> 2015 --> OK
Update 2015 --> 2017 -- same error as from 2013
特别是行
服务类型:( null)。标识符:( null)。
Especially the line
Service type: (null). Identifier: (null).
对我来说似乎很可疑...
seems suspicious to me...
无法在网络上找到有关此错误的任何信息...
Could not find any informations on this error on the web...
任何想法都将不胜感激
谢谢,
Marco
以下是日志摘录:
[信息 @ 16:34:51.863]执行步骤:'安装继承的服务定义'Location.InstallInheritedDefinitions(161 of 524)
[错误 @ 16:35:05.795] TF246054:服务定义已经使用指定的服务类型和标识符进行了注册。服务类型:( null)。标识符:( null)。
[信息 @ 16:35:05.797] Microsoft.TeamFoundation.Framework.Server.InvalidServiceDefinitionException:TF246054:服务定义已使用指定的服务类型和标识符注册。服务类型:( null)。标识符:( null)。
在Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.TranslateException(Int32 errorNumber,SqlException sqlException,SqlError sqlError)
在Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.TranslateException(SqlException sqlException)
在Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.MapException(SqlException ex,QueryExecutionState queryState)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.HandleException(异常例外)
在Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteCommand(ExecuteType executeType,CommandBehavior behavior,String performanceGroupName)
在Microsoft.VisualStudio.Services.CircuitBreaker.Command。<> c__DisplayClass7_0。<执行> b__0()
在Microsoft.VisualStudio.Services.CircuitBreaker.CommandAsync。<执行> d__28.MoveNext()
---从抛出异常的上一个位置开始的堆栈跟踪结束---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在Microsoft.VisualStudio.Services.CircuitBreaker.Command.Execute(动作运行,动作回退)
在Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteCommandWithBaseCircuitBreaker(ExecuteType executeType,CommandBehavior behavior,String performanceGroupName)
在Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteNonQuery(Boolean bindReturnValue)
在Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteNonQuery()
在Microsoft.TeamFoundation.Framework.Server.LocationComponent5.SaveServiceDefinitions(IEnumerable`1 serviceDefinitions)
在Microsoft.VisualStudio.Services.Location.Server.LocalLocationDataProvider。<> c__DisplayClass10_0。< SaveServiceDefinitions> b__0()
在Microsoft.VisualStudio.Services.Location.Server.LocationDataCache`1.Update(IVssRequestContext requestContext,T cacheKeyIdentifier,Action updateAction)
在Microsoft.VisualStudio.Services.Location.Server.LocalLocationDataProvider.SaveServiceDefinitions(IVssRequestContext requestContext,IEnumerable`1 serviceDefinitions)
在Microsoft.TeamFoundation.Framework.Server.InheritedLocationData.Install(IVssRequestContext requestContext,ITFLogger logger)
在Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformHostStep(String servicingOperation,ServicingOperationTarget target,IServicingStep servicingStep,String stepData,ServicingContext servicingContext)
在Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation,ServicingOperationTarget target,IServicingStep servicingStep,String stepType,String stepData,ServicingContext servicingContext)
在Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation,ServicingOperationTarget target,String stepType,String stepData,ServicingContext servicingContext)
在Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep步骤,ServicingContext servicesContext,ServicingStepGroup组,ServicingOperation servicingOperation,Int32 stepNumber,Int32 totalSteps)
[信息 @ 16:35:05.798] [2017-02-12 15:35:05Z]服务步骤'安装继承的服务定义'失败。 (ServicingOperation:'StartInstallHostUpdates';步骤组:'InstallInheritedDefinitionsOnPrem')
[信息 @ 16:35:05.798] [StepDuration] 13,9341639
[信息 @ 16:35:05.801] [GroupDuration] 13,9380593
[信息 @ 16:35:05.801] [OperationDuration] 13,938193
[信息 @ 16:35:05.801]清除字典,删除所有项目。
[错误 @ 16:35:05.812]
$
异常消息:TF400711:在StartInstallHostUpdates期间为组件InstallInheritedDefinitionsOnPrem执行服务步骤'Install Inherited Service Definitions'时发生错误:TF246054:服务定义已经注册了
指定的服务类型和标识符。服务类型:( null)。标识符:( null)。 (输入TeamFoundationServicingException)
$
异常堆栈跟踪: 在Microsoft.TeamFoundation.Framework.Server.ServicingContext.FinishStep(例外例外)
在Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep步骤,ServicingContext servicesContext,ServicingStepGroup组,ServicingOperation servicingOperation,Int32 stepNumber,Int32 totalSteps)
在Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformOperations(Int32 stepsToPerform)
在Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.Execute(Int32 numberOfStepsToPerform)
在Microsoft.TeamFoundation.Admin.UpgradeConfigDbDriver.Execute()
在Microsoft.TeamFoundation.Admin.ConfigureUpgradeConfigDB.Run(ActivityContext context)
[Info @16:34:51.863] Executing step: 'Install Inherited Service Definitions' Location.InstallInheritedDefinitions (161 of 524)
[Error @16:35:05.795] TF246054: A service definition has already been registered with the specified service type and identifier. Service type: (null). Identifier: (null).
[Info @16:35:05.797] Microsoft.TeamFoundation.Framework.Server.InvalidServiceDefinitionException: TF246054: A service definition has already been registered with the specified service type and identifier. Service type: (null). Identifier: (null).
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.TranslateException(Int32 errorNumber, SqlException sqlException, SqlError sqlError)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.TranslateException(SqlException sqlException)
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.ExecuteCommand(ExecuteType executeType, CommandBehavior behavior, String performanceGroupName)
at Microsoft.VisualStudio.Services.CircuitBreaker.Command.<>c__DisplayClass7_0.<Execute>b__0()
at Microsoft.VisualStudio.Services.CircuitBreaker.CommandAsync.<Execute>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Services.CircuitBreaker.Command.Execute(Action run, Action fallback)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteCommandWithBaseCircuitBreaker(ExecuteType executeType, CommandBehavior behavior, String performanceGroupName)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteNonQuery(Boolean bindReturnValue)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteNonQuery()
at Microsoft.TeamFoundation.Framework.Server.LocationComponent5.SaveServiceDefinitions(IEnumerable`1 serviceDefinitions)
at Microsoft.VisualStudio.Services.Location.Server.LocalLocationDataProvider.<>c__DisplayClass10_0.<SaveServiceDefinitions>b__0()
at Microsoft.VisualStudio.Services.Location.Server.LocationDataCache`1.Update(IVssRequestContext requestContext, T cacheKeyIdentifier, Action updateAction)
at Microsoft.VisualStudio.Services.Location.Server.LocalLocationDataProvider.SaveServiceDefinitions(IVssRequestContext requestContext, IEnumerable`1 serviceDefinitions)
at Microsoft.TeamFoundation.Framework.Server.InheritedLocationData.Install(IVssRequestContext requestContext, ITFLogger logger)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformHostStep(String servicingOperation, ServicingOperationTarget target, IServicingStep servicingStep, String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation, ServicingOperationTarget target, IServicingStep servicingStep, String stepType, String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation, ServicingOperationTarget target, String stepType, String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Int32 stepNumber, Int32 totalSteps)
[Info @16:35:05.798] [2017-02-12 15:35:05Z] Servicing step 'Install Inherited Service Definitions' failed. (ServicingOperation: 'StartInstallHostUpdates'; Step group: 'InstallInheritedDefinitionsOnPrem')
[Info @16:35:05.798] [StepDuration] 13,9341639
[Info @16:35:05.801] [GroupDuration] 13,9380593
[Info @16:35:05.801] [OperationDuration] 13,938193
[Info @16:35:05.801] Clearing dictionary, removing all items.
[Error @16:35:05.812]
Exception Message: TF400711: Error occurred while executing servicing step 'Install Inherited Service Definitions' for component InstallInheritedDefinitionsOnPrem during StartInstallHostUpdates: TF246054: A service definition has already been registered with the specified service type and identifier. Service type: (null). Identifier: (null). (type TeamFoundationServicingException)
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, Int32 stepNumber, Int32 totalSteps)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformOperations(Int32 stepsToPerform)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.Execute(Int32 numberOfStepsToPerform)
at Microsoft.TeamFoundation.Admin.UpgradeConfigDbDriver.Execute()
at Microsoft.TeamFoundation.Admin.ConfigureUpgradeConfigDB.Run(ActivityContext context)
推荐答案
谢谢在此处发布。
在升级之前,您是否为TFS 2013安装了最新的服务包? 如果没有,你可以试试。
Are you installed the latest service packs for your TFS 2013 before upgrading? You can try it if not.
请参考这些文章从TFS 2013升级到2017年TFS:
Please reference these article for upgrading from TFS 2013 to TFS 2017 :
https://blogs.msdn.microsoft.com/rob/2016/12/22/upgrading-from -tfs-2013-to-tfs-2017 /
祝你好运
这篇关于更新到TFS 2017时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!