<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Robert Horvick's Weblog : tfsquiesce</title><link>http://blogs.msdn.com/roberthorvick/archive/tags/tfsquiesce/default.aspx</link><description>Tags: tfsquiesce</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>What to do when TfsQuiesce fails with "No associated service account for role TFSEXECROLE" error</title><link>http://blogs.msdn.com/roberthorvick/archive/2007/11/06/what-to-do-when-tfsquiesce-fails-with-no-associated-service-account-for-role-tfsexecrole-error.aspx</link><pubDate>Tue, 06 Nov 2007 18:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5937915</guid><dc:creator>RobertHorvick</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/roberthorvick/comments/5937915.aspx</comments><wfw:commentRss>http://blogs.msdn.com/roberthorvick/commentrss.aspx?PostID=5937915</wfw:commentRss><description>&lt;P&gt;When installing a service path on Team Foundation Server one of the first things that needs to happen is that TFS is "quiesced" - which basically means "to make quiet" - i.e. it's running but it's not accepting new client connections.&amp;nbsp; The tool that does this during the SP installation is called 'TfsQuiesce.exe".&amp;nbsp; &lt;/P&gt;
&lt;P&gt;This blog post is to explain what you can do when you see the following in your &lt;A class="" href="http://blogs.msdn.com/jmanning/archive/2007/07/21/i-m-having-problems-with-tfs-install-upgrade-repair-uninstall-where-are-the-log-files.aspx" mce_href="http://blogs.msdn.com/jmanning/archive/2007/07/21/i-m-having-problems-with-tfs-install-upgrade-repair-uninstall-where-are-the-log-files.aspx"&gt;log file&lt;/A&gt;&amp;nbsp;after a failed upgrade:&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;FONT face=Courier&gt;TFSQuiesce - Team Foundation Server Maintenance Tool&lt;BR&gt;Copyright (c) Microsoft Corporation.&amp;nbsp; All rights reserved.&lt;BR&gt;&lt;BR&gt;Using workflow file from location exe.&lt;BR&gt;Executing workflow 'Quiesce DT'...&lt;BR&gt;Disabling SQL Jobs for databases TFSActivityLogging,TFSBuild,TFSIntegration,TFSVersionControl,TFSWorkItemTracking,TFSWorkItemTrackingAttachments,TFSWarehouse&lt;BR&gt;Blocking service account from accessing database TFSActivityLogging&lt;BR&gt;&lt;STRONG&gt;No associated service account for role TFSEXECROLE.&lt;BR&gt;&lt;/STRONG&gt;Executing workflow 'Unquiesce DT'...&lt;BR&gt;Enabling SQL Jobs.&lt;BR&gt;Unblocking service account from accessing database TFSActivityLogging&lt;BR&gt;Unblocking service account from accessing database TFSBuild&lt;BR&gt;Unblocking service account from accessing database TFSIntegration&lt;BR&gt;Unblocking service account from accessing database TFSVersionControl&lt;BR&gt;Unblocking service account from accessing database TFSWorkItemTracking&lt;BR&gt;Unblocking service account from accessing database TFSWorkItemTrackingAttachments&lt;BR&gt;Unblocking service account from accessing database TFSWarehouse&lt;BR&gt;&lt;BR&gt;Workflow 'Quiesce DT' failed! ExitCode = 8000.&lt;BR&gt;10/31/07 12:17:15 DDSet_Status: Process returned 8000&lt;BR&gt;10/31/07 12:17:15 DDSet_Status: Found the matching error code&amp;nbsp; for return value '8000' and it is: '29206'&lt;BR&gt;10/31/07 12:17:15 DDSet_Error:&amp;nbsp; 8000&lt;BR&gt;10/31/07 12:17:15 DDSet_CARetVal: 29206&lt;BR&gt;10/31/07 12:17:15 DDSet_Status: QuietExec returned 29206&lt;/FONT&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Notice the bolded line "No associated service account for role TFSEXECROLE" - this is the key line.&lt;/P&gt;
&lt;P&gt;This error is indicating is that one or more of the databases have no members in the TFS exec role.&amp;nbsp; The reason we are running this check at all is to ensure that we are not running the upgrade as the service account user.&amp;nbsp; Let’s start by figuring out if this is a problem with all seven TFS databases or just one of them.&lt;/P&gt;
&lt;P&gt;Run the following SQL statement 7 times – each time changing the “use TfsVersionControl” to one of the other TFS databases:&lt;/P&gt;&lt;PRE&gt;use TfsVersionControl

SELECT  dpMember.name
FROM    sys.database_principals dp
JOIN    sys.database_role_members drm
ON      drm.role_principal_id = dp.principal_id
JOIN    sys.database_principals dpMember
ON      dpMember.principal_id = drm.member_principal_id
WHERE   dpMember.Type = 'U'
        AND dp.name IN ('TFSEXECROLE')
&lt;/PRE&gt;
&lt;P&gt;I expect one or more of the result sets to be empty.&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Ultimately the&amp;nbsp;role can’t be empty.&amp;nbsp; When you find the database(s) with the empty&amp;nbsp;TFSEXECROLE role&amp;nbsp;you should add the appropriate service account user to the role for that database(s).&lt;/P&gt;
&lt;P mce_keep="true"&gt;Re-run the SQL snippet to ensure the fix was made properly and now&amp;nbsp;running the installation should past this error.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5937915" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/roberthorvick/archive/tags/tfsquiesce/default.aspx">tfsquiesce</category><category domain="http://blogs.msdn.com/roberthorvick/archive/tags/tfs/default.aspx">tfs</category><category domain="http://blogs.msdn.com/roberthorvick/archive/tags/servicing/default.aspx">servicing</category></item></channel></rss>