November 20, 2014

PostSetupConfigurationTaskException error when upgrading SharePoint 2013 with Wizard


When updating SharePoint through the wizard I got the the following error in the PCSDiagnostics log:

11/20/2014 18:01:28  51  ERR                                    Failed to upgrade SharePoint Products.
An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  Additional exception information: Failed to upgrade SharePoint Products.
Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException: Exception of type 'Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException' was thrown.
   at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run()
   at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

I my case it was the dbo account on three Content databases that was not set with the correct account. Probably because I had used my own account to install SharePoint in the first place. 

By changing the login account of the dbo user, to the correct SharePoint managed account the issue was solved and i could perform the SharePoint Configuation Wizard upgrade without errors.

To check and change account for the dbo user:

Right click the SharePoint database and select Properties
Under Files, change the Owner to the correct account

If you get an error that the user is already mapped to the database
 Then remove the user from the database before setting the Login account.