none
Office 365 Integration fails RRS feed

  • Question

  • I've just set up a new server (Windows Essentials 2016) and I'm trying to get the AD sync to work with Office 365 (provided through GoDaddy in case it matters).

    I've added the alternative UPN suffix and applied it to the users. (as explained in https://docs.microsoft.com/en-gb/office365/enterprise/prepare-a-non-routable-domain-for-directory-synchronization?redirectSourcePath=%252fen-us%252farticle%252fHow-to-prepare-a-non-routable-domain-such-as-local-domain-for-directory-synchronization-e7968303-c234-46c4-b8b0-b5c93c6d57a7)

    When I try to run the Integrate with Office 365 wizard I get an error of "An unknown error has occurred - The Microsoft Cloud services returned an error.  Please try again later".   I have tried turning of IPV6 which some people have suggested but this didn't help.

    The configwizzard log is :

    [3732] 190303.083934.9430: General: Initializing...C:\Windows\System32\Essentials\ConfigWizard.exe
    [1464] 190303.083935.4275: PfBinding: Information: [0] : Adding service dns identity [SERVER-FS1] in proxy endpoint.
    [10712] 190303.083935.5680: PfBinding: Information: [0] : Adding service dns identity [SERVER-FS1] in proxy endpoint.
    [10592] 190303.083935.6551: PfBinding: Information: [0] : Adding service dns identity [SERVER-FS1] in proxy endpoint.
    [5544] 190303.083936.3658: CloudServiceEnvironment: Failed to download cloud service environment file.
    [536] 190303.084043.2816: GettingStartedWizard: Start O365 service
    [536] 190303.084043.2886: WssgCommon: Information: [0] : WseEmailSvc is already in the desired state.
    [10124] 190303.084047.4227: O365Manager: TResult : Boolean, args : Microsoft.WindowsServerSolutions.Common.ProviderFramework.OperationInvokeEventArgs`1[System.Boolean]
    [10124] 190303.084047.4237: O365Manager: actualArgs : Microsoft.WindowsServerSolutions.Common.ProviderFramework.OperationInvokeEventArgs`1[System.Boolean]
    [8980] 190303.084047.4247: GettingStartedWizard: Stop O365 service
    [8980] 190303.084047.4507: GettingStartedWizard: Activate O365 with Error OnlineServiceIssue returned.
    [8980] 190303.084047.4507: GettingStartedWizard: Activate O365 with Error OnlineServiceIssue returned.
    [8980] 190303.084047.4517: GettingStartedWizard: error page exception : O365ConfigurationFault = OnlineServiceIssue
    Microsoft.WindowsServerSolutions.O365Integration.O365ConfigureException: Credential cannot be authenticated due to error: accessing_ws_metadata_exchange_failed: Accessing WS metadata exchange failed
       at Microsoft.WindowsServerSolutions.O365Integration.TokenFetcher.GetAuthorizationHeader()
       at Microsoft.WindowsServerSolutions.O365Integration.GraphAdapter.SetCredential(String userName, SecureString password)
       at Microsoft.WindowsServerSolutions.O365Integration.O365ManagementCore.verifyAdminAccount(IO365ServiceAdapter adapter, String adminUserName, SecureString adminPassword)
       at Microsoft.WindowsServerSolutions.O365Integration.O365ManagementCore.ActivateAAD(String adminUserName, String adminPassword)
       at Microsoft.WindowsServerSolutions.O365Integration.O365ManagementProvider.<>c__DisplayClass84_0.<InvokeOperationWrapperAsync>b__0()
       at Microsoft.WindowsServerSolutions.Common.ProviderFramework.ProviderBase`1.InvokeOperation[TResult](String operationName, Func`1 func)
    [3732] 190303.084047.4607: OIMUtils: GetO365ConfigurationErrorMessage for OnlineServiceIssue
    [3732] 190303.084047.4627: GettingStartedWizard: Stop O365 service

    The sharedservicehost-emailproviderserverconfig log is:

    [5864] 190303.084043.3937: SharedServiceHost: Information: [0] : ==========================================================
    [5864] 190303.084043.8561: SharedServiceHost: Information: [0] : "C:\Windows\System32\Essentials\SharedServiceHost.exe" C:\Windows\System32\Essentials\EmailProviderServiceConfig
    [5864] 190303.084043.8571: SharedServiceHost: Information: [0] : Loading service information from "C:\Windows\System32\Essentials\EmailProviderServiceConfig".
    [10128] 190303.084043.9962: WinSrvEmailProviderSvc: Microsoft.WindowsServerSolutions.O365Integration.O365ManagementService, Wssg.O365Provider, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 is created as hosted email service provider
    [10128] 190303.084044.0573: WinSrvEmailProviderSvc: Microsoft.WindowsServerSolutions.PasswordSync.PwdSyncManagementService, Wssg.PasswordSyncProvider, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 is created as hosted email service provider
    [10128] 190303.084044.3736: O365Integration:BackgroundTaskManager: BackgroundTaskManager.StartTasks called
    [10128] 190303.084044.3746: O365Integration:BackgroundTaskBase: Starting UpdateDomainTask
    [10128] 190303.084044.3766: O365Integration:BackgroundTaskBase: updating UpdateDomainTask timer to: TimerSettings: DueTime=00:00:00, Interval=01:00:00
    [10128] 190303.084044.3766: O365Integration:BackgroundTaskBase: Starting UpdateSharepointAddressTask
    [10128] 190303.084044.3776: O365Integration:BackgroundTaskBase: updating UpdateSharepointAddressTask timer to: TimerSettings: DueTime=00:00:00, Interval=1.00:00:00
    [10128] 190303.084044.3776: O365Integration:BackgroundTaskBase: Starting UpdateO365IntegrationDataTask
    [10128] 190303.084044.3786: O365Integration:BackgroundTaskBase: updating UpdateO365IntegrationDataTask timer to: TimerSettings: DueTime=00:00:00, Interval=01:00:00
    [10128] 190303.084044.3786: O365Integration:BackgroundTaskBase: Starting UpdateCachedSkuInfoTask
    [10128] 190303.084044.3796: O365Integration:BackgroundTaskBase: updating UpdateCachedSkuInfoTask timer to: TimerSettings: DueTime=00:00:00, Interval=1.00:00:00
    [10128] 190303.084044.3796: O365Integration:BackgroundTaskBase: Starting UpdateMSOSecurityGroupDataTask
    [10128] 190303.084044.3796: O365Integration:BackgroundTaskBase: updating UpdateMSOSecurityGroupDataTask timer to: TimerSettings: DueTime=00:00:00, Interval=1.00:00:00
    [10128] 190303.084044.3856: PasswordSyncManagementCoreFactory: Creating PasswordSyncManagementCore instances
    [6068] 190303.084044.5308: MSOSecurityGroupManager: Sync queue is empty.
    [5244] 190303.084044.5528: General: Failed to open ADTestHook registry key.
    [5244] 190303.084044.5538: General: Failed to open ADTestHook registry key.
    [10164] 190303.084044.5558: PfBinding: Information: [0] : Adding service dns identity [SERVER-FS1] in proxy endpoint.
    [5460] 190303.084044.6399: O365ClientProvider(ICallback): Channel_Closed called
    [5460] 190303.084044.6399: O365ClientProvider(ICallback): Provider disconnected
    [5244] 190303.084044.6949: General: Failed to open ADTestHook registry key.
    [5244] 190303.084044.6949: General: Failed to open ADTestHook registry key.
    [5244] 190303.084044.7120: O365ManagementProvider(IO365Callback): ActivateAAD:a5644be8-f4b4-4ff9-b334-7052e6bb062c starts
    [5244] 190303.084044.7180: O365Integration:BackgroundTaskManager: BackgroundTaskManager.StopTasks called
    [5244] 190303.084044.7180: O365Integration:BackgroundTaskBase: Stopping UpdateDomainTask
    [5244] 190303.084044.7180: O365Integration:BackgroundTaskBase: updating UpdateDomainTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [5244] 190303.084044.7190: O365Integration:BackgroundTaskBase: Stopping UpdateSharepointAddressTask
    [5244] 190303.084044.7190: O365Integration:BackgroundTaskBase: updating UpdateSharepointAddressTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [5244] 190303.084044.7190: O365Integration:BackgroundTaskBase: Stopping UpdateO365IntegrationDataTask
    [5244] 190303.084044.7190: O365Integration:BackgroundTaskBase: updating UpdateO365IntegrationDataTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [5244] 190303.084044.7190: O365Integration:BackgroundTaskBase: Stopping UpdateCachedSkuInfoTask
    [5244] 190303.084044.7190: O365Integration:BackgroundTaskBase: updating UpdateCachedSkuInfoTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [5244] 190303.084044.7190: O365Integration:BackgroundTaskBase: Stopping UpdateMSOSecurityGroupDataTask
    [5244] 190303.084044.7190: O365Integration:BackgroundTaskBase: updating UpdateMSOSecurityGroupDataTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [5244] 190303.084045.9472: CloudServiceEnvironment: Failed to download cloud service environment file.
    [5244] 190303.084046.0543: GraphSettings: Graph settings: AadEndpoint:https://login.microsoftonline.com/, ClientId:1950a258-227b-4e31-a9cf-717495945fc2, ResourceId:https://graph.microsoft.com, ServiceRoot:https://graph.microsoft.com/v1.0/
    [5244] 190303.084047.3946: TokenFetcher: Credential cannot be authenticated due to error: accessing_ws_metadata_exchange_failed: Accessing WS metadata exchange failed
    [5244] 190303.084047.3946: O365Integration:BackgroundTaskManager: BackgroundTaskManager.StartTasks called
    [5244] 190303.084047.3946: O365Integration:BackgroundTaskBase: Starting UpdateDomainTask
    [5244] 190303.084047.3946: O365Integration:BackgroundTaskBase: updating UpdateDomainTask timer to: TimerSettings: DueTime=00:00:00, Interval=01:00:00
    [5244] 190303.084047.3946: O365Integration:BackgroundTaskBase: Starting UpdateSharepointAddressTask
    [5244] 190303.084047.3957: O365Integration:BackgroundTaskBase: updating UpdateSharepointAddressTask timer to: TimerSettings: DueTime=00:00:00, Interval=1.00:00:00
    [5244] 190303.084047.3957: O365Integration:BackgroundTaskBase: Starting UpdateO365IntegrationDataTask
    [5244] 190303.084047.3957: O365Integration:BackgroundTaskBase: updating UpdateO365IntegrationDataTask timer to: TimerSettings: DueTime=00:00:00, Interval=01:00:00
    [5244] 190303.084047.3957: O365Integration:BackgroundTaskBase: Starting UpdateCachedSkuInfoTask
    [5244] 190303.084047.3957: O365Integration:BackgroundTaskBase: updating UpdateCachedSkuInfoTask timer to: TimerSettings: DueTime=00:00:00, Interval=1.00:00:00
    [5244] 190303.084047.3957: O365Integration:BackgroundTaskBase: Starting UpdateMSOSecurityGroupDataTask
    [5244] 190303.084047.3957: O365Integration:BackgroundTaskBase: updating UpdateMSOSecurityGroupDataTask timer to: TimerSettings: DueTime=00:00:00, Interval=1.00:00:00
    [5244] 190303.084047.3986: O365ManagementProvider(IO365Callback): ActivateAAD:a5644be8-f4b4-4ff9-b334-7052e6bb062c failed due to O365ConfigurationFault = OnlineServiceIssue
    Microsoft.WindowsServerSolutions.O365Integration.O365ConfigureException: Credential cannot be authenticated due to error: accessing_ws_metadata_exchange_failed: Accessing WS metadata exchange failed
       at Microsoft.WindowsServerSolutions.O365Integration.TokenFetcher.GetAuthorizationHeader()
       at Microsoft.WindowsServerSolutions.O365Integration.GraphAdapter.SetCredential(String userName, SecureString password)
       at Microsoft.WindowsServerSolutions.O365Integration.O365ManagementCore.verifyAdminAccount(IO365ServiceAdapter adapter, String adminUserName, SecureString adminPassword)
       at Microsoft.WindowsServerSolutions.O365Integration.O365ManagementCore.ActivateAAD(String adminUserName, String adminPassword)
       at Microsoft.WindowsServerSolutions.O365Integration.O365ManagementProvider.<>c__DisplayClass84_0.<InvokeOperationWrapperAsync>b__0()
       at Microsoft.WindowsServerSolutions.Common.ProviderFramework.ProviderBase`1.InvokeOperation[TResult](String operationName, Func`1 func)
    [11004] 190303.084047.4116: O365ClientProvider(ICallback): Channel_Closed called
    [11004] 190303.084047.4116: O365ClientProvider(ICallback): Provider disconnected
    [12960] 190303.084047.4297: O365Integration:BackgroundTaskManager: BackgroundTaskManager.StopTasks called
    [12960] 190303.084047.4297: O365Integration:BackgroundTaskBase: Stopping UpdateDomainTask
    [12960] 190303.084047.4297: O365Integration:BackgroundTaskBase: updating UpdateDomainTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [12960] 190303.084047.4297: O365Integration:BackgroundTaskBase: Stopping UpdateSharepointAddressTask
    [12960] 190303.084047.4297: O365Integration:BackgroundTaskBase: updating UpdateSharepointAddressTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [12960] 190303.084047.4297: O365Integration:BackgroundTaskBase: Stopping UpdateO365IntegrationDataTask
    [12960] 190303.084047.4297: O365Integration:BackgroundTaskBase: updating UpdateO365IntegrationDataTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [12960] 190303.084047.4307: O365Integration:BackgroundTaskBase: Stopping UpdateCachedSkuInfoTask
    [12960] 190303.084047.4307: O365Integration:BackgroundTaskBase: updating UpdateCachedSkuInfoTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [12960] 190303.084047.4307: O365Integration:BackgroundTaskBase: Stopping UpdateMSOSecurityGroupDataTask
    [12960] 190303.084047.4307: O365Integration:BackgroundTaskBase: updating UpdateMSOSecurityGroupDataTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [12960] 190303.084047.4357: O365ManagementProvider(IO365Callback): Channel_Closed called
    [12960] 190303.084047.4357: O365ManagementProvider(IO365Callback): Provider disconnected
    [5864] 190303.084047.4527: O365Integration:BackgroundTaskManager: BackgroundTaskManager.Dispose called
    [5864] 190303.084047.4527: O365Integration:BackgroundTaskBase: Stopping UpdateDomainTask
    [5864] 190303.084047.4527: O365Integration:BackgroundTaskBase: updating UpdateDomainTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [5864] 190303.084047.4527: O365Integration:BackgroundTaskBase: Dispose for UpdateDomainTask called
    [5864] 190303.084047.4527: O365Integration:BackgroundTaskBase: Stopping UpdateSharepointAddressTask
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: updating UpdateSharepointAddressTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: Dispose for UpdateSharepointAddressTask called
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: Stopping UpdateO365IntegrationDataTask
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: updating UpdateO365IntegrationDataTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: Dispose for UpdateO365IntegrationDataTask called
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: Stopping UpdateCachedSkuInfoTask
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: updating UpdateCachedSkuInfoTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: Dispose for UpdateCachedSkuInfoTask called
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: Stopping UpdateMSOSecurityGroupDataTask
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: updating UpdateMSOSecurityGroupDataTask timer to: TimerSettings: DueTime=-00:00:00.0010000, Interval=00:00:00
    [5864] 190303.084047.4537: O365Integration:BackgroundTaskBase: Dispose for UpdateMSOSecurityGroupDataTask called
    [6068] 190303.084047.5268: MSOSecurityGroupManager: MSO Security Group Sync Worker Thread Stopped.
    [5864] 190303.084047.5378: SharedServiceHost: Information: [0] : Exiting with code 0
    [5864] 190303.084047.5388: SharedServiceHost: Information: [0] : ==========================================================

    Any help would be greatly appreciated.

    Thanks.

    Sunday, March 3, 2019 10:08 AM

