You run the SharePoint Products Configuration Wizard, after installing patches. The Wizard runs through configuration steps 1 - 8 without issue, but then fails on step 9. You review the diagnostics log (PSCDiagnostics_...) and see the following error message:
The exclusive inplace upgrader timer job failed.You then review the Upgrade log and see the following:
08/16/2014 23:46:36.44 OWSTIMER (0x2F90) 0x1330 SharePoint Foundation Upgrade SPContentDatabaseSequence al2pi ERROR Error running SQL DDL Script: IF EXISTS (SELECT TOP 1 1 FROM sys.database_principals WHERE name = N'db_owner' A.... System.Data.SqlClient.SqlException (0x80131904): Cannot alter the role 'db_owner', because it does not exist or you do not have permission.Procedure
- Identify SharePoint Timer service account
- Login to any machine in the farm hosting SharePoint.
- Open the Services control panel.
- Scroll down to the SharePoint Timer Service
- Identify the account running this service (this will usually be the SharePoint farm service account, eg, spFarm).
- Update farm service account database mapping
- Login to the farm's SQL Server as an administrator
- Open SQL Server Management Studio
- Expand Security > Logins
- Double-click on the farm service account
- In the left-hand Select a page panel, select User Mapping
- In the right Results panel, select each database in turn and check to see whether the db_owner checkbox is checked. Don't worry about the system databases (master, model, msdb, tempdb), nor the workflow databases (eg, sbGatewayDatabase, WFInstanceManagement), though, it would be a good thing to do so, if you also used the farm service account as the workflow service account.
- Click OK.
- Update SharePoint
- Login to the first WFE as the SharePoint Setup user Administrator account.
NOTE: it is imperative that you run this using the SharePoint Setup User Administrator account. Using another account, such as your own administrator account, may complete the Wizard, but may also introduce subtle inconsistencies into the server and farm configuration that can be very confusing and challenging to resolve.
- Launch the SharePoint Products Configuration Wizard.
- “The exclusive inplace upgrader timer job failed” when running the Products Configuration Wizard in SharePoint 2013
- Thanks to Bernado Nguyen-Hoan for posting the original solution to this problem.
- Bernado implemented this solution by granting the farm service account the sysadmin role to the database server. While this certainly works, a least-permissions approach is what I took, ensuring that the farm service account was granted dbo permissions to all farm databases.
- This problem was encountered after installing the August 2014 PU patches for SharePoint 2013.
- If after launching SQL Management Studio, you don't see all the databases listed, or you see the momentary prompt appear, [some] databases were unavailable and so won't be listed, be sure you launched Management Studio with elevated privileges.