目前我正在尝试将我们的 tfs2018 服务器升级到本地 Devops2020 服务器。
我们有多个集合,我们决定将非关键集合迁移到新服务器,为它们配置所有构建代理,然后稍后迁移关键集合。
在需要时混淆信息
TF246064: No database could be found for the following host: Intranet Apps. The host has the following ID: #THEGUID#. To fix this problem, use the TFSConfig RemapDBs command-line tool and make sure that you specify the SQL Server instance that contains this database.
尝试运行 remapdbs
TfsConfig remapDBs /DatabaseName:sqlserver\devops;Tfs_Configuration /SQLInstances:sqlserver\devops /preview
我也遇到了同样的问题。
TF246064: No database could be found for the following host: Intranet Apps. The host has the following ID: #THEGUID#. To fix this problem, use the TFSConfig RemapDBs command-line tool and make sure that you specify the SQL Server instance that contains this database.
我查看 db sql\devops tfs_configuration 查看 [Tfs_Configuration].[dbo].[tbl_ServiceHost]
然后看到
主机 ID:#THEGUID#
名称:内联网应用
数据库 ID:4
我看着 [Tfs_Configuration].[dbo].[tbl_Database]
数据库 ID :4
ConnectionString:数据源=sqlserver\tfs;初始目录=Tfs_DefaultCollection;集成安全=真sqlserver\tfs;
数据库名称:Tfs_DefaultCollection
我查看 DefaultCollection db 的属性并查看
<块引用>TFS_SNAPSHOT_COLLECTIONID:#THEGUID#
<块引用>TFS_SNAPSHOT_STATE:完成
看起来在我加入和旧版本之前,他们可能已将 DefaultCollection 重命名为 Intranet Apps,但据我所知,这不会破坏任何内容。 在这一点上不确定我的意思是不要删除 servicehost 表中的条目