question

JesseM-5559 avatar image
0 Votes"
JesseM-5559 asked AllenLiu-MSFT commented

SCCM Cloud attack CMG error after restore

We had a HD fail in our server and restored SCCM from a backup. We are running current branch. The issue is that in the CMGatewayNotificationWorker.log we are getting the error below. It is repeated over and over. Every time the CMGatewayNotificationWorker starts it gets the same error. Is there something I can delete or do to remove this? I have removed the co-management, but can not remote cloud attached. The bgbmgr, CloudMgr, and cloudusersync have no errors and BgbServer only has errors dealing with client machines.

Worker CMGatewayNotificationWorker was triggered by timer. SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:57:35 PM 139 (0x008B)
Triggered CMGatewayNotificationWorker::ExecuteAsync() SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:57:35 PM 139 (0x008B)
Could not retrieve authentication information for service. Cannot continue. SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:57:39 PM 128 (0x0080)
Unexpected exception for worker CMGatewayNotificationWorker SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:57:39 PM 128 (0x0080)
Exception details: SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:57:39 PM 128 (0x0080)
[Critical][CMGatewayNotificationWorker][0][System.ArgumentNullException][0x80004003]
Value cannot be null.
Parameter name: encryptedSecret at Microsoft.ConfigurationManager.ServiceConnector.AdalConfiguration..ctor(IContext context, String clientId, String encryptedSecret, Guid tenantId, String graphEndpoint, String adEndpoint, String gatewayService, String identifierUri)
at Microsoft.ConfigurationManager.ServiceConnector.Utility.<GetAdalConfigurationAsync>d_54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ConfigurationManager.ServiceConnector.Utility.<GetAdalConfigurationAsync>d
48.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ConfigurationManager.ServiceConnector.AadServiceConnectorWorker.<DoWorkAsync>d
16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ConfigurationManager.ServiceConnector.ServiceConnectorWorkerBase.<ExecuteAsync>d
75.MoveNext() SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:57:39 PM 128 (0x0080)
[Attempt: 0] Waiting for 00:00:30 before continuing ... SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:57:39 PM 128 (0x0080)
Worker CMGatewayNotificationWorker failure SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:58:10 PM 139 (0x008B)
Exception details: SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:58:10 PM 139 (0x008B)
[Critical][CMGatewayNotificationWorker][0][System.ArgumentNullException][0x80004003]
Exception of type 'System.ArgumentNullException' was thrown.
Parameter name: encryptedSecret at Microsoft.ConfigurationManager.ServiceConnector.AdalConfiguration..ctor(IContext context, String clientId, String encryptedSecret, Guid tenantId, String graphEndpoint, String adEndpoint, String gatewayService, String identifierUri)
at Microsoft.ConfigurationManager.ServiceConnector.Utility.<GetAdalConfigurationAsync>d
54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ConfigurationManager.ServiceConnector.Utility.<GetAdalConfigurationAsync>d
48.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ConfigurationManager.ServiceConnector.AadServiceConnectorWorker.<DoWorkAsync>d
16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ConfigurationManager.ServiceConnector.ServiceConnectorWorkerBase.<ExecuteAsync>d
75.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.ConfigurationManager.ServiceConnector.ServiceConnectorWorkerBase.<ExecuteAsync>d
_75.MoveNext() SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:58:10 PM 139 (0x008B)
Worker CMGatewayNotificationWorker has finished processing. SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:58:10 PM 139 (0x008B)
Next run time will be at approximately: 06/01/2021 12:59:10 SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker 6/1/2021 12:58:10 PM 139 (0x008B)


Thanks for any assistance,
Jesse

mem-cm-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RahulJindal-2267 avatar image
0 Votes"
RahulJindal-2267 answered JesseM-5559 commented

Did you run the CMG connection analyzer?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sorry I should have said I uninstalled the CMG.

0 Votes 0 ·
AllenLiu-MSFT avatar image
0 Votes"
AllenLiu-MSFT answered AllenLiu-MSFT commented

Hi, @JesseM-5559
Thank you for posting in Microsoft Q&A forum.
The below article might helps to troubleshooting:
https://www.anoopcnair.com/sccm-tenant-attach-troubleshooting-issues-via-logs-configmgr/
(Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Working thought this to see if it tells me whats up.

0 Votes 0 ·

Worked through the guide thanks. Its something with the ConfigMgr Tenant attach channel which I worried it might be.

There is no cmpivot in Intune that I can see. Starting cmpivot in ConfigMgr the AadStatus query never finishes, but the other queries I tried ran fine. dmpdownloader.log shows "HasIntuneSubscription: Site has no Intune subscription." There are no errors in the log.

Looking at AdminService I get the following
Completing request with response code [200] reason [OK] Microsoft.ConfigurationManager.AdminService
Microsoft.ConfigurationManager.AdminService
IOCompletionCallback
System.ComponentModel.Win32Exception (0x80004005): The specified network name is no longer available Microsoft.Owin.Host.HttpListener.OwinHttpListener 6/2/2021 12:26:14 PM 38 (0x0026)
Processing incoming request for resource [https://.edu/AdminService/v1.0/], method: [GET], User - [NT AUTHORITY\SYSTEM] Microsoft.ConfigurationManager.AdminService





0 Votes 0 ·

Hi, @JesseM-5559
What's the SCCM version are you using? It seems to be an old issue for SCCM 1906.

0 Votes 0 ·