TFS 2010 中止服务活动

发布于 2024-11-17 05:13:49 字数 858 浏览 0 评论 0原文

今年年初,我推动建立 TFS,以采用更结构化的方法来处理事情(以前,每个人都会随心所欲地改变事情,这显然是一件坏事)。我设置了一个非常基本的单服务器 TFS 2010 安装。 TFS 数据库驻留在我们的一台开发服务器上 (SQL 2008)。

一切都很顺利,直到: 我们卸载了 SQL 2008,安装了 SQL 2008 R2 并重新连接了数据库。从那时起,TFS 就不可能了:

  • 客户端(SQL Mgt Studio 和 VS2008/2010)无法再连接(错误 404 未找到)
  • http://localhost:8080/tfs/ 给出:
    “服务器无法提供 Team Foundation 服务。 技术信息(供管理员使用): 由于应用程序配置不正确,无法处理请求。没有服务主机可用于该请求。”
  • Team Foundation 管理控制台找到了集合,一切似乎都正常。

为了快速启动事情:

  • 我重新启动了网站及其应用程序池,
  • 我重新启动了服务器

没有效果。

然后我停止了集合(有效)重新输入数据库信息,保存并再次启动集合但是,它一直挂在保存上,但没有执行任何操作,所以现在我有一个停止的集合。进行以下活动:

  • 准备集合(成功)
  • 创建集合(成功)
  • 服务集合(排队)
  • 分离集合(排队)(3次,因为我尝试了几次)

并且没有任何变化,

我的本地文件夹中有所有源,所以在极端情况下我可以。删除并卸载整个内容并重新开始,但是...我不想

这样做?

At the start of the year I pushed to setting up TFS for a more structured approach to things (before, everyone would change things as they went, obviously A Bad Thing). I set up a very basic single server TFS 2010 installation. The TFS databases resided on one of our Dev servers (SQL 2008).

Everything went well until:
We uninstalled SQL 2008, installed SQL 2008 R2 and reattached the databases. Since then TFS has been impossible:

  • The clients (SQL Mgt Studio and VS2008/2010) could no longer connect (error 404 not found)
  • http://localhost:8080/tfs/ gave:
    "Team Foundation services are not available from the server.
    Technical information (for administrator):
    The request could not be processed because the application is not configured correctly. No service host is available for the request."
  • Team Foundation Admin Console finds the collections, everything SEEMS ok.

In an effort to jumpstart things:

  • I restarted the website and it's application pool
  • I rebooted the server

No effect.

Then I stopped the collection (that worked) to re-enter the database information, save it and start the collection again. However, it kept hanging on the save. I tried to detach the collection, but that didn't do anything. So now I have a stopped collection with the following activities:

  • Prepare Collection (Success)
  • Create Collection (Success)
  • Servicing Collection (Queued)
  • Detach Collection (Queued) (3 times, since I tried this a couple of time)

and nothing is budging.

I have all source in my local folder, so in extremis I can delete and uninstall the whole thing and start over, but... I rather not.

Any way to unblock this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

做个少女永远怀春 2024-11-24 05:13:49

将 TFS 计算机帐户重新添加到新的 SQL Server 安装来解决此问题

EXEC master.dbo.sp_grantlogin @loginame = N'DOMAIN\MACHINE

好的,通过使用详细信息 此处。从那时起,所有任务都按其应有的方式进行。
引起我注意的是应用程序日志中的以下错误:

TF53010:出现以下错误
发生在 Team Foundation 中
组件或扩展: 日期 (UTC):
22/06/2011 18:07:22 机器:AZT-TS-02
应用程序域:TfsJobAgent.exe
集会:
Microsoft.TeamFoundation.Framework.Server,
版本=10.0.0.0,文化=中立,
公钥令牌=b03f5f7f11d50a3a;
v2.0.50727 服务主机:进程
详细信息:进程名称:TFSJobAgent
进程 ID:2980 线程 ID:3804
帐户名:NT AUTHORITY\NETWORK
服务

详细消息:出现错误
在作业代理执行期间。这
将重试操作。相似的
接下来五分钟内可能会出现错误
不被记录。异常消息:
TF246017:Team Foundation Server 可以
未连接到数据库。核实
托管的服务器
数据库是可操作的,并且
网络问题不阻塞
与服务器的通信。 (类型
数据库连接异常)

