无法安装同步服务 [英] Unable to install the synchronization service

查看:271
本文介绍了无法安装同步服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的支持,

请支持我安装Azure Active Directory Connect

Please support for me i install Azure Active Directory Connect

我有下面的问题错误日志 

I Have Problem error log below 

[09:39:48.977] [  7] [INFO] ServiceControllerProvider:ServiceController.Status属性上的InvalidOperationException意味着找不到AzureADConnectHealthSyncMonitor服务

[09:39:48.977] [  7] [WARN]未安装Monitoring Agent服务,因此无法重新启动服务。

[09:39:55.393] [  1] [INFO] MicrosoftOnlinePersistedStateProvider.Save:保存持久状态文件

[09:39:55.393] [  1] [INFO] MicrosoftOnlinePersistedStateProvider.UpdateFileProtection:从持久状态文件更新文件保护:C:\ProgramData \AADConnect \PersistedState.xml,isAddProtection:False

[09:39:55.396] [  1] [INFO] MicrosoftOnlinePersistedStateProvider.UpdateFileProtection:从持久状态文件更新文件保护:C:\ProgramData \AADConnect \PersistedState.xml,isAddProtection:True

[09:39:55.406] [&NBSP; 1] [INFO] PersistAzureAffinity:将Azure亲和力更新为Worldwide(0)。 原始值:<未配置>。$
[09:39:55.408] [  1] [INFO] ProgressWizardPageViewModel:StartProgressOperation在页面中启动后台任务Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.ExecuteADSyncConfiguration:"配置"

[09:39:55.408] [  ; 1] [INFO] ProgressWizardPageViewModel:StartProgressOperation Started Background任务ID:34321945

[09:39:55.410] [13] [INFO] PerformConfigurationPageViewModel.ExecuteADSyncConfiguration:准备配置同步引擎(WizardMode = ExpressInstall)。

[09:39:55.412] [13] [INFO] PerformConfigurationPageViewModel.ExecuteSyncEngineInstallCore:准备安装同步引擎(WizardMode = ExpressInstall)。

[09:39:55.417 ] [13] [INFO]启动同步引擎安装

[09:40:22.080] [13] [INFO] IsManagedServiceAccountSupported:OS> W2008R2

[09:40:22.080] [13] [INFO] IsManagedServiceAccountSupported:True

[09:40:22.161] [13] [INFO] ServiceControllerProvider:InvalidOperationException on serviceController.Status属性表示未找到服务ADSync

[09:40:22.407] [13] [INFO] ServiceControllerProvider:CreateService - serviceName:ADSync,username:NT SERVICE\ADSync,assemblyPath: C:\Program Files \ Microsoft Azure Active Directory Connect\ADSyncBootstrap.exe

[09:40:22.732] [13] [INFO] ServiceControllerProvider:处理StartService请求:ADSync

[09:40:22.733] [13] [VERB] ServiceControllerProvider:
初始服务状态:已停止

[09:40:22.733] [13] [VERB] ServiceControllerProvider:
启动服务并等待完成。

[09:40:22.735] [13] [警告] ServiceControllerProvider:StartService无法启动服务(ADSync),attempt(1)。
$
异常数据(Raw):System.InvalidOperationException:无法在计算机'。'上启动服务ADSync。 ---> System.ComponentModel.Win32Exception:由于登录失败,服务未启动

    ---内部异常堆栈跟踪结束---

    at System.ServiceProcess.ServiceController.Start(String [] args)

    at Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.StartService(String serviceName,TimeSpan timeout,Boolean verifyStart,String [] args)

[09:40:22.782] [13] [ VERB] ServiceControllerProvider:
初始服务状态:已停止

[09:40:22.782] [13] [VERB] ServiceControllerProvider:
启动服务并等待完成。

[09:40:22.784] [13] [WARN] ServiceControllerProvider:StartService无法启动服务(ADSync),尝试(2)。

异常数据(Raw):System.InvalidOperationException:无法在计算机'。'上启动服务ADSync。 ---> System.ComponentModel.Win32Exception:由于登录失败,服务未启动

    ---内部异常堆栈跟踪结束---

    at System.ServiceProcess.ServiceController.Start(String [] args)

    at Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.StartService(String serviceName,TimeSpan timeout,Boolean verifyStart,String [] args)

[09:40:22.784] [13] [ VERB] ServiceControllerProvider:
初始服务状态:已停止

[09:40:22.784] [13] [VERB] ServiceControllerProvider:
启动服务并等待完成。

