Меню

Произошла следующая ошибка system exception unable to set shared config dc

  • Remove From My Forums
  • Question

  • Hi experts

    When trying to install another Exchange 2013 server in my test environment I got the following error:

     The following error was generated when «$error.Clear();
              $maxWait = New-TimeSpan -Minutes 8
              $timeout = Get-Date;
              $timeout = $timeout.Add($maxWait);
              $currTime = Get-Date;
              $successfullySetConfigDC = $false;

              while($currTime -le $timeout)
              {
                $setSharedCDCErrors = @();
                try
                {
                  Set-SharedConfigDC -DomainController $RoleDomainController -ErrorVariable setSharedCDCErrors -ErrorAction SilentlyContinue;
                  $successfullySetConfigDC = ($setSharedCDCErrors.Count -eq 0);

                  if($successfullySetConfigDC)
                  {
                    break;
                  }
                  Write-ExchangeSetupLog -Info («An error ocurred while setting shared config DC. Error: » + $setSharedCDCErrors[0]);
                }
                catch
                {
                  Write-ExchangeSetupLog -Info («An exception ocurred while settingshared config DC. Exception: » + $_.Exception.Message);
                }

                Write-ExchangeSetupLog -Info («Waiting 30 seconds before attemptingagain.»);
                Start-Sleep -Seconds 30;
                $currTime = Get-Date;
              }

              if( -not $successfullySetConfigDC)
              {
                Write-ExchangeSetupLog -Error «Unable to set shared config DC.»;
              }
            » was run: «System.Exception: Unable to set shared config DC.
       at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
       at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target)
       at Microsoft.Exchange.Management.Deployment.WriteExchangeSetupLog.InternalProcessRecord()
       at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
       at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)».

    The Exchange Server setup operation didn’t complete. More details can be found in ExchangeSetup.log located in the <SystemDrive>:ExchangeSetupLogs folder.

    Did I miss anything? Any solution to this ?

Answers

  • Hi Hunk8,

    Did this error happen when the setup program configuring the mailbox role:transport service and failed?

    Are you able to ping the domain controller? Was windows server able to find it?

    To Resolve This Issue, Follow The Below Steps.
    1. Locate Microsoft.Exchange.Directory.TopologyService.exe.config File , By Default It Should Be Under «C:Program FilesMicrosoftExchange ServerV15Bin»
    2. Open NotePad As Administrator & Then Open Microsoft.Exchange.Directory.TopologyService.exe.config File
    3. Locate «Topology MinimumPrefixMatch»
    4. Add MinSuitableServer = «1»
    5. Save The File & Restart Microsoft Exchange Active Directory Topology Services.  

    Regards,

    Beverly Gao


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

    • Marked as answer by

      Thursday, December 19, 2019 2:41 PM

  • Remove From My Forums
  • Вопрос

  • Hey All,

    Installing Exchange 2019 on Server 2019.
    This is the first Exchange in this domain as we are 100% O365.
    I have done the /PrepareAD as per the guide. Installing gets to Step 6 of 12: Mailbox role: Transport service with the below error.
    Error:
    The following error was generated when «$error.Clear();
    $maxWait = New-TimeSpan -Minutes 8
    $timeout = Get-Date;
    $timeout = $timeout.Add($maxWait);
    $currTime = Get-Date;
    $successfullySetConfigDC = $false;

    1. while($currTime -le $timeout)
    2. {
    3. $setSharedCDCErrors = @();
    4. try
    5. {
    6. Set-SharedConfigDC -DomainController $RoleDomainController -ErrorVariable setSharedCDCErrors -ErrorAction SilentlyContinue;
    7. $successfullySetConfigDC = ($setSharedCDCErrors.Count -eq 0);
    8. if($successfullySetConfigDC)
    9. {
    10. break;
    11. }
    12. Write-ExchangeSetupLog -Info ("An error ocurred while setting shared config DC. Error: " + $setSharedCDCErrors[0]);
    13. }
    14. catch
    15. {
    16. Write-ExchangeSetupLog -Info ("An exception ocurred while setting shared config DC. Exception: " + $_.Exception.Message);
    17. }
    18. Write-ExchangeSetupLog -Info ("Waiting 30 seconds before attempting again.");
    19. Start-Sleep -Seconds 30;
    20. $currTime = Get-Date;
    21. }
    22. if( -not $successfullySetConfigDC)
    23. {
    24. Write-ExchangeSetupLog -Error "Unable to set shared config DC.";
    25. }
    26. " was run: "System.Exception: Unable to set shared config DC.

    at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
    at Microsoft.Exchange.Management.Deployment.WriteExchangeSetupLog.InternalProcessRecord()
    at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
    at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)».

    I have rebooted the new Exchange server. i can access the AD server from the Exchange. Not sure what else to try i have googled a bit but nothing has helped so far.

    Thanks,
    Ben

