【问题标题】:TFS246017: Team Foundation Server could not connect to the databaseTFS246017:Team Foundation Server 无法连接到数据库
【发布时间】:2021-02-23 17:17:02
【问题描述】:

在 VS 中尝试分支操作时,我收到错误消息 TFS246017: Team Foundation Server could not connect to the database. Verify that the instance is specified correctly, that the server that is hosting the database is operational, and that network problems are not blocking communication with the server.(错误消息框看起来像 this question 中的那个)。

我登录到 TFS 虚拟机。在事件查看器中,我看到一条带有与上述相同消息的警告 + Process Name: w3wp, User: domain\MyUser。 IIS TFS 站点已启动。

我使用domain\MyUserdomain\tfssetup(这是运行Visual Studio Team Foundation Background Job agent 服务的用户)在TFS 机器上打开了TFS 控制台,控制台打开成功。两个用户都出现在Administration Console Users 列表中。我为两个用户做了reapply account。我还为domain\MyUser 做了update password。它显示了一个带有数据源和初始目录的连接字符串。我登录到数据库机器,打开 SQLSERVER 用户:tfssetup 用户与系统管理员和相关实例的所有者在那里。我还添加了domain\MyUser 并添加了管理员权限(但错误仍然存​​在)。

我还在 TFS 机器上安装了 SSMS,并且能够使用 domain\MyUserdomain\tfssetup 连接到数据库服务器并查看表。

过去没有发生此错误。事先在源代码管理($/Project1/Main$/Project2/Main)中分支不同位置时不会发生此错误。源代码管理资源管理器似乎显示正常(因此 TFS 正在工作)。使用 Visual Studio 2013。TFS 2017。 AFAIK 虚拟机未移动,IP 地址未更改。使用 vSphere 似乎有足够的磁盘空间用于 TFS 和 DB 机器。大约 4 秒后出现错误。

还有什么可以尝试的?

【问题讨论】:

  • 这里有一个case,你可以参考类似的问题。

标签: tfs


【解决方案1】:

查看 TFS SQLSERVER 日志有一个“SERVER ASSERTION”错误,这就是 TFS 通用错误的原因。

在我的情况下,错误与the one here 非常相似。 CHECKDB 和更新到最新的服务包没有帮助。有帮助的是按照该线程中的建议将恢复模式更改为完全。

【讨论】:

    猜你喜欢
    • 2018-08-09
    • 1970-01-01
    • 1970-01-01
    • 2016-06-26
    • 1970-01-01
    • 2010-10-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多