2015-12-08 43 views
0

我們有一個Tfs 2010 SP1團隊項目集合, 我們試圖分離它並採取備份的數據庫並重新附加它。 Detach進展良好。 附加時,我們得到了這個錯誤。Tfs 2010附加收集錯誤KB2278944CollectionInstall.sql無效的列名'System.AreaID'

[Error] KB2278944CollectionInstall.sql Line 1587 Error: Invalid column name 'System.AreaID'. Invalid column name 'System.IterationID'. Invalid column name 'ID'. Invalid column name 'ID'. Invalid column name 'ID'. Stamping DB...

在深入瞭解分析到日誌中,我們看到了這個錯誤在的TFS日誌

[Error] KB2278944CollectionInstall.sql Line 1587 Error: Invalid column name 'System.AreaID'. 
Invalid column name 'System.IterationID'. 
Invalid column name 'ID'. 
Invalid column name 'ID'. 
Invalid column name 'ID'. 
Stamping DB... 
[Info @11:50:21.425] [2015-12-08 09:43:55Z][Informational] Microsoft.TeamFoundation.Framework.Server.CollectionServicingException: KB2278944CollectionInstall.sql Line 1587 Error: Invalid column name 'System.AreaID'. 
Invalid column name 'System.IterationID'. 
Invalid column name 'ID'. 
Invalid column name 'ID'. 
Invalid column name 'ID'. 
Stamping DB... ---> System.Data.SqlClient.SqlException: Invalid column name 'System.AreaID'. 
Invalid column name 'System.IterationID'. 
Invalid column name 'ID'. 
Invalid column name 'ID'. 
Invalid column name 'ID'. 
Stamping DB... 
    at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.MapException(SqlException ex, QueryExecutionState queryState) 
    at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.HandleException(SqlException ex) 
    at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.Execute(ExecuteType executeType, CommandBehavior behavior) 
    at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteNonQuery(Boolean bindReturnValue) 
    at Microsoft.TeamFoundation.Framework.Server.SqlScriptResourceComponent.ExecuteSql(String sqlScriptResourceName, String[] lines, SqlParameter[] sqlParameters) 
    --- End of inner exception stack trace --- 
    at Microsoft.TeamFoundation.Framework.Server.SqlScriptResourceComponent.ExecuteSql(String sqlScriptResourceName, String[] lines, SqlParameter[] sqlParameters) 
    at Microsoft.TeamFoundation.Framework.Server.SqlScriptResourceComponent.ExecuteSql(Stream sqlScriptResource, String sqlScriptResourceName, SqlParameter[] sqlParameters, Boolean retryIfLostConnection) 
    at Microsoft.TeamFoundation.Server.Servicing.TFCollection.FrameworkStepPerformer.ExecuteSql(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 @11:50:21.425] [2015-12-08 09:43:55Z] Servicing step Tfs2010RtmKB2278944Install SQL servicing step failed. (ServicingOperation: Tfs2010SP1Install; Step group: Tfs2010RtmKB2278944Install) 
[Info @11:50:21.425] [2015-12-08 09:43:55Z][Informational] Clearing dictionary, removing all items. 
[Error @11:50:21.425] The servicing operation failed. 

結束時,我試圖阻止,並開始,分離和附加多次。 重新啓動的機器也沒有什麼工作

回答

1

其中工程最終的解決方案是

Get into the TFS App Tier server, open command prompt Navigate to the Tools folder.

`E:\Program Files\Microsoft Team Foundation Server 2010\Tools>' 

運行下面的命令,你會得到輸出如下

TfsConfig repair

日誌發送到文件C :\ ProgramData \ Microsoft \ Team Foundation \ Server Configuration \ Logs \ CFG_SVC_UNK_ 1208_103237.log Command:repair TfsConfig - 團隊基礎服務器配置工具 版權所有(c)Microsoft Corporation。版權所有。 獲取維修鎖。 獲取維修鎖。 正在停止應用程序... 應用程序已成功停止。 啓動應用程序... 應用程序啓動成功。

現在進入團隊管理控制檯,檢查標籤命名狀態Tfs Attach Error servicing error

會有它上面的另一項說

Servicing collection Queued.

幾分鐘後,它應該說

Servicing collection Succeeded

然後你可以在線收集集合。 :)