Iis – Migrate Team Foundation Server 2010 to new hardware

iismigrationteam-foundation-server

Situation:
TFS was installed on a windows 7 pc, to replace the source safe 2005. People log in via the tfs web portal and visual studio users connect also to tfs.

Now a new server arrived and the TFS needs to be migrated to the new server.

What I did so far:

  1. installed TFS (advanced wizard) on the server
  2. installed tfs power tools on the server
  3. took a backup on the pc
  4. restored the backup on the server (via the TFS power tools)
  5. the server had the wrong site names, still from the pc. (like: http://pc:8080/tfs instead of http://server:8080/tfs)
  6. I managed to change the urls to the correct ones

I went to http://server:8080/tfs but didn't work.

When I stopped the TFS site on the pc in IIS and went to http://server:8080/tfs, that worked, I see the portal now but with error: TF31002.

Any idea how to fix error TF31002 or what should be done?
(Sharepoint is also installed on that server)

Kind regards

Best Answer

There is a process for moving TFS: it isn't just about backup & restore of the database. It is documented on MSDN Moving Team Foundation Server.

You would be better to:

  • Create new TFS installation on the server. Do not create any project collections.
  • On the PC detach each project collection.
  • On the PC backup each of the now disconnected project collection databases.
  • On the server restore each project collection databases.
  • In TFS on the server attach to each project collection database.

(Note: this means the configuration database is not moved: I suspect this is your underlying problem.)

The detach and attach of the project collections is done with the Team Foundation Server Administration Console in the Team Project Collections node.