好的,通过使用详细信息 此处。从那时起,所有任务都按其应有的方式进行。
引起我注意的是应用程序日志中的以下错误:

TF53010:出现以下错误
发生在 Team Foundation 中
组件或扩展: 日期 (UTC):
22/06/2011 18:07:22 机器:AZT-TS-02
应用程序域:TfsJobAgent.exe
集会:
Microsoft.TeamFoundation.Framework.Server,
版本=10.0.0.0,文化=中立,
公钥令牌=b03f5f7f11d50a3a;
v2.0.50727 服务主机:进程
详细信息:进程名称:TFSJobAgent
进程 ID:2980 线程 ID:3804
帐户名:NT AUTHORITY\NETWORK
服务

详细消息:出现错误
在作业代理执行期间。这
将重试操作。相似的
接下来五分钟内可能会出现错误
不被记录。异常消息:
TF246017:Team Foundation Server 可以
未连接到数据库。核实
托管的服务器
数据库是可操作的,并且
网络问题不阻塞
与服务器的通信。 (类型
数据库连接异常)

ok, This was solved by re-adding the TFS machine account to the new SQL Server installation using

EXEC master.dbo.sp_grantlogin @loginame = N'DOMAIN\MACHINE

as detailed here. From then on all tasks proceeded as they should..
What tipped me off was the following error in the Application Log:

TF53010: The following error has
occurred in a Team Foundation
component or extension: Date (UTC):
22/06/2011 18:07:22 Machine: AZT-TS-02
Application Domain: TfsJobAgent.exe
Assembly:
Microsoft.TeamFoundation.Framework.Server,
Version=10.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a;
v2.0.50727 Service Host: Process
Details: Process Name: TFSJobAgent
Process Id: 2980 Thread Id: 3804
Account name: NT AUTHORITY\NETWORK
SERVICE

Detailed Message: There was an error
during job agent execution. The
operation will be retried. Similar
errors in the next five minutes may
not be logged. Exception Message:
TF246017: Team Foundation Server could
not connect to the database. Verify
that the server that is hosting the
database is operational, and that
network problems are not blocking
communication with the server. (type
DatabaseConnectionException)

as detailed here. From then on all tasks proceeded as they should..
What tipped me off was the following error in the Application Log:

TF53010: The following error has
occurred in a Team Foundation
component or extension: Date (UTC):
22/06/2011 18:07:22 Machine: AZT-TS-02
Application Domain: TfsJobAgent.exe
Assembly:
Microsoft.TeamFoundation.Framework.Server,
Version=10.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a;
v2.0.50727 Service Host: Process
Details: Process Name: TFSJobAgent
Process Id: 2980 Thread Id: 3804
Account name: NT AUTHORITY\NETWORK
SERVICE

Detailed Message: There was an error
during job agent execution. The
operation will be retried. Similar
errors in the next five minutes may
not be logged. Exception Message:
TF246017: Team Foundation Server could
not connect to the database. Verify
that the server that is hosting the
database is operational, and that
network problems are not blocking
communication with the server. (type
DatabaseConnectionException)

无人问我粥可暖 2024-11-24 05:13:49

好的时候,

尝试运行以下命令:

TFSConfig registerDB /DatabaseName:Tfs_Configuration /SQLInstance:SERVERNAME /Continue

RegisterDB 更新托管配置数据库的服务器的名称,在这种情况下应该解决您的数据库问题。您可以尝试的另一个命令是 RemapDBs

确保您“以管理员身份运行”这些命令,否则它们当然不会工作。

我猜测发生的情况是附加还不够,因为 TFS 内部映射不再了解您的 SQL Server 数据库在哪里。

希望有帮助。

Good times,

Try running the following command:

TFSConfig registerDB /DatabaseName:Tfs_Configuration /SQLInstance:SERVERNAME /Continue

RegisterDB updates the name of the server that hosts the configuration database and in this case should resolve your DB issues. Another command you could try is RemapDBs.

Make sure you "Run As Admin" for these commands or they of course will not work.

I am guessing what is going on is attaching isn't going to be enough because TFS internal mappings no longer understands where your SQL Server db is.

Hope that helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文