Link to home
Start Free TrialLog in
Avatar of Jarrad Koppen
Jarrad KoppenFlag for Australia

asked on

Error when Updating DB via Products Configuration Wizard

Hi,

I've been trying to update our Databases for Sharepoint 2016 and I seem to get the same following error when Performing configuration task 2 of 6 during the process

An exception of type System.MemberAccessException was thrown.  Additional exception information: Cannot create an instance of System.Collections.Generic.Dictionary`2[Microsoft.SharePoint.Administration.SPUrlZone,System.Collections.Generic.List`1[T]] because Type.ContainsGenericParameters is true.

I believe it to be a permissions error but I'm running the cmd as administrator and the account I'm using has admin privileges for both the SP and SQL server.

Any thoughs?

Also below is a dump of the PSCDiag log file generated

04/29/2019 17:29:43  1  INF            Entering function TaskDriverStateChange.Enter
04/29/2019 17:29:43  1  INF              Acquiring the writer lock to change the state
04/29/2019 17:29:43  1  INF              Current state of the task driver is neverrun.  You want to change it to stoppingrun
04/29/2019 17:29:43  1  INF              Changed state of the task driver to neverrun
04/29/2019 17:29:43  1  INF              Released the writer lock to change the state
04/29/2019 17:29:43  1  INF            Leaving function TaskDriverStateChange.Enter
04/29/2019 17:29:43  1  INF            Entering function TaskDriver.FireOnTaskDriverEvent
04/29/2019 17:29:43  1  INF              Entering function CommandLine.TaskDriverEventHandler
04/29/2019 17:29:43  1  INF                Received a TaskDriverEventHandler: TaskDriverEventArgs.EventCriticalityType info, TaskDriverEventArgs.EventType stopping, message Successfully stopped the configuration of SharePoint Products.
04/29/2019 17:29:43  1  INF              Leaving function CommandLine.TaskDriverEventHandler
04/29/2019 17:29:43  1  INF            Leaving function TaskDriver.FireOnTaskDriverEvent
04/29/2019 17:29:43  1  INF          Leaving function TaskDriver.OnTaskDriverStopping
04/29/2019 17:29:43  1  INF        Leaving function TaskDriver.ExecuteTasks
04/29/2019 17:29:43  1  ERR        One or more configuration tasks has failed to execute
04/29/2019 17:29:43  1  INF        Entering function TaskDriver.Stop
04/29/2019 17:29:43  1  INF          Entering function StringResourceManager.GetResourceString
04/29/2019 17:29:43  1  INF            Resource id to be retrieved is PostSetupConfigurationFailedEventLog for language English (United States)
04/29/2019 17:29:43  1  INF            Resource retrieved id PostSetupConfigurationFailedEventLog is Configuration of SharePoint Products failed.  Configuration must be performed in order for this product to operate properly.  To diagnose the problem, review the extended error information located at {0}, fix the problem, and run this configuration wizard again.
04/29/2019 17:29:43  1  INF          Leaving function StringResourceManager.GetResourceString
04/29/2019 17:29:43  1  ERR          Configuration of SharePoint Products failed.  Configuration must be performed in order for this product to operate properly.  To diagnose the problem, review the extended error information located at D:\SPTraceLogs\PSCDiagnostics_4_29_2019_17_28_23_358_774819500.log, fix the problem, and run this configuration wizard again.
04/29/2019 17:29:43  1  INF          Entering function StringResourceManager.GetResourceString
04/29/2019 17:29:43  1  INF            Resource id to be retrieved is PostSetupConfigurationFailedUserMessage for language English (United States)
04/29/2019 17:29:43  1  INF            Resource retrieved id PostSetupConfigurationFailedUserMessage is Configuration of SharePoint Products failed.  Configuration must be performed before you use SharePoint Products.  For further details, see the diagnostic log located at {0} and the application event log.
04/29/2019 17:29:43  1  INF          Leaving function StringResourceManager.GetResourceString
04/29/2019 17:29:43  1  INF          Entering function TaskDriver.OnTaskDriverStop
04/29/2019 17:29:43  1  INF            Sending a task driver stop event: TaskDriverEventArgs.EventCriticalityType error, TaskDriverEventArgs.EventType.stop, Configuration of SharePoint Products failed.  Configuration must be performed before you use SharePoint Products.  For further details, see the diagnostic log located at D:\SPTraceLogs\PSCDiagnostics_4_29_2019_17_28_23_358_774819500.log and the application event log.
04/29/2019 17:29:43  1  INF            Entering function TaskDriverStateChange.Enter
04/29/2019 17:29:43  1  INF              Acquiring the writer lock to change the state
04/29/2019 17:29:43  1  INF              Current state of the task driver is neverrun.  You want to change it to stoppedrunning
04/29/2019 17:29:43  1  INF              Changed state of the task driver to neverrun
04/29/2019 17:29:43  1  INF              Released the writer lock to change the state
04/29/2019 17:29:43  1  INF            Leaving function TaskDriverStateChange.Enter
04/29/2019 17:29:43  1  INF            Entering function TaskDriver.FireOnTaskDriverEvent
04/29/2019 17:29:43  1  INF              Entering function CommandLine.TaskDriverEventHandler
04/29/2019 17:29:43  1  INF                Received a TaskDriverEventHandler: TaskDriverEventArgs.EventCriticalityType error, TaskDriverEventArgs.EventType stop, message Configuration of SharePoint Products failed.  Configuration must be performed before you use SharePoint Products.  For further details, see the diagnostic log located at D:\SPTraceLogs\PSCDiagnostics_4_29_2019_17_28_23_358_774819500.log and the application event log.
04/29/2019 17:29:43  1  INF              Leaving function CommandLine.TaskDriverEventHandler
04/29/2019 17:29:43  1  INF            Leaving function TaskDriver.FireOnTaskDriverEvent
04/29/2019 17:29:43  1  INF          Leaving function TaskDriver.OnTaskDriverStop
04/29/2019 17:29:43  1  INF        Leaving function TaskDriver.Stop
04/29/2019 17:29:43  1  INF        UnLocking the task driver for exclusive use while we ran tasks
04/29/2019 17:29:43  1  INF      Leaving function TaskDriver.Run
04/29/2019 17:29:43  1  ERR      Post setup configuration was not run successfully when using the command line task driver module
04/29/2019 17:29:43  1  INF      Entering function Common.StartAllServices
04/29/2019 17:29:44  1  INF        Starting Service SearchRuntimeServiceInstance
04/29/2019 17:29:44  1  INF        Calling ServiceInstance.Start() start the SearchRuntimeServiceInstance service
04/29/2019 17:29:57  1  INF        Starting Service ProjectCalcServiceInstance
04/29/2019 17:29:57  1  INF        Calling ServiceInstance.Start() start the ProjectCalcServiceInstance service
04/29/2019 17:29:58  1  INF        Starting Service SPWindowsTokenServiceInstance
04/29/2019 17:29:58  1  INF        Calling ServiceInstance.Start() start the SPWindowsTokenServiceInstance service
04/29/2019 17:29:58  1  INF        Starting Service SPTracingServiceInstance
04/29/2019 17:29:58  1  INF        Calling ServiceInstance.Start() start the SPTracingServiceInstance service
04/29/2019 17:29:58  1  INF        Starting Service SPWriterServiceInstance
04/29/2019 17:29:58  1  INF        Calling ServiceInstance.Start() start the SPWriterServiceInstance service
04/29/2019 17:29:59  1  INF        Starting Service SPUserCodeServiceInstance
04/29/2019 17:29:59  1  INF        Calling ServiceInstance.Start() start the SPUserCodeServiceInstance service
04/29/2019 17:29:59  1  INF        Starting Service SearchServiceInstance
04/29/2019 17:29:59  1  INF        Calling ServiceInstance.Start() start the SearchServiceInstance service
04/29/2019 17:30:02  1  INF        Starting Service ProjectEventServiceInstance
04/29/2019 17:30:02  1  INF        Calling ServiceInstance.Start() start the ProjectEventServiceInstance service
04/29/2019 17:30:03  1  INF        Starting Service SPAdministrationServiceInstance
04/29/2019 17:30:03  1  INF        Calling ServiceInstance.Start() start the SPAdministrationServiceInstance service
04/29/2019 17:30:04  1  INF        Starting Service SPTimerServiceInstance
04/29/2019 17:30:04  1  INF        Calling ServiceInstance.Start() start the SPTimerServiceInstance service
04/29/2019 17:30:04  1  INF        Starting Service OnlineQueueServiceInstance
04/29/2019 17:30:04  1  INF        Calling ServiceInstance.Start() start the OnlineQueueServiceInstance service
04/29/2019 17:30:04  1  INF        Starting Service ProjectQueueServiceInstance
04/29/2019 17:30:04  1  INF        Calling ServiceInstance.Start() start the ProjectQueueServiceInstance service
04/29/2019 17:30:05  1  INF        Starting Service SPDistributedCacheServiceInstance
04/29/2019 17:30:05  1  INF        Calling ServiceInstance.Start() start the SPDistributedCacheServiceInstance service
04/29/2019 17:30:05  1  INF      Leaving function Common.StartAllServices
04/29/2019 17:30:05  1  INF    Leaving function PsconfigCommandLineMain.Main
Avatar of Zaheer Iqbal
Zaheer Iqbal
Flag of United Kingdom of Great Britain and Northern Ireland image