[09:40:22.786] [13] [WARN] ServiceControllerProvider:StartService无法启动服务(ADSync),尝试(3)。

异常数据(Raw):System.InvalidOperationException:无法在计算机'。'上启动服务ADSync。 ---> System.ComponentModel.Win32Exception:由于登录失败,服务未启动

    ---内部异常堆栈跟踪结束---

    at System.ServiceProcess.ServiceController.Start(String [] args)

    at Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.StartService(String serviceName,TimeSpan timeout,Boolean verifyStart,String [] args)

[09:40:22.786] [13] [错误] ServiceControllerProvider:StartService无法启动服务(ADSync)。系统事件日志可能包含此问题的更多详细信息。

[09:40:25.447] [13] [错误] PerformConfigurationPageViewModel:安装同步服务时发生异常。

异常数据(原始):System.Exception:无法安装同步服务。 有关其他详细信息,请参阅事件日志。 ---> System.NullReferenceException:对象引用未设置为对象的实例。

    at Microsoft.Azure.ActiveDirectory.Synchronization.Framework.AccountManagementAdapter.RemoveMembersFromLocalGroup(SecurityIdentifier groupSid,DirectoryEntry [] members)

    at Microsoft.Azure.ActiveDirectory.Synchronization.Framework.SyncServiceAccount。<> c__DisplayClass53_0。< RemoveFromLocalAdministratorsGroup> b__0()

    at Microsoft.Azure.ActiveDirectory.Synchronization.Framework.ActionExecutor.Execute(Action action,String description)

    at Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SynchronizationServiceSetupTask.InstallCore(String logFilePath,String logFileSuffix)

    at Microsoft.Azure.ActiveDirectory.Synchronization.Framework.ActionExecutor.ExecuteWithSetupResultsStatus(SetupAction action,String description,String logFileName,String logFileSuffix)

    at Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SetupBase.Install()

[09:39:48.977] [  7] [INFO ] ServiceControllerProvider: InvalidOperationException on serviceController.Status property means the service AzureADConnectHealthSyncMonitor was not found
[09:39:48.977] [  7] [WARN ] Monitoring Agent service is not installed, so the service cannot be restarted.
[09:39:55.393] [  1] [INFO ] MicrosoftOnlinePersistedStateProvider.Save: saving the persisted state file
[09:39:55.393] [  1] [INFO ] MicrosoftOnlinePersistedStateProvider.UpdateFileProtection: updating file protection from the persisted state file: C:\ProgramData\AADConnect\PersistedState.xml, isAddProtection: False
[09:39:55.396] [  1] [INFO ] MicrosoftOnlinePersistedStateProvider.UpdateFileProtection: updating file protection from the persisted state file: C:\ProgramData\AADConnect\PersistedState.xml, isAddProtection: True
[09:39:55.406] [  1] [INFO ] PersistAzureAffinity: updating Azure affinity to Worldwide (0).  Original value: <not configured>.
[09:39:55.408] [  1] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Start background task Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.ExecuteADSyncConfiguration in Page:"Configuring"
[09:39:55.408] [  1] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Started Background Task Id:34321945
[09:39:55.410] [ 13] [INFO ] PerformConfigurationPageViewModel.ExecuteADSyncConfiguration: Preparing to configure sync engine (WizardMode=ExpressInstall).
[09:39:55.412] [ 13] [INFO ] PerformConfigurationPageViewModel.ExecuteSyncEngineInstallCore: Preparing to install sync engine (WizardMode=ExpressInstall).
[09:39:55.417] [ 13] [INFO ] Starting Sync Engine installation
[09:40:22.080] [ 13] [INFO ] IsManagedServiceAccountSupported: OS > W2008R2
[09:40:22.080] [ 13] [INFO ] IsManagedServiceAccountSupported: True
[09:40:22.161] [ 13] [INFO ] ServiceControllerProvider: InvalidOperationException on serviceController.Status property means the service ADSync was not found
[09:40:22.407] [ 13] [INFO ] ServiceControllerProvider:CreateService - serviceName:ADSync, username:NT SERVICE\ADSync, assemblyPath:C:\Program Files\Microsoft Azure Active Directory Connect\ADSyncBootstrap.exe
[09:40:22.732] [ 13] [INFO ] ServiceControllerProvider: Processing StartService request for: ADSync
[09:40:22.733] [ 13] [VERB ] ServiceControllerProvider: Initial service status: Stopped
[09:40:22.733] [ 13] [VERB ] ServiceControllerProvider: Starting service and waiting for completion.
[09:40:22.735] [ 13] [WARN ] ServiceControllerProvider: StartService failed to start service (ADSync), attempt (1).
Exception Data (Raw): System.InvalidOperationException: Cannot start service ADSync on computer '.'. ---> System.ComponentModel.Win32Exception: The service did not start due to a logon failure
   --- End of inner exception stack trace ---
   at System.ServiceProcess.ServiceController.Start(String[] args)
   at Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.StartService(String serviceName, TimeSpan timeout, Boolean verifyStart, String[] args)
