Share via


PSconfig wizard fails after you install any update on SharePoint server

This article describes how to address the following issue:
An upgrade to SharePoint 2013 sp1 from a previous SharePoint version ( maybe specifically 2010 SP1 ). Installation of SharePoint 2013 SP1 may seem to go smoothly. When you try to run the PSconfig wizard to update SharePoint databases, site features, etc, it stops with the below errors.

Environment

SharePoint 2010 standalone environment

 

ULS Logs

UpdatedConcurrencyException: The object SPAdministrationWebApplication was updated by another user. Determine if these changes will conflict, resolve any differences, and reapply the second change. This error may also indicate a programming error caused by obtaining two copies of the same object in a single thread. Previous update information: User: Machinname\username Process:PSCONFIG (2624) Machine:machinename Time:April 22, 2015 10:54:48.0000 Current update information: User: machinename\username Process:PSCONFIG (2624) Machine:machinename Time:April 22, 2015 10:54:48.2154

Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.SharePoint.Upgrade.SPContentDatabaseIntegrity.CheckAppOrphans()
at Microsoft.SharePoint.Upgrade.SPContentDatabaseIntegrity.Check(SPContentDatabaseIntegrityCheckOptions options)
at Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence.ContentDatabaseDataIntegrityCheck()
at Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence.PreUpgrade()

Upgrade.log

This upgrade session has been stopped. Possible causes include the process being terminated abruptly or the OS has rebooted. Please restart the upgrade again.

PSCDiagnostics logs

An exception of type Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown. Additional exception information: Upgrade completed with errors. Review the upgrade log file located in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\Upgrade-20150422-104856-16.log. The number of errors and warnings is listed at the end of the upgrade log file.

Microsoft.SharePoint.Upgrade.SPUpgradeException: Upgrade completed with errors. Review the upgrade log file located in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\Upgrade-20150422-104856-16.log. The number of errors and warnings is listed at the end of the upgrade log file.
at Microsoft.SharePoint.Upgrade.SPUpgradeSession.CheckPoint()
at Microsoft.SharePoint.Upgrade.SPUpgradeSession.LogEnd()
at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run()
at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

 

Troubleshooting steps tried

Running the below command, may not help:

PSCONFIG -cmd upgrade -inplace b2b -wait -force​

Confirm that there was no password change in SharePoint farm. No issues related to content databases. Checked permission for the farm account on SQL server and SharePoint server.

User Account Control (UAC) was enabled on server to disable it, so disabled it. Tried to reboot SharePoint machine and disabled Firewall.

 

Resolution

You may find that the configuration database is locked. To resolve this issue, execute the below command in PowerShell:

stsadm -o setproperty -pn “command-line-upgrade-running” -pv No

Then refresh SharePoint with the following commands:

IISreset
net stop sptimerv4
net start sptimerv4

Running the PSconfig wizard from PowerShell should now complete without any issue:

PSCONFIG -cmd upgrade -inplace b2b -wait -force