PROBLEM DESCRIPTION: While installing Microsoft Exchange 2013 on a server that is also a Windows Domain Controller, Transport Service installation will fail with the following error message:

Error:

The following error was generated when «$error.Clear(); 

          $maxWait = New-TimeSpan -Minutes 8

          $timeout = Get-Date;

          $timeout = $timeout.Add($maxWait);

          $currTime = Get-Date;

          $successfullySetConfigDC = $false;

          while($currTime -le $timeout)

          {

            $setSharedCDCErrors = @();

            try

            {

              Set-SharedConfigDC -DomainController $RoleDomainController -ErrorVariable setSharedCDCErrors -ErrorAction SilentlyContinue;

              $successfullySetConfigDC = ($setSharedCDCErrors.Count -eq 0);

              if($successfullySetConfigDC)

              {

                break;

              }

              Write-ExchangeSetupLog -Info («An error ocurred while setting shared config DC. Error: » + $setSharedCDCErrors[0]);

            }

            catch

            {

              Write-ExchangeSetupLog -Info («An exception ocurred while setting shared config DC. Exception: » + $_.Exception.Message);

            }

            Write-ExchangeSetupLog -Info («Waiting 30 seconds before attempting again.»);

            Start-Sleep -Seconds 30;

            $currTime = Get-Date;

          }

          if( -not $successfullySetConfigDC)

          {

            Write-ExchangeSetupLog -Error «Unable to set shared config DC.»;

          }

        » was run: «Unable to set shared config DC.».

CAUSE: Server has IPv6 turned off. 

SOLUTION: 

1. Turn back on IPv6 for the network adapter.

2. Restart the server

3. Start again the Microsoft Exchange 2013 setup, it will find that last installation was incomplete and will complete it.

4. Check to make sure all services for exchange are operational and all configurations.

