TFS备份还原期间出错:TF400856:数据库中未注册以下服务:IdentityManagement

时间:2018-07-12 11:34:51

标签: tfs2018

我正在运行TFS 2018 Update2,并且我尝试附加已备份但未先分离的备份。

在这些数据库上重新排序为“ TFSConfig offlineDetach”会导致显示以下错误消息:

[Info   @09:30:57.248] [2018-07-12 09:30:57Z] Executing servicing step 'Copy identities to collection database'. (ServicingOperation: Snapshot; Step group: Snapshot.TfsIdentities)
[Info   @09:30:57.248] Executing step: 'Copy identities to collection database' PlatformIdentity.SnapshotIdentities (17 of 17)
[Error  @09:30:57.295] TF400856: The following service is not registered in the database: IdentityManagement.
[Info   @09:30:57.295] Microsoft.TeamFoundation.Framework.Server.ServiceNotRegisteredException: TF400856: The following service is not registered in the database: IdentityManagement.
   at Microsoft.TeamFoundation.Framework.Server.TeamFoundationResourceManagementService.DeploymentHostResourceManagementService.CreateDatabaseComponent[TComponent](IVssRequestContext deploymentRequestContext, Int32 databaseId, IVssRequestContext requestContext, String dataspaceCategory, Guid dataspaceIdentifier, DatabaseConnectionType connectionType, ITFLogger logger)
   at Microsoft.TeamFoundation.Framework.Server.TeamFoundationResourceManagementService.CreateComponent[TComponent](IVssRequestContext requestContext, String dataspaceCategory, Nullable`1 dataspaceIdentifier, DatabaseConnectionType connectionType, ITFLogger logger)
   at Microsoft.TeamFoundation.Framework.Server.TeamFoundationResourceManagementService.CreateComponent[TComponent](IVssRequestContext requestContext)
   at Microsoft.VisualStudio.Services.Identity.IdentityDetachHandler.PreTransferSteps()
   at Microsoft.VisualStudio.Services.Identity.IdentityTransferHandler`1.Execute()
   at Microsoft.VisualStudio.Services.Identity.PlatformIdentityStepPerformer.SnapshotIdentities(IVssRequestContext requestContext, ServicingContext servicingContext)
   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, 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   @09:30:57.295] [2018-07-12 09:30:57Z] Servicing step 'Copy identities to collection database' failed. (ServicingOperation: 'Snapshot'; Step group: 'Snapshot.TfsIdentities')
[Info   @09:30:57.295] 0,040819
[Info   @09:30:57.295] 0,0434132
[Info   @09:30:57.295] 5,8540154
[Error  @09:30:57.295] The error occurred while detaching the collection database 'TFS_before_projects' offline. See the log file for additional details.
[Error  @09:30:57.310] TF400711: Error occurred while executing servicing step 'Copy identities to collection database' for component Snapshot.TfsIdentities during Snapshot: TF400856: The following service is not registered in the database: IdentityManagement.
[Info   @09:30:57.310] Clearing dictionary, removing all items.

我在

发现了类似的问题

TF400856: The following service is not registered in the database: IdentityManagement

https://social.msdn.microsoft.com/Forums/vstudio/en-US/e6ad3a1a-bfe0-44a9-a3e6-3442004c7687/tf400856-error-identity-management-is-not-registered-in-the-database?forum=tfsadmin

TFS与当前数据库完美运行。我只是想将备份作为单独的集合还原,都在同一个SQL Server实例中。

有什么建议可以真正还原此备份?

0 个答案:

没有答案