none
Impossible to install Azure ADConnect -> (Exception interne #0) System.NullReferenceException: Object reference not set to an instance of an object. RRS feed

  • Question

  • Hello,

    I had one main server: ADConnect1 and another ADConnect2, in prestaging.
    I'm trying to install Azure ADconnect on a server  named ADConnect2.

    ADConnect1 has crashed and is definitively out.

    On ADConnect2, i've desinstalled/reinstall Azure ADConnect to import the configuration saved from ADConnect1 yesterday.
    It doesn't work. I have this error: 
    (Exception interne #0) System.NullReferenceException: Object reference not set to an instance of an object.

    In the log:
    ---> (Exception interne #0) System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
       à Microsoft.Online.Deployment.Types.AadSyncConfigurationHelper.<>c.<GetConnectorConfigurationSteps>b__1_0(AzureADSyncDirectory forest)
       à System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
       à System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
       à System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
       à Microsoft.Online.Deployment.Types.AadSyncConfigurationHelper.GetConnectorConfigurationSteps(IAadSyncContext context, IAadSyncContext activeSyncFeatures, List`1& configurationSteps)
       à Microsoft.Online.Deployment.Types.AadSyncConfigurationHelper.GetConfigurationSteps(IAadSyncContext context, IAadSyncContext activeSyncFeatures)
       à Microsoft.Online.Deployment.OneADWizard.Utility.ActionListBuilder.GenerateActions()
       à Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.GenerateActions()
       à Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.BackgroundInitialize(Object obj)
       à System.Threading.Tasks.Task.Execute()<---

    [11:29:07.246] [  1] [INFO ] Page transition from "Configurer" [PerformConfigurationPageViewModel] to "Erreur" [ErrorPageViewModel]
    [11:30:03.858] [  1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20230324-110406.log


    Could you help to resolve this please?

    thanks by advance for your help

    The log is telling this: (all personal info have been deleted)

    [11:10:35.719] [ 24] [INFO ]    Forest=DOMAIN.adm
    [11:10:35.733] [ 24] [INFO ] ActiveDirectoryProvider.GetRootDomainName: getting user root domain name
    [11:10:35.746] [ 24] [INFO ] ActiveDirectoryProvider.GetRootDomainName: user root domain - DOMAIN.adm
    [11:10:35.746] [ 24] [INFO ] ActiveDirectoryProvider.IsUserGroupMember: checking if DOMAIN\ADMIN-ADM has AccountEnterpriseAdminsSid privileges in DOMAIN.adm
    [11:10:35.833] [ 24] [INFO ] ActiveDirectoryProvider.IsUserGroupMember: domain sid - <SID>, group sid - <SID>-519
    [11:10:35.848] [ 24] [INFO ] ActiveDirectoryProvider.IsUserGroupMember: found membership - user is a member of the group
    [11:10:35.850] [ 24] [INFO ] Validating forest with FQDN DOMAIN.adm
    [11:10:35.854] [ 24] [INFO ] Examining domain DOMAIN.adm (:0% complete)
    [11:10:35.857] [ 24] [INFO ] ValidateForest: using DC-AD01.DOMAIN.adm to validate domain DOMAIN.adm
    [11:10:35.858] [ 24] [INFO ] Successfully examined domain DOMAIN.adm GUID:301d7e89-31b33636b-478434365-a643463475-ee73b846343f28d2a  DN:DC=DOMAIN,DC=adm
    [11:10:35.859] [ 24] [INFO ] ValidateForest returned 1 reachable and 0 unreachable domains.
    [11:10:35.862] [ 24] [INFO ]    validForest=True
    [11:10:35.864] [ 24] [VERB ] GetAdminCredential called with account <<DOMAIN>\ENTERPRISEADMIN>
    [11:10:35.864] [ 24] [VERB ] AdministratorUsername is in NTAccount format.
    [11:10:35.864] [ 24] [VERB ] GetAdminCredential returning account <<DOMAIN>\ENTERPRISEADMIN>
    [11:10:35.864] [ 24] [INFO ] Creating AD Connector account for DOMAIN.adm.
    [11:10:35.887] [ 24] [VERB ] CreateADConnectorAccount(System.Net.NetworkCredential, a6axxxxxxxxe04470, CLIENT.onmicrosoft.com)
    [11:10:35.902] [ 24] [INFO ] AD Connector account will have account name DOMAIN.ADM\MSOL_xxxxxxxx
    [11:10:35.938] [ 24] [INFO ] AD Connector account already exists.
    [11:10:35.987] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting DsReplicationGetChanges permission on all domains for password hash synchronization.
    [11:10:36.017] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting DsReplicationGetChangesAll permission on all domains for password hash synchronization.
    [11:10:36.041] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting DsResetPassword permission on all domains for password writeback.
    [11:10:36.062] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting write permissions for 'user' attribute of (lockoutTime, pwdLastSet) object type on all domains for password writeback.
    [11:10:36.118] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting read permissions for all attributes of (contact, group, inetorgperson, user) object type on all domains for Hybrid Exchange.
    [11:10:36.208] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting write permissions for all attributes of (contact, group, inetorgperson, user) object type on all domains for Hybrid Exchange.
    [11:10:36.296] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting write permissions for 'mS-DS-ConsistencyGuid' attribute of (user/group) object type on all domains for mS-DS-ConsistencyGuid feature
    [11:10:36.346] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting read permissions for 'mS-DS-ConsistencyGuid' attribute of (user/group) object type on all domains for mS-DS-ConsistencyGuid feature
    [11:10:36.394] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting read permissions for all attributes of (publicFolder) object type on all domains for Exchange Mail Public Folder.
    [11:10:36.421] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting write permissions for user attribute of (msDS-KeyCredentialLink) object type on all domains for NGC Keys.
    [11:10:36.451] [ 24] [INFO ] GrantAllActiveDirectoryPermissions: Granting write permissions for 'msDS-Device' attribute of (msDS-KeyCredentialLink) object type on all domains for STK Keys.
    [11:10:36.777] [ 24] [INFO ] AD Connector account permissions restricted successfully.
    [11:10:36.778] [ 24] [INFO ]    AD Connector Username=DOMAIN.ADM\MSOL_axxxxxxxxx created and given permissions.
    [11:10:36.782] [ 24] [INFO ] Exit ConfigSyncDirectoriesPageViewModel:ValidateDirectoryConnection:
    [11:29:03.761] [  1] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Start background task Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ConfigSyncDirectoriesPageViewModel.WaitForTaskCompletion in Page:"Connexion de vos annuaires"
    [11:29:03.761] [  1] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Started Background Task Id:34381
    AzureADConnect.exe Information: 0 : Management Agent Created: C:\Program Files\Microsoft Azure Active Directory Connect\SetupFiles\MA-ADDSTemplate.xml.
    [11:29:04.447] [ 31] [INFO ] SyncDataProvider: Calling refresh schema on connector DOMAIN.adm
    [11:29:05.019] [ 31] [ERROR] ConfigSyncDirectoriesPage: Caught exception while creating the connector for directory: DOMAIN.adm.
    Exception Data (Raw): System.Management.Automation.CmdletInvocationException: Failed to retrieve schema.<error><error><incident><connection-result>failed-authentication</connection-result><date>2023-03-24 10:29:04.538</date><server>DOMAIN.adm:389</server><cd-error><error-code>0x31</error-code>
    <error-literal>Informations d’identification non valides</error-literal>
    </cd-error></incident></error></error> ---> Microsoft.IdentityManagement.PowerShell.ObjectModel.SynchronizationConfigurationValidationException: Failed to retrieve schema.<error><error><incident><connection-result>failed-authentication</connection-result><date>2023-03-24 10:29:04.538</date><server>DOMAIN.adm:389</server><cd-error><error-code>0x31</error-code>
    <error-literal>Informations d’identification non valides</error-literal>
    </cd-error></incident></error></error>
       à Microsoft.DirectoryServices.MetadirectoryServices.UI.WebServices.MMSWebService.GetSchemaFromDirectory(Connector connector, Boolean commit)
       à Microsoft.IdentityManagement.PowerShell.Cmdlet.UpdateADSyncConnectorSchemaCmdlet.ProcessRecord()
       --- Fin de la trace de la pile d'exception interne ---
       à System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
       à System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
       à System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
       à System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
       à System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
       à System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
       à Microsoft.Online.Deployment.PowerShell.LocalPowerShell.Invoke()
       à Microsoft.Online.Deployment.PowerShell.PowerShellAdapter.TypeDependencies.InvokePowerShell(IPowerShell powerShell)
       à Microsoft.Online.Deployment.PowerShell.PowerShellAdapter.InvokePowerShellCommand(String commandName, InitialSessionState initialSessionState, IDictionary`2 commandParameters, Boolean isScript)
       à Microsoft.Azure.ActiveDirectory.Synchronization.PowerShellConfigAdapter.ConnectorConfigAdapter.UpdateConnectorSchema(Connector connector)
       à Microsoft.Azure.ActiveDirectory.Synchronization.Config.ConnectorAdapterBase.UpdateConnectorSchema()
       à Microsoft.Online.Deployment.Types.Providers.SyncDataProvider.UpdateConnectorSchema(ConnectorAdapterBase connectorAdapter)
       à Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ConfigSyncDirectoriesPageViewModel.CreateADDSConnector(IDirectoryConnection directory)
       à Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ConfigSyncDirectoriesPageViewModel.CreateConnectors(Object obj)
    [11:29:05.028] [ 32] [INFO ] Page transition from "Connexion des annuaires" [ConfigSyncDirectoriesPageViewModel] to "Configurer" [PerformConfigurationPageViewModel]
    [11:29:05.036] [ 32] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Start background task Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.BackgroundInitialize in Page:"Prêt pour la configuration"
    [11:29:05.038] [ 32] [INFO ] ProgressWizardPageViewModel:StartProgressOperation Started Background Task Id:34576
    [11:29:06.052] [ 31] [VERB ] PerformConfigurationPageViewModel:ExecuteAutoUpgradeCheck: context.WizardMode CustomInstall.
    [11:29:06.973] [ 31] [INFO ] ExecuteInstalledADSyncPowerShell: Got back success:true for "" CheckCompatibility EligibilityCheck.
    [11:29:06.976] [ 31] [INFO ] AutoUpgradeEligibilityHelper: ValidateAutoUpgradeCriteria returned Microsoft.Azure.ActiveDirectory.Synchronization.UpgraderCommon.UpgradeResultInformation
    [11:29:06.976] [ 31] [INFO ] AutoUpgradeEligibilityHelper: AutoUpgrade entering ENABLED mode as ValidateAutoUpgradeCriteria returned Enabled
    [11:29:06.976] [ 31] [VERB ] PerformConfigurationPageViewModel:ExecuteAutoUpgradeCheck: autoUpgradeState set to Enabled.
    [11:29:06.978] [ 31] [INFO ] SetAutoUpgradeViaAdhealthRegistrykey: Updated SOFTWARE\Microsoft\ADHealthAgent\Sync\UpdateCheckEnabled registry value to 1
    [11:29:06.979] [ 31] [INFO ] Restarting Monitoring Agent service.
    [11:29:06.979] [ 31] [INFO ] ServiceControllerProvider: InvalidOperationException on serviceController.Status property means the service AzureADConnectHealthSyncMonitor was not found
    [11:29:06.979] [ 31] [WARN ] Monitoring Agent service is not installed, so the service cannot be restarted.
    [11:29:06.994] [ 31] [INFO ] SyncDataProvider:LoadSettings - loading context with global settings.
    [11:29:06.996] [ 31] [INFO ] SyncDataProvider:LoadSettings - retrieving global settings from the sync engine.
    [11:29:07.125] [ 31] [ERROR] Unable to get value for Microsoft.OptionalFeature.EnableAutoUpgrade global parameter.
    [11:29:07.132] [ 31] [INFO ] SyncDataProvider:LoadSettings - retrieving connector from the sync engine.
    [11:29:07.226] [ 31] [INFO ] SourceAnchorAttributeConfigurationItem: ImmutableId feature is disabled. Reason: Feature has been opted out. Source anchor attribute: objectGUID
    [11:29:07.234] [ 27] [ERROR] A terminating unhandled exception occurred.
    Exception Data (Raw): System.AggregateException: Une ou plusieurs erreurs se sont produites. ---> System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
       à Microsoft.Online.Deployment.Types.AadSyncConfigurationHelper.<>c.<GetConnectorConfigurationSteps>b__1_0(AzureADSyncDirectory forest)
       à System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
       à System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
       à System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
       à Microsoft.Online.Deployment.Types.AadSyncConfigurationHelper.GetConnectorConfigurationSteps(IAadSyncContext context, IAadSyncContext activeSyncFeatures, List`1& configurationSteps)
       à Microsoft.Online.Deployment.Types.AadSyncConfigurationHelper.GetConfigurationSteps(IAadSyncContext context, IAadSyncContext activeSyncFeatures)
       à Microsoft.Online.Deployment.OneADWizard.Utility.ActionListBuilder.GenerateActions()
       à Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.GenerateActions()
       à Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.BackgroundInitialize(Object obj)
       à System.Threading.Tasks.Task.Execute()
       --- Fin de la trace de la pile d'exception interne ---
    ---> (Exception interne #0) System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
       à Microsoft.Online.Deployment.Types.AadSyncConfigurationHelper.<>c.<GetConnectorConfigurationSteps>b__1_0(AzureADSyncDirectory forest)
       à System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
       à System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
       à System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
       à Microsoft.Online.Deployment.Types.AadSyncConfigurationHelper.GetConnectorConfigurationSteps(IAadSyncContext context, IAadSyncContext activeSyncFeatures, List`1& configurationSteps)
       à Microsoft.Online.Deployment.Types.AadSyncConfigurationHelper.GetConfigurationSteps(IAadSyncContext context, IAadSyncContext activeSyncFeatures)
       à Microsoft.Online.Deployment.OneADWizard.Utility.ActionListBuilder.GenerateActions()
       à Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.GenerateActions()
       à Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.BackgroundInitialize(Object obj)
       à System.Threading.Tasks.Task.Execute()<---

    [11:29:07.246] [  1] [INFO ] Page transition from "Configurer" [PerformConfigurationPageViewModel] to "Erreur" [ErrorPageViewModel]
    [11:30:03.858] [  1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20230324-110406.log

    vendredi 24 mars 2023 11:19

Toutes les réponses