We recently upgraded TFS 2005 to TFS 2008. Since we follow Agile-Scrum methodology, we had Scrum for Team System template installed in TFS 2005. It wasn’t so easy to migrate TFS 2005 to TFS 2008 so we had decided to have a back up of TFS 2005 and install clean TFS 2008. While installing scrum for team system template v2.2 (sfts v2.2), we ran into issue that I would like to share with and how we fix those issue.
We ran sfts v2.2 setup on TFS box and setup wizard ended prematurely. Damn……. We got a problem right at the beginning. Ok so I thought let’s uninstall it because it might have installed some of components. I tried uninstalling setup from control panel -> Add Remove Program but got error saying “Fatal error during installation”. May be sfts v2.2 setup is corrupted I need some tool that clean up left over files and registry entry that sfts v2.2 setup installed. I talked to IT guy in our company and he gave me revo uninstaller and using that I was able to uninstall setup. Than I tried installing all three components (Scrum for Team System – Process Template, Scrum for Team System – Event Services, Scrum for Team System – WSS 3.0 Site Template) separately and setup succeeded. That’s good sign.
So next step was to create a Team Project. When I was trying to create a team project using sfts v2.2 template, it threw following error message.
I looked at the event log on TFS machine and I saw the following error.
As you see in error message, TFS can’t find the Scrum template while creating a team project that means Scrum template is not installed properly even though setup was succeeded. Is it really the problem in stfs v2.2 setup? I wanted to make sure that there is no problem in setup. I uninstalled setup and ran the setup using msiexec command so that it logs every steps that setup performs and also logs exception that occurred during installation. If you are not familiar with msiexec command line option, you can refer this msdn article for more detail.
msiexec /i “c:setupsftsv2.2.msi” /L c:logfile.txt
A solution with the same name “conchango.teamsystem.scrum.sharepoint.wsp” or id “566d05e7-28a8-4612-b3f4-fd0119c6da50” already exists in the solution store. C:Program FilesConchangoScrum for Team SystemSFTS WSS TemplateConchango.TeamSystem.Scrum.Sharepoint.wsp: The Solution installation failed.
That means setup failed adding solution to sharepoint. I thought let’s do that steps manually. I found the command line options to install it manually. Here is the steps to add and deploy solutions using stsadm command line option.
2) Command: stsadm -o enumtemplates
3) Command: stsadm -o deletesolution -name “conchango.teamsystem.scrum.sharepoint.wsp” -override
Output: Operation completed successfully.
4) Command: stsadm -o deletetemplate -title SCRUM
5) Command: iisreset
7) Command: stsadm.exe -o deploysolution -name “Conchango.TeamSystem.Scrum.Sharepoint.wsp” -local -allowgacdeployment -allcontenturls -allowcaspolicies -force
May be I need to specify url of website where to deploy solution.
7) Command:stsadm.exe -o deploysolution -name “Conchango.TeamSystem.Scrum.Sharepoint.wsp” -local -allowgacdeployment -allowcaspolicies -force -url “http://TFSServer/”
I think I know where I did mistake. The reason I got that error was I specified the default website url (http://TFSServer) and sharepoint website was deployed at port 1212 that’s why it’s not able to deploy solution under http://TFSServer.
7) Command: stsadm.exe -o deploysolution -name “Conchango.TeamSystem.Scrum.Sharepoint.wsp” -local -allowgacdeployment -allowcaspolicies -force -url “http://TFSServer:1212/”
8 ) Command: stsadm -o enumsolutions
9) Command: stsadm -o enumtemplates
As you see the output of last two command, it seems like solution is deployed successfully. That’s good sign. Now let’s create team project and see whether I got success or not. Bingo! I created a team project successfully. My efforts succeeded!