Connection problems after installing Team Foundation Server Service Pack 1
As you may have read (http://blogs.msdn.com/robcaron/archive/2006/12/14/1292136.aspx) Service Pack 1 for Team Foundation Server (and Visual Studio) has finally released. I've said it before and I'll say it again - Team Foundation Server really rocks!! It is the heart of our small software development business and if it stopped working for some reason we would be sunk. So you can guess how delighted I was after I had installed TFS SP1 to find that the Team Foundation Server was no longer working or accessible from any Team Explorer clients, even those running on the TFS server box itself. Every attempt to access the TFS server via Team Explorer or through a browser directly to the Web services resulted in a raft of HTTP 403 or 503 errors. Examining the event logs on the server showed a wide range of TFS errors including things such as not being able to load the UI culture information and the helpful TF53010: An unexpected condition has occurred in a Team Foundation component. Most interestingly the logs showed SQL Server login failures for the Team Foundation Server service account. After a couple of very frustrating hours of browsing events logs, IIS logs, etc I finally resolved the problem and thought I'd document it here for the benefit of anyone else who might experience similar issues.
Before you install TFS SP1 it informs you that you need to download and install another update first which puts the TFS server in a quiescent state so that there is no activity going on on the server whilst the update is performed, otherwise the TFS database may become corrupted. Once this in place then you can do the update, which works correctly. The problems seem to stem first update puts the server in a quiescent state by applying an IP address restriction to the entire web server used as the application tier front-end so that it can only accept requests from the localhost address (if you have other web sites hosted on this server, like our main company website for instance, this really isn't funny, though I appreciate that was probably the easiest way for the VS team to achieve the behaviour they require for update.) It also modifies some of the TFS databases and places them into single-user mode. My guess is that at the end of the SP1 update these changes are supposed to be undone leaving the TFS server in its original state.
On our server, the IP address restriction was not removed from IIS and four of the TFS databases (TfsActivityLogging, TfsBuild, TfsIntegration and TfsVersionControl) were left in single-user mode. Manually temoving the IP address restriction using inetmgr and resetting the four databases back to multi-user mode using SQL Server Management Studio fixed the problem and all is now working as it should. Having finally brought TFS back to life, I have to say that it was definitely worthwhile installing SP1 as there are some noticeable performance improvements, and I haven't even had a chance to really paly with it yet.
del.ico.us |
Digg It |
Technorati |
StumbleUpon |
Furl |
reddit