Troubleshooting Scrum for Team System v2.2 installation in TFS 2008

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.

Error TF30170: The plugin Microsoft.ProjectCreationWizard.Portal failed during task SharePointPortal from group Portal.
Explanation Plugin error text: “TF30272: Template not found on the server”
User Action Contact your Team Foundation Server administrator.

I looked at the event log on TFS machine and I saw the following error.

Event Description: TF30162: Task “SharePointPortal” from Group “Portal” failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: TF30272: Template not found on the server

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

hmmm……  Interesting.  I saw following error in log file( in 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.

1) CommandC:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BINstsadm -o enumsolutions
Output:
<Solutions Count=”1″>
<Solution Name=”conchango.teamsystem.scrum.sharepoint.wsp”>
<Id>566d05e7-28a8-4612-b3f4-fd0119c6da50</Id>
<File>Conchango.TeamSystem.Scrum.Sharepoint.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>TRUE</WebApplicationSpecific>
<ContainsGlobalAssembly>TRUE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<LastOperationResult>DeploymentSucceeded</LastOperationResult>
<LastOperationTime>10/10/2008 2:56 PM</LastOperationTime>
</Solution>
</Solutions>

2) Command: stsadm -o enumtemplates
Output:

VSTS_MSFAgile – Language: 1033 – Site Template: _GLOBAL_#7 – Template Id: 1
VSTS_MSF_CMMI – Language: 1033 – Site Template: _GLOBAL_#8 – Template Id: 1
(Note:  Missing Scrum for Team System template here that means it’s not installed)

3) Command: stsadm -o deletesolution -name “conchango.teamsystem.scrum.sharepoint.wsp” -override
Output: Operation completed successfully.

4) Command: stsadm -o deletetemplate -title SCRUM

Output:  Operation completed successfully.
or
Output:  Could not find web template SCRUM

5) Command:  iisreset

6) Command:  stsadm.exe -o addsolution -filename “C:Program FilesConchangoScrum for Team SystemSFTS WSS TemplateConchango.TeamSystem.Scrum.Sharepoint.wsp”
Output: Operation completed successfully.

7) Command: stsadm.exe -o deploysolution -name “Conchango.TeamSystem.Scrum.Sharepoint.wsp” -local -allowgacdeployment -allcontenturls -allowcaspolicies -force

When I ran above command, I got following error message.
“This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.”

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/”

Oppss!!! I got another error.
“The Web application at  could not be found. Verify that you have typed the URL correctly.”

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/”

Output: The operation completed successfully

8 ) Command: stsadm -o enumsolutions

Output:
<Solutions Count=”1″>
<Solution Name=”conchango.teamsystem.scrum.sharepoint.wsp”>
<Id>566d05e7-28a8-4612-b3f4-fd0119c6da50</Id>
<File>conchango.teamsystem.scrum.sharepoint.wsp</File>
<Deployed>TRUE</Deployed>
<WebApplicationSpecific>TRUE</WebApplicationSpecific>
<ContainsGlobalAssembly>TRUE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<Deployment WebApplication=”http://TFSServer:1212/” />
<LastOperationResult>DeploymentSucceeded</LastOperationResult>
<LastOperationTime>10/13/2008 9:02 AM</LastOperationTime>
</Solution>
</Solutions>

9) Command: stsadm -o enumtemplates

Output:
SCRUM – Language: 1033 – Site Template: _GLOBAL_#19 – Template Id: 11254
Scrum_for_Team_Sytem
VSTS_MSF_CMMI – Language: 1033 – Site Template: _GLOBAL_#8 – Template Id: 1
VSTS_MSFAgile – Language: 1033 – Site Template: _GLOBAL_#7 – Template Id: 1

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!

Hope this article helps you troubleshooting the issue I had faced installing Scrum for Team System template in TFS 2008.
Posted in Microsoft Technology Tagged with: ,

Ads