Usually recommendation is not to install Exchange on Domain Controllers. Some might have to do this due to lack of resources or just because they need to do something for a presentation, demo or testing. 

  • Remove From My Forums
  • Question

  • Hello Team,

    We are trying to install Ms Exchange Server 2016 on Win Server 2016 Data Center. Managed to install all the prerequisites without any hustles but the installation is giving out error when installing the «Mailbox role Transport Service and its stopping
    at 97%.The error on the installation is as below: 

    Error:
    The following error was generated when «$error.Clear(); 
              $maxWait = New-TimeSpan -Minutes 8
              $timeout = Get-Date;
              $timeout = $timeout.Add($maxWait);
              $currTime = Get-Date;
              $successfullySetConfigDC = $false;

              while($currTime -le $timeout)
              {
                $setSharedCDCErrors = @();
                try
                {
                  Set-SharedConfigDC -DomainController $RoleDomainController -ErrorVariable setSharedCDCErrors -ErrorAction SilentlyContinue;
                  $successfullySetConfigDC = ($setSharedCDCErrors.Count -eq 0);

                  if($successfullySetConfigDC)
                  {
                    break;
                  }
                  Write-ExchangeSetupLog -Info («An error ocurred while setting shared config DC. Error: » + $setSharedCDCErrors[0]);
                }
                catch
                {
                  Write-ExchangeSetupLog -Info («An exception ocurred while setting shared config DC. Exception: » + $_.Exception.Message);
                }

                Write-ExchangeSetupLog -Info («Waiting 30 seconds before attempting again.»);
                Start-Sleep -Seconds 30;
                $currTime = Get-Date;
              }

              if( -not $successfullySetConfigDC)
              {
                Write-ExchangeSetupLog -Error «Unable to set shared config DC.»;
              }
            » was run: «System.Exception: Unable to set shared config DC.
       at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
       at Microsoft.Exchange.Management.Deployment.WriteExchangeSetupLog.InternalProcessRecord()
       at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
       at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)».

    kindly assist,

    regards,

    Fletcher

  • Remove From My Forums
  • Question

  • Hello Team,

    We are trying to install Ms Exchange Server 2016 on Win Server 2016 Data Center. Managed to install all the prerequisites without any hustles but the installation is giving out error when installing the «Mailbox role Transport Service and its stopping
    at 97%.The error on the installation is as below: 

    Error:
    The following error was generated when «$error.Clear(); 
              $maxWait = New-TimeSpan -Minutes 8
              $timeout = Get-Date;
              $timeout = $timeout.Add($maxWait);
              $currTime = Get-Date;
              $successfullySetConfigDC = $false;

              while($currTime -le $timeout)
              {
                $setSharedCDCErrors = @();
                try
                {
                  Set-SharedConfigDC -DomainController $RoleDomainController -ErrorVariable setSharedCDCErrors -ErrorAction SilentlyContinue;
                  $successfullySetConfigDC = ($setSharedCDCErrors.Count -eq 0);

                  if($successfullySetConfigDC)
                  {
                    break;
                  }
                  Write-ExchangeSetupLog -Info («An error ocurred while setting shared config DC. Error: » + $setSharedCDCErrors[0]);
                }
                catch
                {
                  Write-ExchangeSetupLog -Info («An exception ocurred while setting shared config DC. Exception: » + $_.Exception.Message);
                }

                Write-ExchangeSetupLog -Info («Waiting 30 seconds before attempting again.»);
                Start-Sleep -Seconds 30;
                $currTime = Get-Date;
              }

              if( -not $successfullySetConfigDC)
              {
                Write-ExchangeSetupLog -Error «Unable to set shared config DC.»;
              }
            » was run: «System.Exception: Unable to set shared config DC.
       at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
       at Microsoft.Exchange.Management.Deployment.WriteExchangeSetupLog.InternalProcessRecord()
       at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
       at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)».

    kindly assist,

    regards,

    Fletcher

Updating 2013 SP1 to CU8 Error — Set-SharedConfigDC Fails

I have two 2012 servers running Exchange 2013 SP1. They are both multi-role servers and are members of a DAG and are also load-balanced behind a Citrix Netscaler. I was ready to begin moving my mailboxes from 2010 to 2013 when I ran into a problem. In order
to try and resolve this problem, I attempted to update to CU8.

(After a successful mailbox move, I am unable to open my own mailbox in Outlook (2013 or 2010). I receive an error that «the set of folders cannot be opened». I am, however, able to view my mailbox from another migrated mailbox which has «full
access» to it. After some unsuccessful attempts to figure it out, I decide that I should probably update Exchange to the latest before I start messing with other things. Bad mistake.)

The CU8 setup fails in the Set-SharedConfigDC step with the error «No Minimal Required Number of Suitable Directory Servers Found in Forest».

I’ve read that I need IPv6 enabled. It had previously been «unchecked» in the NIC settings of the Exchange and DC servers. I’ve enabled it on the Exchange server and two of the DCs one of which is a GC. No luck. I’ve also added the «Exchange
Servers» and «Exchange Subsystem» groups to the AD «Administrators» group which was another suggestion I received.

The DCs are in a different subnet from the Exchange server.  I am running at domain functional level of 2003.

And just to reiterate: I had successfully installed Exchange 2013 SP1 with IPv6 «unchecked» on all Exchange and DC servers before the CU8 update failed.

-edit- Here’s the relevant section of the log:

