System Center Data Access Service Crashing after KB4498947 (Server 2016)
Right after applying this patch (May 2019 Service Stack Update), the Data Access service will not start/keeps crashing. Pretty much started right after the patch finished and persisted through reboots. This patch, being a stack update, isn't terribly easy to uninstall..likely going to need to roll the server back.
Anyone else experience this or have more data?
Answers
I will note that this months release it took two reboots before the system finished applying the updates. I preformed a third reboot to make sure the services started in a clean fashion where they were not delayed by windows finishing other tasks. HTH
We are not having exactly the same issues but we applied KB4498947 and KB4494440 to our Dev and Test environments and we have some strange behaviour since which we are now investigating if there is something in there which is the cause.
Our workflows did not recover themselves after the reboot following patching but all services were running. For us, stopping the following services on the Management Server - Microsoft Monitoring Agent, System Centre Data Access Service and System Centre Management Configuration (in that order) and renaming the folder C:\Program Files\Microsoft System Center\Service Manager\Health Service State, then restarting the Services in the following order System Centre Management Configuration, System Centre Data Access Service, Microsoft Monitoring Agent helped clear the Service Manager cache and get things working again. We don't have same issues but may be worth a shot before you roll back? Either way I do suspect something amiss with these updates.
At the end of the path it does they to resolve to a folder, doesn't seem to like the *
I think this will be worth the effort here! Learning too
invoke-command -ComputerName $server -command { del "$SCSMHSS" -recurse }
to
invoke-command -ComputerName $server -ScriptBlock { Remove-Item -Path $args[0] -force -recurse } -ArgumentList "$SCSMHSS"
So I don't actually believe now that this patch was the core of my issue, but it was the patching process as a whole. Looking further into the event log, two things stuck out at me.
During Patching, both of my management servers got the following error...
A severe error occurred on the current command. The results, if any, should be discarded.
I've been having extensive problems with my Data Warehouse and have been working with MS directly to resolve them and happened to know about the Microsoft Health Monitoring Service. I restarted that on my primary server and everything began running again as expected (All of our connectors were stopped)
However not so lucky on this secondary server that feeds the Cireson Analyst Portal. Now the repeated error I'm getting is a mixture of...
at Microsoft.Mom.ConfigService.Networking.ConnectionFactory.Connection.Sender.get_SdkServiceUri()
at Microsoft.Mom.ConfigService.Networking.ConnectionFactory.Connection.Sender.GetSdkService()
at Microsoft.Mom.ConfigService.Networking.ConnectionFactory.Connection.Sender.OnRetrieveSecureData(Guid healthServiceId, ReadOnlyCollection`1 addedSecureStorageReferences, ReadOnlyCollection`1 removedSecureStorageReferences, ReadOnlyCollection`1 modifiedSecureStorageReferences, ReadOnlyCollection`1 addedSecureStorageElements, ReadOnlyCollection`1 removedSecureStorageElements, ReadOnlyCollection`1 modifiedSecureStorageElements)
at Microsoft.Mom.ConfigService.Networking.ConnectionFactory.Connection.OnRetrieveSecureData(Guid healthServiceId, ReadOnlyCollection`1 addedSecureStorageReferences, ReadOnlyCollection`1 removedSecureStorageReferences, ReadOnlyCollection`1 modifiedSecureStorageReferences, ReadOnlyCollection`1 addedSecureStorageElements, ReadOnlyCollection`1 removedSecureStorageElements, ReadOnlyCollection`1 modifiedSecureStorageElements)
at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ResponseWriter.SecureDataWriter.Write(StateSyncResponseMessage response)
at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ResponseWriter.WriteState(StateSyncResponseMessage response)
at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ResponseWriter.Write(StateSyncResponseMessage response)
at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.ResponseWriter.Write(StateContext stateContext, ConfigurationItems configurationItems, StateSyncResponseMessage response, IConnection connection)
at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.CreateResponse(Managers managers)
at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.Managers.Synchronize(OnDoSynchronizedWork onDoSynchronizedWork)
at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Execute(Managers managers)
at Microsoft.Mom.ConfigService.Engine.ConfigurationEngine.CommunicationHelper.StateSyncRequestTask.Run(Guid source, String cookie, Managers managers, IConfigurationDataAccessor dataAccessor, Stream stream, IConnection connection)".
Followed by an information piece in the event log that keeps repeating
OpsMgr has no configuration for management group <CorrectGroupName> and is requesting new configuration from the Configuration Service.
And every time I start the Data Access Service, I get these two errors (And it crashes pretty immediately)
Error 1
Exception message: Initialize
Full exception: Feature of type 'Microsoft.EnterpriseManagement.ServiceDataLayer.ISecureStorageManagerFeature, Microsoft.EnterpriseManagement.DataAccessService.Core, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=<CorrectToken>' cannot be added to the container.
The service will attempt to restart.
Exception:
Microsoft.EnterpriseManagement.ConfigurationReaderException: Feature of type 'Microsoft.EnterpriseManagement.ServiceDataLayer.ISecureStorageManagerFeature, Microsoft.EnterpriseManagement.DataAccessService.Core, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=<CorrectToken>' cannot be added to the container. ---> Microsoft.EnterpriseManagement.ComponentActivationException: The constructor for the component threw an exception. Please see the inner exception for more details. ---> System.Exception: Exception decrypting. Key not valid for use in specified state
at Microsoft.EnterpriseManagement.Security.DPAPIWrapper.Decrypt(Byte[] cipherText)
at Microsoft.EnterpriseManagement.Security.AsymmetricKeyManager.Initialize(Byte[] publicKey)
at Microsoft.EnterpriseManagement.Security.SecureStorageManager.Initialize()
at Microsoft.EnterpriseManagement.ServiceDataLayer.SecureStorageManagerFeatureImplementation..ctor()
--- End of inner exception stack trace ---
at Microsoft.EnterpriseManagement.ComponentActivator.Activate[T](ActivationContext`1 context)
at Microsoft.EnterpriseManagement.SingletonLifetimeManager`1.GetComponent[K]()
at Microsoft.EnterpriseManagement.FeatureContainer.GetFeatureInternal[T](Type type, String featureName)
at Microsoft.EnterpriseManagement.FeatureContainer.AddFeatureInternal[T,V](ActivationContext`1 context, String featureName)
--- End of inner exception stack trace ---
at Microsoft.EnterpriseManagement.ConfigurationReaderHelper.ReadFeatures(XPathNavigator navi, IContainer container)
at Microsoft.EnterpriseManagement.ConfigurationReaderHelper.Process()
at Microsoft.EnterpriseManagement.ServiceDataLayer.DispatcherService.Initialize(InProcEnterpriseManagementConnectionSettings configuration)
at Microsoft.EnterpriseManagement.ServiceDataLayer.DispatcherService.InitializeRunner(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)