Installing Exchange 2019 Setup Issue

Ben Mac 21 Reputation points
2020-10-15T04:20:04.97+00:00

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;

      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)".

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

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,151 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,326 questions
{count} votes

Accepted answer
  1. Eric Yin-MSFT 4,386 Reputation points
    2020-10-16T07:31:45.163+00:00

    Have you read this article? Exchange 2013 Setup Fails With Error "An exception ocurred while setting shared config DC"
    Some similar threads also suggest to check if Ipv6 is enabled, turn it on and try running setup again.
    And check the Event log to see if EventID 2112 exists, that means you need to check the permission repoted in Event2112 in default Group Policy, this blog shows you an example.
    If these above doesn't help, post related information about Microsoft Exchange Active Directory Topology Service in Event Log and error information in Exchange setup log here please.


    If an Answer 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.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Ben Mac 21 Reputation points
    2020-10-22T07:44:06.803+00:00

    Hey Sorry for the Late reply.

    I have tried the suggest fixes and all do not work.

    Event ID 4027 - Exchange server has firewall off and AD i have opened 890 UDP and TCP.

    Process MSExchangeHMWorker.exe (ExHMWorker) (PID=4240). WCF request (Get Servers for XXXXXXX.com.au) to the Microsoft Exchange Active Directory Topology service on server (TopologyClientTcpEndpoint (localhost)) failed. Make sure that the service is running. In addition, make sure that the network ports that are used by Microsoft Exchange Active Directory Topology service are not blocked by a firewall. The WCF call was retried 3 time(s). Error Details
    System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://localhost:890/Microsoft.Exchange.Directory.TopologyService. The connection attempt lasted for a time span of 00:00:02.0470326. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:890. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:890
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
    at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
    --- End of inner exception stack trace ---

    Event ID 6
    Cmdlet failed. Cmdlet Set-SharedConfigDC, parameters -DomainController "xxxxxxxxxxxxx" -ErrorVariable "setSharedCDCErrors" -ErrorAction "SilentlyContinue".

    Not found any event ID 2112.


  2. Ben Mac 21 Reputation points
    2020-10-29T02:55:09.477+00:00

    Hey Eric,

    Yes that link worked well. i got exchange installed with Mailbox and Management and setup the Hybrid connection to O365 Exchange.

    i have a question about this. Can i manage Office365 mailboxes from on Prem?
    We are 100% Exchange online so no on-Prem mailboxes are needed, we just want to be able to manage our Office365 Mailboxes and such from on prem, use of Exchange management Shell and such. Also to use the Schema for Exchange, hide from address lists ect...

    Did i install the right version of Exchange? im not seeing the Office365 mailboxes in recipients.