为什么从TFS 2010升级到TFS 2015的TFS升级到“验证数据库连接字符串是有效还是可修复”?

时间:2017-09-22 18:15:51

标签: sql-server tfs windows-server-2012-r2

我有一个远程SQL Server 2012 SP1实例,我已在该服务器上恢复了TFS数据库Tfs_Configuration,TfsWarehouse和Tfs_MyCollection。这些数据库来自TFS 2010 / SQL Server 2008应用程序/数据层的备份。

我的新应用程序层服务器是TFS 2015 Update 4 / Windows 2012 R2的全新安装。我使用TFS配置中心升级向导配置我的TFS 2015实例以使用从TFS 2010 / SQL Server 2008组合中还原的远程SQL Server数据库。

不幸的是,准备检查在“验证数据库连接字符串是有效还是可修复”时挂起并且没有进展。

为什么会这样?根据我所遵循的文件https://docs.microsoft.com/en-us/vsts/tfs-server/upgrade/tfs-2005-to-2015

,这个过程看起来非常简单

*注意:我无法运行TFSConfig RemapDB,因为2015服务器没有DB开头。

Wizard Screenshot

以下是来自C:\ ProgramData \ Microsoft \ Team Foundation \ Server Configuration \ Logs

的TFS_TFS Upgrade_0922_172528的尾端
[Info   @13:26:42.792] +-+-+-+-+-| Running Tfs2010OrLaterDatabaseUpgradable: Verifying that existing collection database can be upgraded |+-+-+-+-+-
[Info   @13:26:42.792] 
[Info   @13:26:42.792] +-+-+-+-+-| Verifying that existing collection database can be upgraded |+-+-+-+-+-
[Info   @13:26:42.792] Starting Node: VPCUPGRADE
[Info   @13:26:42.792] NodePath : VINPUTS/Progress/Conditional/VPCUPGRADE
[Info   @13:26:43.447] Node returned: Success
[Info   @13:26:43.447] Completed Tfs2010OrLaterDatabaseUpgradable: Success
[Info   @13:26:43.447] -----------------------------------------------------
[Info   @13:26:43.447] 
[Info   @13:26:43.447] +-+-+-+-+-| Running VerifyShouldRunRemapDbs: Verifying the database connection strings are valid or fixable |+-+-+-+-+-
[Info   @13:26:43.447] 
[Info   @13:26:43.447] +-+-+-+-+-| Verifying the database connection strings are valid or fixable |+-+-+-+-+-
[Info   @13:26:43.447] Starting Node: VREMAPDBS
[Info   @13:26:43.447] NodePath : VINPUTS/Progress/Conditional/VPCUPGRADE/VREMAPDBS
[Info   @14:13:27.256] VerifyShouldRunRemapDbs: ValidAfterAutoFix
[Info   @14:13:27.256] Node returned: Success
[Info   @14:13:27.256] Completed VerifyShouldRunRemapDbs: Success
[Info   @14:13:27.256] -----------------------------------------------------
[Info   @14:13:27.256] 
[Info   @14:13:27.256] +-+-+-+-+-| Running VerifyCollectionsReachable: Verifying the collection databases are reachable |+-+-+-+-+-
[Info   @14:13:27.256] 
[Info   @14:13:27.256] +-+-+-+-+-| Verifying the collection databases are reachable |+-+-+-+-+-
[Info   @14:13:27.256] Starting Node: VCOLLECTIONSREACHABLE
[Info   @14:13:27.256] NodePath : VINPUTS/Progress/Conditional/VPCUPGRADE/VCOLLECTIONSREACHABLE
[Info   @14:13:27.259] Getting Reachable Collections
[Info   @14:13:27.273] Scanning for Team Project Collection databases.

1 个答案:

答案 0 :(得分:0)

从错误消息中,您的Tfs_Configuration数据库似乎有问题。请尝试从旧TFS 2010备份此数据库,然后在新服务器上再次恢复(如果有)。

Configure my TFS 2015 instance to use the remote SQL Server databases that were restored from the TFS 2010/SQL Server 2008 combo.根据您的描述,SQL2012和SQL2008安装在一台服务器上,同时确保在使用TFS升级向导时卸载SQL2008 Server,否则可能会导致某些问题或冲突。

而且你直接安装了TFS2015 update4。建议您首先安装TFS2015 RTM版本并进行升级,在TFS升级后配置功能,最后将TFS2015更新为TFS2015 update4。见TFS support for SQL Server