TFS损坏的数据库项目Odyssee

时间:2014-08-08 09:06:50

标签: visual-studio tfs visual-studio-2013 tfs2013

  1. 我一直在另一台机器开发机器上升级到另一个Visual Studio版本2013(更新3)。

  2. 然后我尝试在现有集合中创建测试项目。它崩溃了。尝试了三次然后删除了损坏的项目。

  3. 之后我去了。那么我也应该升级到TFS 2013(更新3)。所以它试图升级我现有的集合。对于项目损坏的集合,它失败了。

  4. 所以我很容易恢复数据库。但那并不容易。它告诉我,我也需要恢复配置数据库。为了做到这一点,它说我需要重命名配置db。但后来我无法启动管理工具来恢复?!它冻结了。

  5. 你会建议什么?我有一个备份但到目前为止我无法恢复它。我不明白为什么它告诉我我也需要恢复配置备份。我一直认为收藏是独立的。

  6. 以下是一些额外的屏幕截图:

    升级progess问题: TFS Upgrade Progess problem 完整截图: enter image description here

    [2014-08-07 23:30:13Z][Error] TF400744: An error occurred while executing the following script: SetRecoveryModelToSimple.sql. Failed batch starts on the line 1. Statement line: 1. Script line: 1. Error: 5069 ALTER DATABASE statement failed.
    

    如我所知,我已经运行了最佳实践分析器。 enter image description here

    升级日志实际上很大。我只发布最后一行:

    "[Info   @23:29:51.189] 
    [Info   @23:29:51.189] +-+-+-+-+-| ResultsSqmData |+-+-+-+-+-
    [Info   @23:29:51.189] Feature: ApplicationTier (1)
    [Info   @23:29:51.190] Feature: ApplicationTier; previousFailure: False
    [Info   @23:29:51.192] Error count: 0
    [Info   @23:29:51.192] Warning count: 0
    [Info   @23:29:51.192] Overall Result: TotalSuccess (1)
    [Info   @23:29:51.192] WebSiteData: 9
    [Info   @23:29:51.192] SqlData: 8
    [Info   @23:29:51.193] RSData: 0
    [Info   @23:29:51.193] WSSData: 0
    [Info   @23:29:51.193] Wizard: UpgradeWizard (4)
    [Info   @23:29:51.193] TfsConfigData: 8194
    [Info   @23:29:51.197] serviceLevel: Dev12.M68
    [Info   @23:29:51.197] Fatal Error Location: 0
    [Info   @23:29:51.197] Activity = ApplicationTierUpgrade (4)
    [Info   @23:29:53.053] ResultSqmData.UpdateIssues
    [Info   @23:29:53.068] no issues
    [Error  @06:53:08.370] TF400744: An error occurred while executing the following script: SetRecoveryModelToSimple.sql. Failed batch starts on the line 1. Statement line: 1. Script line: 1. Error: 5069 ALTER DATABASE statement failed.
    [Info   @06:53:08.385] To configure the new features for a team project, follow the steps in http://go.microsoft.com/fwlink/?LinkID=229859 
    "
    

    Start error

    当我尝试去掉它时会发生这种情况:

    TF401219: The team project collection 'XXX' cannot be detached because its version ID is different than the ID for the configuration database. The collection has the following version: Dev12.M62. The Team Foundation Server is at the following version: Dev12.M68.
    

    当我尝试恢复备份时,会发生这种情况:

    TF400990: Database Tfs_Configuration exists on SQL instance NUBO-XXX\SqlExpress. Please drop or rename the existing database before the restore operation
    

1 个答案:

答案 0 :(得分:0)

首先要保持冷静。

在尝试其他选项之前,我会尝试完成升级。从您显示的内容看来,您在SQL级别遇到问题,可能是权限:检查TFS服务帐户和您的用户。

如果要回滚,并且使用了集成备份,则必须在实践中恢复所有数据库。