[04/01/2015 09:50:52.0841] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'AC-DC1.mydomain.network', Preferred Global Catalog: 'AC-DC1.mydomain.network', Preferred Domain Controllers: '{ AC-DC1.mydomain.network }'
[04/01/2015 09:50:52.0841] [2] User specified parameters:  -DomainController:'AC-DC1.mydomain.network' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue'
[04/01/2015 09:50:52.0841] [2] Beginning processing Set-SharedConfigDC
[04/01/2015 09:51:47.0056] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Minimal Required Number of Suitable Directory Servers Found in Forest mydomain.network Site Default-First-Site-Name and connected Sites..
[04/01/2015 09:51:47.0056] [2] No Minimal Required Number of Suitable Directory Servers Found in Forest mydomain.network Site Default-First-Site-Name and connected Sites.
[04/01/2015 09:51:47.0056] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Minimal Required Number of Suitable Directory Servers Found in Forest mydomain.network Site Default-First-Site-Name and connected Sites..
[04/01/2015 09:51:47.0056] [2] No Minimal Required Number of Suitable Directory Servers Found in Forest mydomain.network Site Default-First-Site-Name and connected Sites.
[04/01/2015 09:51:47.0071] [2] Ending processing Set-SharedConfigDC
[04/01/2015 09:51:47.0071] [2] Beginning processing Write-ExchangeSetupLog
[04/01/2015 09:51:47.0071] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Minimal Required Number of Suitable Directory Servers Found in Forest mydomain.network Site Default-First-Site-Name and connected Sites..
[04/01/2015 09:51:47.0071] [2] Ending processing Write-ExchangeSetupLog
[04/01/2015 09:51:47.0087] [2] Beginning processing Write-ExchangeSetupLog
[04/01/2015 09:51:47.0087] [2] Waiting 30 seconds before attempting again.
[04/01/2015 09:51:47.0087] [2] Ending processing Write-ExchangeSetupLog
[04/01/2015 09:52:17.0100] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'AC-DC1.mydomain.network', Preferred Global Catalog: 'AC-DC1.mydomain.network', Preferred Domain Controllers: '{ AC-DC1.mydomain.network }'
[04/01/2015 09:52:17.0100] [2] User specified parameters:  -DomainController:'AC-DC1.mydomain.network' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue'
[04/01/2015 09:52:17.0100] [2] Beginning processing Set-SharedConfigDC
[04/01/2015 09:53:11.0367] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Minimal Required Number of Suitable Directory Servers Found in Forest mydomain.network Site Default-First-Site-Name and connected Sites..
[04/01/2015 09:53:11.0367] [2] No Minimal Required Number of Suitable Directory Servers Found in Forest mydomain.network Site Default-First-Site-Name and connected Sites.
[04/01/2015 09:53:11.0367] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Minimal Required Number of Suitable Directory Servers Found in Forest mydomain.network Site Default-First-Site-Name and connected Sites..
[04/01/2015 09:53:11.0367] [2] No Minimal Required Number of Suitable Directory Servers Found in Forest mydomain.network Site Default-First-Site-Name and connected Sites.
[04/01/2015 09:53:11.0367] [2] Ending processing Set-SharedConfigDC
[04/01/2015 09:53:11.0382] [2] Beginning processing Write-ExchangeSetupLog
[04/01/2015 09:53:11.0382] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Minimal Required Number of Suitable Directory Servers Found in Forest mydomain.network Site Default-First-Site-Name and connected Sites..
[04/01/2015 09:53:11.0382] [2] Ending processing Write-ExchangeSetupLog
[04/01/2015 09:53:11.0382] [2] Beginning processing Write-ExchangeSetupLog
[04/01/2015 09:53:11.0382] [2] Waiting 30 seconds before attempting again.
[04/01/2015 09:53:11.0398] [2] Ending processing Write-ExchangeSetupLog
[04/01/2015 09:53:41.0412] [2] Beginning processing Write-ExchangeSetupLog
[04/01/2015 09:53:41.0412] [2] [ERROR] Unable to set shared config DC.
[04/01/2015 09:53:41.0412] [2] [ERROR] Unable to set shared config DC.
[04/01/2015 09:53:41.0412] [2] Ending processing Write-ExchangeSetupLog
[04/01/2015 09:53:41.0428] [1] The following 1 error(s) occurred during task execution:
[04/01/2015 09:53:41.0428] [1] 0.  ErrorRecord: Unable to set shared config DC.
[04/01/2015 09:53:41.0428] [1] 0.  ErrorRecord: System.Exception: Unable to set shared config DC.
   at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target, Boolean reThrow, String helpUrl)
   at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target)
   at Microsoft.Exchange.Management.Deployment.WriteExchangeSetupLog.InternalProcessRecord()
   at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
   at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)
