none
TFS2012 Update1 无法分离 RRS feed

  • 问题

  • 遇到一个问题,

    一个集合detach失败,之后处于offline,启动该它提示 TF400783,the host "XXX" cannot started, the host is in process of being serviced.

    选择分离 提示 [Error] Object reference not set to an instance of an object.

    服务器重启过。

    请给点意见 谢谢!!!

    2012年12月10日 9:41

答案

全部回复

  • Hi cookie,

    请问你在detach team project collection的时候具体遇到了什么样的错误信息呢?你可以查看一下C:\ProgramData\Microsoft\Team Foundation\Server Configuration\Logs 文件夹下的TFS的日志,看看有没有有用的信息,有的话贴出来。


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2012年12月12日 7:17
    版主
  • 感谢回复 一下是错误日志

    ====================================================================
    Collection name : Passdown
    Operation class : DetachCollection
    Queue time      : 12/13/2012 08:51:57
    Start time      : 12/13/2012 08:51:57
    End time        : 12/13/2012 08:52:06
    Execution time  : 0:00:00:09
    Time Zone       : China Standard Time
    Job result      : Failed
    ====================================================================
    [08:51:57.630]   Creating dictionary with 3 initial items:
    [08:51:57.630]   CollectionProperties => a2803330-5c79-4130-b9c8-c7dd44f34f21 (Passdown)
    [08:51:57.630]   RequestingIdentity => IdentityDescriptor (IdentityType: System.Security.Principal.WindowsIdentity; Identifier: S-1-5-21-418605949-1403769401-4174444376-500)
    [08:51:57.630]   DatabaseMap => System.Collections.Generic.Dictionary`2[System.String,System.String]
    [08:51:57.640]   Acquiring servicing job lock 'Servicing-a2803330-5c79-4130-b9c8-c7dd44f34f21'
    [08:51:57.643]   Setting token. Key: JobId. Value: 53676a07-af33-431a-afa4-e2ac1b1b1754.
    [08:51:57.643]   OperationClass: DetachCollection
    [08:52:04.057]   Partition Id: 1, Host Id: a2803330-5c79-4130-b9c8-c7dd44f34f21, Sql Instance: Halifirien, Database: Tfs_Passdown
    [08:52:04.063]   onlineUpdate: False
    [08:52:04.377] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:04.377] ++ Executing - Operation: Snapshot, Group: CleanUpSnapshot
    [08:52:04.377] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:04.377] Executing step: Delete TFS_SNAPSHOT_COLLECTIONID stamp
    [08:52:04.377]   Executing step: 'Delete TFS_SNAPSHOT_COLLECTIONID stamp' DatabaseAttribute.DeleteDatabaseAttribute (1 of 29)
    [08:52:04.377]   Step Data: DatabaseCategory => Framework
    [08:52:04.377]   Step Data: DatabaseAttribute => TFS_SNAPSHOT_COLLECTIONID
    [08:52:04.383] Step passed: Delete TFS_SNAPSHOT_COLLECTIONID stamp. Execution time: 6 milliseconds.
    [08:52:04.383] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:04.383] Executing step: Delete TFS_SNAPSHOT_STATE stamp
    [08:52:04.383]   Executing step: 'Delete TFS_SNAPSHOT_STATE stamp' DatabaseAttribute.DeleteDatabaseAttribute (2 of 29)
    [08:52:04.383]   Step Data: DatabaseCategory => Framework
    [08:52:04.383]   Step Data: DatabaseAttribute => TFS_SNAPSHOT_STATE
    [08:52:04.390] Step passed: Delete TFS_SNAPSHOT_STATE stamp. Execution time: 7 milliseconds.
    [08:52:04.390] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:04.390] Executing step: Drop existing framework snapshot schema if it exists
    [08:52:04.390]   Executing step: 'Drop existing framework snapshot schema if it exists' Sql.ExecuteSql (3 of 29)
    [08:52:04.390]   Step Data: DatabaseCategory => Framework
    [08:52:04.390]   Step Data: SqlResource => TfsSnapshotDropSchema.sql
    [08:52:04.390]   Step Data: BatchTimeout => 0
    [08:52:04.390]   Step Data: Parameters => 
    [08:52:04.390]   Step Data: Database => 
    [08:52:04.390]   Step Data: AcquireLock => False
    [08:52:04.390]   Step Data: Services => Microsoft.VisualStudio.Services.Framework.SetServiceVersionStepData[]
    [08:52:04.390]   It took 1 ms to retrieve script(s)
    [08:52:05.177] Step passed: Drop existing framework snapshot schema if it exists. Execution time: 787 milliseconds.
    [08:52:05.177] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:05.177] Executing step: Remove any service definitions that the catalog entries created
    [08:52:05.177]   Executing step: 'Remove any service definitions that the catalog entries created' Location.CleanUpSnapshottedServiceDefinitions (4 of 29)
    [08:52:05.180] Step passed: Remove any service definitions that the catalog entries created. Execution time: 3 milliseconds.
    [08:52:05.180] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:05.180] Executing step: Remove the Catalog Property Artifact Kind
    [08:52:05.180]   Executing step: 'Remove the Catalog Property Artifact Kind' Property.DeletePropertyArtifactKind (5 of 29)
    [08:52:05.200]   The property artifact kind with id 'ad359ef1-fde8-4c78-b19f-4ab30e74e53c' was deleted
    [08:52:05.200] Step passed: Remove the Catalog Property Artifact Kind. Execution time: 20 milliseconds.
    [08:52:05.200] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:05.200] Executing step: Remove the Identity Property Artifact Kind
    [08:52:05.200]   Executing step: 'Remove the Identity Property Artifact Kind' Property.DeletePropertyArtifactKind (6 of 29)
    [08:52:05.200]   The property artifact kind with id '2b258b5d-d41f-4657-8585-8bbbfec1052b' was deleted
    [08:52:05.200] Step passed: Remove the Identity Property Artifact Kind. Execution time: 1 millisecond.
    [08:52:05.200] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:05.200] Executing step: Remove the snapshot registry entries
    [08:52:05.200]   Executing step: 'Remove the snapshot registry entries' Registry.CleanUpSnapshotRegistry (7 of 29)
    [08:52:05.247] Step passed: Remove the snapshot registry entries. Execution time: 47 milliseconds.
    [08:52:05.257] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:05.257] ++ Executing - Operation: Snapshot, Group: Snapshot.TfsFramework
    [08:52:05.257] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:05.257] Executing step: Create framework snapshot schema (tables)
    [08:52:05.257]   Executing step: 'Create framework snapshot schema (tables)' Sql.ExecuteSql (8 of 29)
    [08:52:05.257]   Step Data: DatabaseCategory => Framework
    [08:52:05.257]   Step Data: SqlResource => TfsSnapshotCreateTables.sql
    [08:52:05.257]   Step Data: BatchTimeout => 0
    [08:52:05.257]   Step Data: Parameters => 
    [08:52:05.257]   Step Data: Database => 
    [08:52:05.257]   Step Data: AcquireLock => False
    [08:52:05.257]   Step Data: Services => 
    [08:52:05.257]   It took 2 ms to retrieve script(s)
    [08:52:05.513]   SQL Info: Warning! The maximum key length is 900 bytes. The index 'IX_tbl_Identity_DisplayName' has maximum length of 904 bytes. For some combination of large values, the insert/update operation will fail.
    [08:52:05.513] Step passed: Create framework snapshot schema (tables). Execution time: 256 milliseconds.
    [08:52:05.513] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:05.513] Executing step: Create framework snapshot schema (sprocs)
    [08:52:05.513]   Executing step: 'Create framework snapshot schema (sprocs)' Sql.ExecuteSql (9 of 29)
    [08:52:05.513]   Step Data: DatabaseCategory => Framework
    [08:52:05.513]   Step Data: SqlResource => TfsSnapshotCreateSProcs.sql
    [08:52:05.513]   Step Data: BatchTimeout => 0
    [08:52:05.513]   Step Data: Parameters => 
    [08:52:05.513]   Step Data: Database => 
    [08:52:05.513]   Step Data: AcquireLock => False
    [08:52:05.513]   Step Data: Services => Microsoft.VisualStudio.Services.Framework.SetServiceVersionStepData[]
    [08:52:05.530]   It took 14 ms to retrieve script(s)
    [08:52:06.130]   SQL Info: The module 'prc_QueryCatalogDependents' depends on the missing object 'prc_iQueryCatalogObjects'. The module will still be created; however, it cannot run successfully until the object exists.
    [08:52:06.130]   The module 'prc_QueryCatalogNodes' depends on the missing object 'prc_iQueryCatalogObjects'. The module will still be created; however, it cannot run successfully until the object exists.
    [08:52:06.130]   The module 'prc_QueryCatalogParents' depends on the missing object 'prc_iQueryCatalogObjects'. The module will still be created; however, it cannot run successfully until the object exists.
    [08:52:06.130]   The module 'prc_QueryCatalogResources' depends on the missing object 'prc_iQueryCatalogObjects'. The module will still be created; however, it cannot run successfully until the object exists.
    [08:52:06.130]   The module 'prc_QueryCatalogResourcesByType' depends on the missing object 'prc_iQueryCatalogObjects'. The module will still be created; however, it cannot run successfully until the object exists.
    [08:52:06.130]   The module 'prc_SaveCatalogChanges' depends on the missing object 'prc_iQueryCatalogObjects'. The module will still be created; however, it cannot run successfully until the object exists.
    [08:52:06.130]   The module 'prc_ReleaseJobs' depends on the missing object 'prc_iiReleaseJob'. The module will still be created; however, it cannot run successfully until the object exists.
    [08:52:06.130]   The module 'prc_RescheduleJobs' depends on the missing object 'prc_iiReleaseJob'. The module will still be created; however, it cannot run successfully until the object exists.
    [08:52:06.130] Step passed: Create framework snapshot schema (sprocs). Execution time: 617 milliseconds.
    [08:52:06.130] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:06.130] Executing step: Copy application instance identifier
    [08:52:06.130]   Executing step: 'Copy application instance identifier' Framework.SnapshotOriginalApplicationInstanceId (10 of 29)
    [08:52:06.137] Step passed: Copy application instance identifier. Execution time: 7 milliseconds.
    [08:52:06.137] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:06.137] Executing step: Copy collection host data to collection database
    [08:52:06.137]   Executing step: 'Copy collection host data to collection database' CollectionManagement.CopyCollectionHostDataForSnapshot (11 of 29)
    [08:52:06.143] Step passed: Copy collection host data to collection database. Execution time: 6 milliseconds.
    [08:52:06.143] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:06.143] Executing step: Create the Catalog Property Artifact Kind
    [08:52:06.143]   Executing step: 'Create the Catalog Property Artifact Kind' Property.CreatePropertyArtifactKind (12 of 29)
    [08:52:06.150] Step passed: Create the Catalog Property Artifact Kind. Execution time: 7 milliseconds.
    [08:52:06.150] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [08:52:06.150] Executing step: Copy catalog data to collection database
    [08:52:06.150]   Executing step: 'Copy catalog data to collection database' Catalog.SnapshotCollectionCatalogData (13 of 29)
    [08:52:06.677]   [Error] Object reference not set to an instance of an object.
    [08:52:06.680]   System.NullReferenceException: Object reference not set to an instance of an object.
    [08:52:06.680]      at Microsoft.VisualStudio.Services.Framework.CatalogStepPerformer.SnapshotCollectionCatalogData(TeamFoundationRequestContext targetRequestContext, ServicingContext servicingContext)
    [08:52:06.680]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.Microsoft.TeamFoundation.Framework.Server.IStepPerformer.PerformStep(String servicingOperation, String stepType, String stepData, ServicingContext servicingContext)
    [08:52:06.680]      at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Int32 stepNumber, Int32 totalSteps)
    [08:52:06.680] Step failed: Copy catalog data to collection database. Execution time: 530 milliseconds.
    [08:52:06.683]   Clearing dictionary, removing all items.

    ======================================================================================================
     Step execution times in descending order
    ======================================================================================================
    Drop existing framework snapshot schema if it exists (CleanUpSnapshot, Snapshot)         - 787 milliseconds
    Create framework snapshot schema (sprocs) (Snapshot.TfsFramework, Snapshot)              - 617 milliseconds
    Copy catalog data to collection database (Snapshot.TfsFramework, Snapshot)               - 530 milliseconds
    Create framework snapshot schema (tables) (Snapshot.TfsFramework, Snapshot)              - 256 milliseconds
    Remove the snapshot registry entries (CleanUpSnapshot, Snapshot)                         - 47 milliseconds
    Remove the Catalog Property Artifact Kind (CleanUpSnapshot, Snapshot)                    - 20 milliseconds
    Delete TFS_SNAPSHOT_STATE stamp (CleanUpSnapshot, Snapshot)                              - 7 milliseconds
    Copy application instance identifier (Snapshot.TfsFramework, Snapshot)                   - 7 milliseconds
    Create the Catalog Property Artifact Kind (Snapshot.TfsFramework, Snapshot)              - 7 milliseconds
    Delete TFS_SNAPSHOT_COLLECTIONID stamp (CleanUpSnapshot, Snapshot)                       - 6 milliseconds
    Copy collection host data to collection database (Snapshot.TfsFramework, Snapshot)       - 6 milliseconds
    Remove any service definitions that the catalog entries c... (CleanUpSnapshot, Snapshot) - 3 milliseconds
    Remove the Identity Property Artifact Kind (CleanUpSnapshot, Snapshot)                   - 1 millisecond

    ======================================================================================================
     Execution times by group in descending order
    ======================================================================================================
    Snapshot.TfsFramework (Snapshot)                                                         - 1423 milliseconds
    CleanUpSnapshot (Snapshot)                                                               - 870 milliseconds

    2012年12月13日 0:52
  • 问题解决了,是collection出现了问题,用Tfsconfig collection /delete 解决
    • 已标记为答案 cookie king 2012年12月14日 2:01
    2012年12月14日 2:01