[09:40:22.782] [ 13] [VERB ] ServiceControllerProvider: Initial service status: Stopped
[09:40:22.782] [ 13] [VERB ] ServiceControllerProvider: Starting service and waiting for completion.
[09:40:22.784] [ 13] [WARN ] ServiceControllerProvider: StartService failed to start service (ADSync), attempt (2).
Exception Data (Raw): System.InvalidOperationException: Cannot start service ADSync on computer '.'. ---> System.ComponentModel.Win32Exception: The service did not start due to a logon failure
   --- End of inner exception stack trace ---
   at System.ServiceProcess.ServiceController.Start(String[] args)
   at Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.StartService(String serviceName, TimeSpan timeout, Boolean verifyStart, String[] args)
[09:40:22.784] [ 13] [VERB ] ServiceControllerProvider: Initial service status: Stopped
[09:40:22.784] [ 13] [VERB ] ServiceControllerProvider: Starting service and waiting for completion.
[09:40:22.786] [ 13] [WARN ] ServiceControllerProvider: StartService failed to start service (ADSync), attempt (3).
Exception Data (Raw): System.InvalidOperationException: Cannot start service ADSync on computer '.'. ---> System.ComponentModel.Win32Exception: The service did not start due to a logon failure
   --- End of inner exception stack trace ---
   at System.ServiceProcess.ServiceController.Start(String[] args)
   at Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.StartService(String serviceName, TimeSpan timeout, Boolean verifyStart, String[] args)
[09:40:22.786] [ 13] [ERROR] ServiceControllerProvider: StartService unable to start service (ADSync). The system event log may contain more details for this issue.
[09:40:25.447] [ 13] [ERROR] PerformConfigurationPageViewModel: Caught exception while installing synchronization service.
Exception Data (Raw): System.Exception: Unable to install the Synchronization Service.  Please see the event log for additional details. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Azure.ActiveDirectory.Synchronization.Framework.AccountManagementAdapter.RemoveMembersFromLocalGroup(SecurityIdentifier groupSid, DirectoryEntry[] members)
   at Microsoft.Azure.ActiveDirectory.Synchronization.Framework.SyncServiceAccount.<>c__DisplayClass53_0.<RemoveFromLocalAdministratorsGroup>b__0()
   at Microsoft.Azure.ActiveDirectory.Synchronization.Framework.ActionExecutor.Execute(Action action, String description)
   at Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SynchronizationServiceSetupTask.InstallCore(String logFilePath, String logFileSuffix)
   at Microsoft.Azure.ActiveDirectory.Synchronization.Framework.ActionExecutor.ExecuteWithSetupResultsStatus(SetupAction action, String description, String logFileName, String logFileSuffix)
   at Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SetupBase.Install()

推荐答案


您需要在计算机上拥有本地管理员权限的帐户
install
Azure AD Sync。然后,在Azure AD Connect安装期间,将要求您提供两个凭据 - 内部部署DC的企业管理员帐户和您要同步的Azure AD云租户的全局管理员帐户。 

You need an account with local administrator privileges on your computer to install Azure AD Sync. Then, during the Azure AD Connect installation you will be asked for two credentials - an enterprise admin account for the on-premises DC and a Global Admin account for the Azure AD cloud tenant that you are syncing to. 


如果您已拥有正确的凭据,请单步执行

If you already have the right credentials, step through all the keys in

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\





查找具有产品名称Microsoft Azure AD Connect的那个。删除它并重新启动安装程序。


Look for the one with Product Name Microsoft Azure AD Connect . Delete this and restart the installer.







此外,如果存在以下按键,请将其删除: 

Also, if the keys below exist, remove them: 



HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\7EC08CB7BBBDF1045B31147D9AC698FB 





HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\E2D094C21044C254D9583B64140ED511






$






这篇关于无法安装同步服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