Did you install SP as a service account ?
Also try restarting SP services on your farm and try the installation again
can you send details outlined in this log and also what is showing in the event log on failure.

Thanks
Avatar of Jarrad Koppen

ASKER

HI Zaheer,

Yes the SP update was installed as a service account the PSConfig.exe command was run under the same account.
Yes I've tried restarting all SP services then running the PSConfig.exe command again.
I've attached both the event log once the PSConfig.exe command was run as of today as well as the PSCDiag.log file that was generated at the time of the error.
I also looked at the the MS Article and tried both the solutions before running the PSConfig.exe command again.  The event log txt file and the PSCDiag.log file are from that run of the PSConfig.exe command.

Unfortunately, non of the suggestions have worked so far.
EventLog.txt
PSCDiagnostics_4_30_2019_17_49_25_95.log
Do you have web apps within sharepoint that might be causing an issue ?
Are you doing an upgrade because Central Admin is reporting that they are "not completely upgraded". If so, here are the cmdlets I run to correct that issue:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

$WebAppURL= "http://contosso.com"
 
#Get all content databases of the particular web application
$ContentDBColl = (Get-SPWebApplication -Identity $WebAppURL).ContentDatabases
 
foreach ($contentDB in $ContentDBColl)
{
 #Updade each content database
 Upgrade-SPContentDatabase -id $contentDB.Id -Confirm:$false
}