[04/01/2015 09:53:41.0428] [1] [ERROR] The following error was generated when "$error.Clear(); 
          $maxWait = New-TimeSpan -Minutes 8
          $timeout = Get-Date;
          $timeout = $timeout.Add($maxWait);
          $currTime = Get-Date;
          $successfullySetConfigDC = $false;

          while($currTime -le $timeout)
          {
            $setSharedCDCErrors = @();
            try
            {
              Set-SharedConfigDC -DomainController $RoleDomainController -ErrorVariable setSharedCDCErrors -ErrorAction SilentlyContinue;
              $successfullySetConfigDC = ($setSharedCDCErrors.Count -eq 0);

              if($successfullySetConfigDC)
              {
                break;
              }
              Write-ExchangeSetupLog -Info ("An error ocurred while setting shared config DC. Error: " + $setSharedCDCErrors[0]);
            }
            catch
            {
              Write-ExchangeSetupLog -Info ("An exception ocurred while setting shared config DC. Exception: " + $_.Exception.Message);
            }

            Write-ExchangeSetupLog -Info ("Waiting 30 seconds before attempting again.");
            Start-Sleep -Seconds 30;
            $currTime = Get-Date;
          }

          if( -not $successfullySetConfigDC)
          {
            Write-ExchangeSetupLog -Error "Unable to set shared config DC.";
          }
        " was run: "System.Exception: Unable to set shared config DC.
   at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target, Boolean reThrow, String helpUrl)
   at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target)
   at Microsoft.Exchange.Management.Deployment.WriteExchangeSetupLog.InternalProcessRecord()
   at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
   at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".
[04/01/2015 09:53:41.0428] [1] [ERROR] Unable to set shared config DC.
[04/01/2015 09:53:41.0428] [1] [ERROR-REFERENCE] Id=AllADRolesCommonServiceControl___ee47ab1c06fb47919398e2e95ed99c6c Component=EXCHANGE14:CurrentReleaseSharedDatacenterSetup
[04/01/2015 09:53:41.0428] [1] Setup is stopping now because of one or more critical errors.
[04/01/2015 09:53:41.0428] [1] Finished executing component tasks.
[04/01/2015 09:53:41.0522] [1] Ending processing Install-BridgeheadRole
[04/01/2015 10:25:25.0150] [0] CurrentResult setupbase.maincore:396: 0
[04/01/2015 10:25:25.0150] [0] End of Setup
[04/01/2015 10:25:25.0150] [0] **********************************************

  • Edited by

    23 hours 8 minutes ago
    Added log

April 2nd, 2015 4:05am


That might have done it!  I’ve marked your response as the answer although I do have some follow-up questions below.

I added MinSuitableServer = «1» under the line MinPercentageOfHealthyDC = «50» in the file «microsoft.exchange.directory.topologyservice.exe.config» in the CU8 setup folders. The setup still failed so I then edited the same file
in the existing Exchange directory and then rebooted. Setup then finished.

I still have my other Exchange server to do. I will make the same NIC changes and the same config file changes before attempting to run setup. I assume I should move the active DAG copy to the server that finally updated before proceeding but should I be wary
since the exchange servers are now on different versions?

Is there any explanation as to why this might have happened? I just can’t understand why the initial setup succeeded back in January while this CU failed…

April 2nd, 2015 4:41pm


0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Произошла следующая ошибка 23003
  • Произошла ошибка при установке невозможно записать данные на диск unarc dll вернул код ошибки 11