All replies

  • hi,
    I am researching your issue ,thanks for your waiting.

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, March 4, 2019 3:47 PM
    Moderator
  • hi,
    "[5244] 190303.084047.3946: TokenFetcher: Credential cannot be authenticated due to error: accessing_ws_metadata_exchange_failed: Accessing WS metadata exchange failed"

    from your error log,there are two document for your reference.
    Office 365 Integration fails with “Cannot connect to Microsoft online services” in Windows Server 2012 R2 Essentials
    https://blogs.technet.microsoft.com/sbs/2018/03/14/office-365-integration-fails-with-cannot-connect-to-microsoft-online-services-in-windows-server-2012-r2-essentials/

    Receiving error accessing_ws_metadata_exchange_failed when configuring the Microsoft Dynamics 365 Outlook client
    https://support.microsoft.com/en-sg/help/4293912/receiving-error-accessing-ws-metadata-exchange-failed-when-configuring

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, March 7, 2019 5:58 AM
    Moderator
  • Thanks.  I'll work through these over the next few days and see if they help.
    Thursday, March 7, 2019 4:26 PM
  • ok .if there is any new information ,feel free to let me know.

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, March 8, 2019 4:01 PM
    Moderator
  • Is there any progress on your question?

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, March 18, 2019 9:50 AM
    Moderator
  • I am still working through the suggestions but I am concerned about Mariëtte Knap's comment that it won't work with a GoDaddy Subscription.  Why might this be?
    Tuesday, March 19, 2019 11:48 AM
  • Is there any progress on your question?

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, March 29, 2019 3:53 AM
    Moderator
  • I still can't get this to work.  Could it be linked to the accounts being provided by GoDaddy as Mariëtte Knap suggests?  If so, why?
    Monday, April 1, 2019 5:45 PM
  • GoDaddy is not the same as Azure/Office 365. They probably have their own data center and infrastructure. The Essentials Dashboard can only connect to Microsoft environments.

    Mariëtte Knap
    www.server-essentials.com | Linkedin | Migrations done the easy way | Updated migration guide: How to migrate SBS 2011 to Windows Server 2019 Standard, Datacenter or Essentials and How to migrate SBS 2008 to Windows Server 2019 Standard, Datacenter or Essentials

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, April 1, 2019 6:05 PM
  • I can't believe GoDaddy has a separate infrastructure - they are just reselling Office 365.  Most of the interface is direct Microsoft - the only obvious difference is the GoDaddy logo on the login screen.

    Tuesday, April 2, 2019 7:53 AM
  • The authentication for sure is different.  They have their own login/authentication.
    Wednesday, April 17, 2019 3:59 PM
    Moderator