Open in new window


This is not a script, just one liners that should be run one after the other, the for each loop can be copied as a whole in to the PS console. Make sure to run powershell as an admin.

Hope that helps...
Hi Zaheer, Walter

I can't see any errors that would stop an upgrade from the web apps we are using.  But as a precaution I've run though and updated any web apps that needed to be updated.

I've also ran Walter's provided cmdlet but updating the content databases hasn't been the big issue the majority of databases that are in compatibility range are more config or service databases. please see attached image.

Thanks.User generated image
So have you re-ran the the upgrade after updating the apps ?
HI Zaheer,

Yes, I updated our apps then ran both Walter's suggestion which completed successfully but would of only upgraded the content db's as far as I could see and the PSConfig.exe command which failed with the same error.
What is you status? Any luck correcting your issue?
HI Walter,

Unfortunately, no.  I've been trying to see if I can find any indication of any web apps causing issues.  So right now I'm just trying to reinstall, update any web apps that might be causing the issue and re-running PSConfig.exe
Sorry to hear it is not yet corrected. Where do you stand. What issue or error(s) are you facing now?

...
Hi Walter,

Unfortunately, I'm still experiencing the same issues that i was previously.  I'm also now experiencing further issues of the web apps not operating properly (this is most likely due to errors in re-deployment but none came up when I did re-deploy).  Also the main ribbon bar for Sharepoint has disappeared (see reference image).

So, I'd like to ask if there is any way in contracting a expert to help with this as I don't seem to have the necessary skills.  Obviously payment would be offers so messaging me with rates would be fine.
image001.png
Hello Jarrad - Experts Exchange has some offering in regards to hiring people for assistance. Search this site for that information. Otherwise, Microsoft is always an option although not cheap. I don't do any contract work so I don't have anything to offer in that area. Best of luck to you and hope  you get that going your way soon.

Have a good one...
Hi,

PSConfig.exe -cmd upgrade -inplace b2b  -wait -force
With this method start the timer and www at phase 2 upgrade sequence

make sure to have services.msc open and refresh so you can start www service at step 2

-Stacy

This post does not necessarily represent the views of my employer or other MVP types, use at your own risk
Hi Stacy,

No luck with that method. Any other suggestions?
ASKER CERTIFIED SOLUTION
Avatar of Jarrad Koppen
Jarrad Koppen
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Guys :)
Glad you found the solution.

Happy SharePointing!