TFS 2010 中止服务活动
今年年初,我推动建立 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 TFS 计算机帐户重新添加到新的 SQL Server 安装来解决此问题
好的,通过使用详细信息 此处。从那时起,所有任务都按其应有的方式进行。
引起我注意的是应用程序日志中的以下错误:
ok, This was solved by re-adding the TFS machine account to the new SQL Server installation using
as detailed here. From then on all tasks proceeded as they should..
What tipped me off was the following error in the Application Log:
好的时候,
尝试运行以下命令:
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.